public abstract class AbstractSqlScriptBasedDbSchemaManager extends Object implements SchemaManager
| Modifier and Type | Field and Description |
|---|---|
static String[] |
JDBC_METADATA_TABLE_TYPES |
protected org.slf4j.Logger |
logger |
protected static String |
PROPERTY_TABLE |
protected static String |
SCHEMA_VERSION_PROPERTY |
| Constructor and Description |
|---|
AbstractSqlScriptBasedDbSchemaManager() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
addSqlStatementPiece(String sqlStatement,
String line) |
protected void |
dbSchemaUpgrade(String component,
int currentDatabaseVersionsIndex) |
protected void |
dbSchemaUpgradeUntil6120(String component,
int currentDatabaseVersionsIndex) |
void |
executeMandatorySchemaResource(String operation,
String component) |
void |
executeSchemaResource(String operation,
String component,
String resourceName,
boolean isOptional) |
protected void |
executeSchemaResource(String operation,
String component,
String resourceName,
InputStream inputStream) |
DbSqlSession |
getDbSqlSession() |
String |
getProperty(String propertyName) |
protected String |
getPropertyTable() |
String |
getResourceForDbOperation(String directory,
String operation,
String component,
String databaseType) |
protected abstract String |
getResourcesRootDirectory() |
boolean |
isTablePresent(String tableName) |
protected String |
prependDatabaseTablePrefix(String tableName) |
protected String |
readNextTrimmedLine(BufferedReader reader) |
protected String |
updateDdlForMySqlVersionLowerThan56(String ddlStatements)
MySQL is funny when it comes to timestamps and dates.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitschemaCheckVersion, schemaCreate, schemaDrop, schemaUpdateprotected final org.slf4j.Logger logger
public static String[] JDBC_METADATA_TABLE_TYPES
protected static final String PROPERTY_TABLE
protected static final String SCHEMA_VERSION_PROPERTY
public AbstractSqlScriptBasedDbSchemaManager()
protected void dbSchemaUpgradeUntil6120(String component, int currentDatabaseVersionsIndex)
protected void dbSchemaUpgrade(String component, int currentDatabaseVersionsIndex)
public boolean isTablePresent(String tableName)
public DbSqlSession getDbSqlSession()
protected String getPropertyTable()
public String getResourceForDbOperation(String directory, String operation, String component, String databaseType)
protected abstract String getResourcesRootDirectory()
public void executeMandatorySchemaResource(String operation, String component)
public void executeSchemaResource(String operation, String component, String resourceName, boolean isOptional)
protected void executeSchemaResource(String operation, String component, String resourceName, InputStream inputStream)
protected String updateDdlForMySqlVersionLowerThan56(String ddlStatements)
protected String readNextTrimmedLine(BufferedReader reader) throws IOException
IOExceptionCopyright © 2019 Flowable. All rights reserved.