public abstract class AbstractSQLStartup extends Object implements SQLAppStartup
SQLAppStartup.Activator| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SCHEMA_NAME |
| Constructor and Description |
|---|
AbstractSQLStartup(ServiceDescriptor descriptor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkSchemaName(String schemaName) |
protected static String |
compositeDescriptorToString(LayerDescriptor layer,
ModuleDescriptor module,
CompositeDescriptor descriptor) |
protected boolean |
dropTablesIfExist(String schemaName,
String tableName,
Statement stmt) |
protected abstract org.sql.generation.api.grammar.common.datatypes.SQLDataType |
getCollectionPathDataType() |
protected Long |
getNextPK(Statement stmt,
String schemaName,
String columnName,
String tableName,
Long defaultPK) |
void |
initConnection()
This method is called when connection may be safely initialized - for example, possibly (re-)building database
structure.
|
protected abstract void |
modifyPrimitiveTypes(Map<Class<?>,org.sql.generation.api.grammar.common.datatypes.SQLDataType> primitiveTypes,
Map<Class<?>,Integer> jdbcTypes) |
protected static <TCompositeDescriptor extends CompositeDescriptor> |
stringToCompositeDescriptor(Class<TCompositeDescriptor> descriptorClass,
ApplicationDescriptor appDesc,
String str) |
protected abstract void |
testRequiredCapabilities(Connection connection) |
public static final String DEFAULT_SCHEMA_NAME
public AbstractSQLStartup(@Uses ServiceDescriptor descriptor)
public void initConnection()
throws SQLException
SQLAppStartupinitConnection in interface SQLAppStartupSQLException - If SQL error.protected void checkSchemaName(String schemaName)
protected Long getNextPK(Statement stmt, String schemaName, String columnName, String tableName, Long defaultPK) throws SQLException
SQLExceptionprotected abstract void testRequiredCapabilities(Connection connection) throws SQLException
SQLExceptionprotected boolean dropTablesIfExist(String schemaName, String tableName, Statement stmt) throws SQLException
SQLExceptionprotected static String compositeDescriptorToString(LayerDescriptor layer, ModuleDescriptor module, CompositeDescriptor descriptor)
protected static <TCompositeDescriptor extends CompositeDescriptor> TCompositeDescriptor stringToCompositeDescriptor(Class<TCompositeDescriptor> descriptorClass, ApplicationDescriptor appDesc, String str)
protected abstract void modifyPrimitiveTypes(Map<Class<?>,org.sql.generation.api.grammar.common.datatypes.SQLDataType> primitiveTypes, Map<Class<?>,Integer> jdbcTypes)
protected abstract org.sql.generation.api.grammar.common.datatypes.SQLDataType getCollectionPathDataType()