public abstract class StoreDeployment
extends java.lang.Object
StoreDeployment
acts as a base store deployment implementation.Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
connectToDatabase()
Connect to database and return if it successfully connected or not.
|
protected abstract java.lang.String |
getAlterTableAddColumnStatement(java.lang.String tableName,
java.lang.String colName,
java.lang.String dataType)
Set store specific statement which can be used to add new column in existing table.
|
protected abstract java.lang.String |
getAlterTableDropColumnStatement(java.lang.String tableName,
java.lang.String colName)
Format and return store specific statement which can be used to delete a column from existing table.
|
protected abstract java.lang.String |
getCommentStatement()
Set store specific comment statement.
|
protected abstract java.lang.String |
getCreateIndexStatement(java.lang.String tableName,
java.lang.String indexName,
java.lang.String[] colName)
Format and return store specifc statement which can be used to create an index on a table.
|
protected abstract java.lang.String |
getDropIndexStatement(java.lang.String tableName,
java.lang.String indexName)
Format and return store specifc statement which can be used to drop an index on a table.
|
protected abstract java.lang.String |
getDropTableStatement(java.lang.String tableName)
Set store specific statement which can be used to drop table from store.
|
protected java.lang.String |
getExecuteCommand()
Set data base specific execute command if any.
|
protected abstract java.lang.String |
getModifyColumnStatement(java.lang.String tableName,
java.lang.String colName,
java.lang.String dataType)
Format and return modify column statement if store supports column datatype conversion.
|
protected java.lang.String |
getNewline()
Set data base specific line terminator and new line command.
|
protected boolean |
isColumnTypeConversionSupported()
Set if column type conversion is supported for store.
|
protected boolean |
isCreateSystemTablesScript()
Set if need to create create script for system tables.
|
abstract boolean |
testConnection()
Connect to database and Test if it can successfully connect or not.
|
protected java.lang.String getExecuteCommand()
protected java.lang.String getNewline()
protected boolean isColumnTypeConversionSupported()
protected abstract java.lang.String getCommentStatement()
String
protected abstract java.lang.String getDropTableStatement(java.lang.String tableName)
tableName
- String
protected abstract java.lang.String getAlterTableAddColumnStatement(java.lang.String tableName, java.lang.String colName, java.lang.String dataType)
tableName
- colName
- dataType
- String
protected abstract java.lang.String getAlterTableDropColumnStatement(java.lang.String tableName, java.lang.String colName)
tableName
- colName
- String
protected abstract java.lang.String getDropIndexStatement(java.lang.String tableName, java.lang.String indexName)
tableName
- indexName
- String
protected abstract java.lang.String getCreateIndexStatement(java.lang.String tableName, java.lang.String indexName, java.lang.String[] colName)
tableName
- indexName
- colName
- String
protected abstract java.lang.String getModifyColumnStatement(java.lang.String tableName, java.lang.String colName, java.lang.String dataType)
tableName
- def
- String
protected abstract boolean connectToDatabase()
protected boolean isCreateSystemTablesScript()
public abstract boolean testConnection()