|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableMetaDataProvider
Interface specifying the API to be implemented by a class providing table metedata. This is intended for internal use by the Simple JDBC classes.
Method Summary | |
---|---|
String |
catalogNameToUse(String catalogName)
Get the catalog name formatted based on metadata information. |
String |
getSimpleQueryForGetGeneratedKey(String tableName,
String keyColumnName)
Get the simple query to retrieve a generated key |
List<TableParameterMetaData> |
getTableParameterMetaData()
Get the table parameter metadata that is currently used. |
void |
initializeWithMetaData(DatabaseMetaData databaseMetaData)
Initialize using the database metedata provided |
void |
initializeWithTableColumnMetaData(DatabaseMetaData databaseMetaData,
String catalogName,
String schemaName,
String tableName)
Initialize using provided database metadata, table and column information. |
boolean |
isGeneratedKeysColumnNameArraySupported()
Does this database support a column name String array for retreiving generated keys Connection.createStruct(String, Object[]) |
boolean |
isGetGeneratedKeysSimulated()
Does this database support a simple quey to retrieve the generated key whe the JDBC 3.0 feature of retreiving generated keys is not supported DatabaseMetaData.supportsGetGeneratedKeys() |
boolean |
isGetGeneratedKeysSupported()
Does this database support the JDBC 3.0 feature of retreiving generated keys DatabaseMetaData.supportsGetGeneratedKeys() |
boolean |
isTableColumnMetaDataUsed()
Are we using the meta data for the table columns? |
String |
metaDataCatalogNameToUse(String catalogName)
Provide any modification of the catalog name passed in to match the meta data currently used. |
String |
metaDataSchemaNameToUse(String schemaName)
Provide any modification of the schema name passed in to match the meta data currently used. |
String |
schemaNameToUse(String schemaName)
Get the schema name formatted based on metadata information. |
void |
setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor)
Set the NativeJdbcExtractor to use to retrieve the native connection if necessary |
String |
tableNameToUse(String tableName)
Get the table name formatted based on metadata information. |
Method Detail |
---|
void initializeWithMetaData(DatabaseMetaData databaseMetaData) throws SQLException
databaseMetaData
-
SQLException
void initializeWithTableColumnMetaData(DatabaseMetaData databaseMetaData, String catalogName, String schemaName, String tableName) throws SQLException
databaseMetaData
- used to retrieve database specific informationcatalogName
- name of catalog to use or nullschemaName
- name of schema name to use or nulltableName
- name of the table
SQLException
String tableNameToUse(String tableName)
tableName
-
String catalogNameToUse(String catalogName)
catalogName
-
String schemaNameToUse(String schemaName)
schemaName
-
String metaDataCatalogNameToUse(String catalogName)
catalogName
-
String metaDataSchemaNameToUse(String schemaName)
schemaName
-
boolean isTableColumnMetaDataUsed()
boolean isGetGeneratedKeysSupported()
DatabaseMetaData.supportsGetGeneratedKeys()
boolean isGetGeneratedKeysSimulated()
DatabaseMetaData.supportsGetGeneratedKeys()
String getSimpleQueryForGetGeneratedKey(String tableName, String keyColumnName)
boolean isGeneratedKeysColumnNameArraySupported()
Connection.createStruct(String, Object[])
List<TableParameterMetaData> getTableParameterMetaData()
TableParameterMetaData
void setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor)
NativeJdbcExtractor
to use to retrieve the native connection if necessary
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |