A
- the generic typepublic abstract static class DbmsRetrospectionAccessor.Implementation<A extends DbmsAdaptor<A>> extends DbmsAdaptor.Member.Implementation<A> implements DbmsRetrospectionAccessor<A>
DbmsRetrospectionAccessor.Implementation<A extends DbmsAdaptor<A>>
Column_CHARACTER_MAXIMUM_LENGTH, Column_COLUMN_DEFAULT, Column_COLUMN_NAME, Column_DATA_TYPE, Column_IS_NULLABLE, Column_TABLE_NAME, Column_TABLE_SCHEMA, Column_TABLE_TYPE
Constructor and Description |
---|
Implementation(A dbmsadaptor)
Instantiates a new abstract body.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
appendIncludeExcludeConditions(StringBuilder sb,
String[] schemaInclusionPatterns,
String[] schemaExcluionPatterns,
String[] tableIncluionPatterns,
String[] tableExcluionPatterns,
String schemaColumn,
String tablenameColumn)
Append include exclude conditions.
|
List<RetrospectionIdentifierMapper> |
getColumnIdentifierMappers()
Gets the column identifier mappers.
|
List<RetrospectionIdentifierMapper> |
getGeneralIdentifierMappers()
Gets the general identifier mappers.
|
List<RetrospectionIdentifierMapper> |
getIndexIdentifierMappers()
Gets the index identifier mappers.
|
List<RetrospectionIdentifierMapper> |
getSchemaIdentifierMappers()
Gets the schema identifier mappers.
|
List<RetrospectionIdentifierMapper> |
getTableIdentifierMappers()
Gets the table identifier mappers.
|
SqlField[] |
loadColumns(SqlTableIdentity table)
Load columns.
|
SqlTableIdentity[] |
loadTables(String[] schemaInclusionPatterns,
String[] schemaExcluionPatterns,
String[] tableIncluionPatterns,
String[] tableExcluionPatterns,
String additionalWHERECondition)
Load tables.
|
List<String> |
loadTablesAsStrings(String[] schemaInclusionPatterns,
String[] schemaExcluionPatterns,
String[] tableIncluionPatterns,
String[] tableExcluionPatterns,
String additionalWHERECondition)
Load tables as strings.
|
Object |
parseColumnDefaultValue(Object rawDefaultValue)
Parses the column default value.
|
void |
setColumnIdentifierMappers(List<RetrospectionIdentifierMapper> columnIdentifierMappers)
Sets the column identifier mappers.
|
void |
setGeneralIdentifierMappers(List<RetrospectionIdentifierMapper> generalIdentifierMappers)
Sets the general identifier mappers.
|
void |
setIndexIdentifierMappers(List<RetrospectionIdentifierMapper> indexIdentifierMappers)
Sets the index identifier mappers.
|
void |
setSchemaIdentifierMappers(List<RetrospectionIdentifierMapper> schemaIdentifierMappers)
Sets the schema identifier mappers.
|
void |
setTableIdentifierMappers(List<RetrospectionIdentifierMapper> tableIdentifierMappers)
Sets the table identifier mappers.
|
getDbmsAdaptor, setDbmsAdaptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSelect_INFORMATION_SCHEMA_COLUMNS, createSelect_INFORMATION_SCHEMA_INDICES, createSelect_INFORMATION_SCHEMA_TABLES, getDbmsAdaptor, getRetrospectionCodeGenerationNote, getSystemTable_COLUMNS, getSystemTable_TABLES, loadIndices
public Implementation(A dbmsadaptor)
dbmsadaptor
- the dbmsadaptorprotected static void appendIncludeExcludeConditions(StringBuilder sb, String[] schemaInclusionPatterns, String[] schemaExcluionPatterns, String[] tableIncluionPatterns, String[] tableExcluionPatterns, String schemaColumn, String tablenameColumn)
sb
- the sbschemaInclusionPatterns
- the schema inclusion patternsschemaExcluionPatterns
- the schema excluion patternstableIncluionPatterns
- the table incluion patternstableExcluionPatterns
- the table excluion patternsschemaColumn
- the schema columntablenameColumn
- the tablename columnpublic List<RetrospectionIdentifierMapper> getGeneralIdentifierMappers()
getGeneralIdentifierMappers
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
public List<RetrospectionIdentifierMapper> getSchemaIdentifierMappers()
getSchemaIdentifierMappers
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
public List<RetrospectionIdentifierMapper> getTableIdentifierMappers()
getTableIdentifierMappers
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
public List<RetrospectionIdentifierMapper> getColumnIdentifierMappers()
getColumnIdentifierMappers
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
public List<RetrospectionIdentifierMapper> getIndexIdentifierMappers()
getIndexIdentifierMappers
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
public void setGeneralIdentifierMappers(List<RetrospectionIdentifierMapper> generalIdentifierMappers)
setGeneralIdentifierMappers
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
generalIdentifierMappers
- the generalIdentifierMappers to setpublic void setSchemaIdentifierMappers(List<RetrospectionIdentifierMapper> schemaIdentifierMappers)
setSchemaIdentifierMappers
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
schemaIdentifierMappers
- the schemaIdentifierMappers to setpublic void setTableIdentifierMappers(List<RetrospectionIdentifierMapper> tableIdentifierMappers)
setTableIdentifierMappers
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
tableIdentifierMappers
- the tableIdentifierMappers to setpublic void setColumnIdentifierMappers(List<RetrospectionIdentifierMapper> columnIdentifierMappers)
setColumnIdentifierMappers
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
columnIdentifierMappers
- the columnIdentifierMappers to setpublic void setIndexIdentifierMappers(List<RetrospectionIdentifierMapper> indexIdentifierMappers)
setIndexIdentifierMappers
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
indexIdentifierMappers
- the indexIdentifierMappers to setpublic Object parseColumnDefaultValue(Object rawDefaultValue)
DbmsRetrospectionAccessor
parseColumnDefaultValue
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
rawDefaultValue
- DbmsRetrospectionAccessor.parseColumnDefaultValue(java.lang.Object)
public SqlTableIdentity[] loadTables(String[] schemaInclusionPatterns, String[] schemaExcluionPatterns, String[] tableIncluionPatterns, String[] tableExcluionPatterns, String additionalWHERECondition) throws SQLEngineException
DbmsRetrospectionAccessor
loadTables
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
schemaInclusionPatterns
- schemaExcluionPatterns
- tableIncluionPatterns
- tableExcluionPatterns
- additionalWHERECondition
- SQLEngineException
DbmsRetrospectionAccessor.loadTables(java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String)
public List<String> loadTablesAsStrings(String[] schemaInclusionPatterns, String[] schemaExcluionPatterns, String[] tableIncluionPatterns, String[] tableExcluionPatterns, String additionalWHERECondition) throws SQLEngineException
DbmsRetrospectionAccessor
loadTablesAsStrings
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
schemaInclusionPatterns
- schemaExcluionPatterns
- tableIncluionPatterns
- tableExcluionPatterns
- additionalWHERECondition
- SQLEngineException
DbmsRetrospectionAccessor.loadTablesAsStrings(java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String)
public SqlField[] loadColumns(SqlTableIdentity table) throws SQLEngineException
DbmsRetrospectionAccessor
loadColumns
in interface DbmsRetrospectionAccessor<A extends DbmsAdaptor<A>>
table
- SQLEngineException
DbmsRetrospectionAccessor.loadColumns(com.xdev.jadoth.sqlengine.internal.tables.SqlTableIdentity)
Copyright © 2003–2021 XDEV Software. All rights reserved.