|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.appconsistency.db.DatabaseConsistencyCheck
Constructor Summary | |
DatabaseConsistencyCheck()
|
|
DatabaseConsistencyCheck(Map fieldTypeToDriverMapping,
JiraConnectionFactory jiraConnectionFactory)
|
Method Summary | |
(package private) static boolean |
containsIgnoreCase(String str,
String searchString)
|
(package private) void |
detectCorrectDatabase(String fieldTypeName,
String databaseProductName,
String driverName)
If the database type is incorrect, set the fault description. |
String |
getFaultDescription()
Implement this method to return the description of the fault. |
String |
getHTMLFaultDescription()
Implement this method to return the error message of the fault. |
String |
getName()
Implement this method to return the name of this check |
(package private) boolean |
isJdbcDriverCorrectTypeForEntityEngine(String fieldTypeName)
|
boolean |
isOk()
Implement this method to return true if the check is positive and false in the case of negarive result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DatabaseConsistencyCheck()
public DatabaseConsistencyCheck(Map fieldTypeToDriverMapping, JiraConnectionFactory jiraConnectionFactory)
Method Detail |
public String getName()
DatabaseCheck
getName
in interface DatabaseCheck
public boolean isOk()
DatabaseCheck
isOk
in interface DatabaseCheck
public String getFaultDescription()
DatabaseCheck
getFaultDescription
in interface DatabaseCheck
public String getHTMLFaultDescription()
DatabaseCheck
getHTMLFaultDescription
in interface DatabaseCheck
boolean isJdbcDriverCorrectTypeForEntityEngine(String fieldTypeName)
void detectCorrectDatabase(String fieldTypeName, String databaseProductName, String driverName)
fieldTypeName
- The @field-type-name value in entityengine.xmldatabaseProductName
- In-use database's name, eg. 'MySQL'driverName
- In-use JDBC driver name, eg. 'MySQL-AB JDBC Driver'static boolean containsIgnoreCase(String str, String searchString)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |