public interface TableMetaDataProvider
Modifier and Type | Method and Description |
---|---|
java.lang.String |
catalogNameToUse(java.lang.String catalogName)
Get the catalog name formatted based on metadata information.
|
java.lang.String |
getSimpleQueryForGetGeneratedKey(java.lang.String tableName,
java.lang.String keyColumnName)
Get the simple query to retrieve a generated key
|
java.util.List<TableParameterMetaData> |
getTableParameterMetaData()
Get the table parameter metadata that is currently used.
|
void |
initializeWithMetaData(java.sql.DatabaseMetaData databaseMetaData)
Initialize using the database metadata provided.
|
void |
initializeWithTableColumnMetaData(java.sql.DatabaseMetaData databaseMetaData,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName)
Initialize using provided database metadata, table and column information.
|
boolean |
isGeneratedKeysColumnNameArraySupported()
Does this database support a column name String array for retrieving generated keys
Connection.createStruct(String, Object[]) |
boolean |
isGetGeneratedKeysSimulated()
Does this database support a simple query to retrieve the generated key when
the JDBC 3.0 feature of retrieving generated keys is not supported?
|
boolean |
isGetGeneratedKeysSupported()
Does this database support the JDBC 3.0 feature of retrieving generated keys
DatabaseMetaData.supportsGetGeneratedKeys() ? |
boolean |
isTableColumnMetaDataUsed()
Are we using the meta data for the table columns?
|
java.lang.String |
metaDataCatalogNameToUse(java.lang.String catalogName)
Provide any modification of the catalog name passed in to match the meta data currently used.
|
java.lang.String |
metaDataSchemaNameToUse(java.lang.String schemaName)
Provide any modification of the schema name passed in to match the meta data currently used.
|
java.lang.String |
schemaNameToUse(java.lang.String schemaName)
Get the schema name formatted based on metadata information.
|
java.lang.String |
tableNameToUse(java.lang.String tableName)
Get the table name formatted based on metadata information.
|
void initializeWithMetaData(java.sql.DatabaseMetaData databaseMetaData) throws java.sql.SQLException
databaseMetaData
- used to retrieve database specific informationjava.sql.SQLException
- in case of initialization failurevoid initializeWithTableColumnMetaData(java.sql.DatabaseMetaData databaseMetaData, java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName) throws java.sql.SQLException
databaseMetaData
- used to retrieve database specific informationcatalogName
- name of catalog to use (or null
if none)schemaName
- name of schema name to use (or null
if none)tableName
- name of the tablejava.sql.SQLException
- in case of initialization failurejava.lang.String tableNameToUse(java.lang.String tableName)
java.lang.String catalogNameToUse(java.lang.String catalogName)
java.lang.String schemaNameToUse(java.lang.String schemaName)
java.lang.String metaDataCatalogNameToUse(java.lang.String catalogName)
java.lang.String metaDataSchemaNameToUse(java.lang.String schemaName)
boolean isTableColumnMetaDataUsed()
boolean isGetGeneratedKeysSupported()
DatabaseMetaData.supportsGetGeneratedKeys()
?boolean isGetGeneratedKeysSimulated()
isGetGeneratedKeysSupported()
java.lang.String getSimpleQueryForGetGeneratedKey(java.lang.String tableName, java.lang.String keyColumnName)
boolean isGeneratedKeysColumnNameArraySupported()
Connection.createStruct(String, Object[])
java.util.List<TableParameterMetaData> getTableParameterMetaData()
TableParameterMetaData