Class DatabaseVersionService
java.lang.Object
com.avoka.core.service.initialization.AbstractDatabaseVersionService
com.avoka.fc.core.service.initialization.DatabaseVersionService
Provides an database version management service for TM.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The JNDI URL of the transaction history data sourcestatic final String
The JNDI URL of the main TM data sourceFields inherited from class com.avoka.core.service.initialization.AbstractDatabaseVersionService
ATTRIBUTE_IGNORE_ERRORS, DATABASE_PRODUCT_MYSQL, DATABASE_PRODUCT_ORACLE, DATABASE_PRODUCT_SQLSERVER, DATABASE_PRODUCT_SQLSERVER_UNICODE, DATETIME_FORMAT, DB_VERSION_FILE_NAME, LOG_DIRECTORY_RELATIVE, logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
createVersionUpdate
(org.apache.cayenne.access.DataContext dataContext, Element updateElement, int rowsUpdated, String updatePerformed, Date finishTime, long durationMs) protected String
getAdminConsoleWarVersion
(org.apache.cayenne.access.DataContext dataContext) protected String
protected String
protected String
protected String
Methods inherited from class com.avoka.core.service.initialization.AbstractDatabaseVersionService
fail, getLogFileLocation, performUpdate, performUpdate
-
Field Details
-
JNDI_URL
The JNDI URL of the main TM data source- See Also:
-
HISTORY_JNDI_URL
The JNDI URL of the transaction history data source- See Also:
-
-
Constructor Details
-
DatabaseVersionService
public DatabaseVersionService()
-
-
Method Details
-
getJndiName
- Specified by:
getJndiName
in classAbstractDatabaseVersionService
-
getHistoryJndiName
- Specified by:
getHistoryJndiName
in classAbstractDatabaseVersionService
-
getVersionUpdateEntityName
- Specified by:
getVersionUpdateEntityName
in classAbstractDatabaseVersionService
-
getCurrentDatabaseVersions
- Specified by:
getCurrentDatabaseVersions
in classAbstractDatabaseVersionService
-
getAdminConsoleWarVersion
- Specified by:
getAdminConsoleWarVersion
in classAbstractDatabaseVersionService
-
getDatabaseProduct
- Specified by:
getDatabaseProduct
in classAbstractDatabaseVersionService
-
getCurrentDatabaseReleaseVersions
- Specified by:
getCurrentDatabaseReleaseVersions
in classAbstractDatabaseVersionService
-
createVersionUpdate
protected void createVersionUpdate(org.apache.cayenne.access.DataContext dataContext, Element updateElement, int rowsUpdated, String updatePerformed, Date finishTime, long durationMs) throws SQLException - Specified by:
createVersionUpdate
in classAbstractDatabaseVersionService
- Throws:
SQLException
-