Class DatabaseVersionService
- java.lang.Object
-
- com.avoka.core.service.initialization.AbstractDatabaseVersionService
-
- com.avoka.fc.core.service.initialization.DatabaseVersionService
-
public class DatabaseVersionService extends AbstractDatabaseVersionService
Provides an database version management service for TM.
-
-
Field Summary
Fields Modifier and Type Field Description static String
HISTORY_JNDI_URL
The JNDI URL of the transaction history data sourcestatic String
JNDI_URL
The JNDI URL of the main TM data source-
Fields 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
Constructors Constructor Description DatabaseVersionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createVersionUpdate(org.apache.cayenne.access.DataContext dataContext, Element updateElement, int rowsUpdated, String updatePerformed, Date finishTime, long durationMs)
protected List<String>
getCurrentDatabaseReleaseVersions()
protected List<Integer>
getCurrentDatabaseVersions()
protected String
getDatabaseProduct()
protected String
getHistoryJndiName()
protected String
getJndiName()
protected String
getVersionUpdateEntityName()
-
Methods inherited from class com.avoka.core.service.initialization.AbstractDatabaseVersionService
fail, getLogFileLocation, performUpdate, performUpdate
-
-
-
-
Field Detail
-
JNDI_URL
public static final String JNDI_URL
The JNDI URL of the main TM data source- See Also:
- Constant Field Values
-
HISTORY_JNDI_URL
public static final String HISTORY_JNDI_URL
The JNDI URL of the transaction history data source- See Also:
- Constant Field Values
-
-
Method Detail
-
getJndiName
protected String getJndiName()
- Specified by:
getJndiName
in classAbstractDatabaseVersionService
-
getHistoryJndiName
protected String getHistoryJndiName()
- Specified by:
getHistoryJndiName
in classAbstractDatabaseVersionService
-
getVersionUpdateEntityName
protected String getVersionUpdateEntityName()
- Specified by:
getVersionUpdateEntityName
in classAbstractDatabaseVersionService
-
getCurrentDatabaseVersions
protected List<Integer> getCurrentDatabaseVersions()
- Specified by:
getCurrentDatabaseVersions
in classAbstractDatabaseVersionService
-
getDatabaseProduct
protected String getDatabaseProduct()
- Specified by:
getDatabaseProduct
in classAbstractDatabaseVersionService
-
getCurrentDatabaseReleaseVersions
protected List<String> 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
-
-