public class PostgresTableMetaDataProvider extends GenericTableMetaDataProvider
TableMetaDataProvider
.
Supports a feature for retrieving generated keys without the JDBC 3.0
getGeneratedKeys
support.logger
Constructor and Description |
---|
PostgresTableMetaDataProvider(DatabaseMetaData databaseMetaData) |
Modifier and Type | Method and Description |
---|---|
String |
getSimpleQueryForGetGeneratedKey(String tableName,
String keyColumnName)
Get the simple query to retrieve a generated key
|
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() |
catalogNameToUse, getDatabaseVersion, getDefaultSchema, getNativeJdbcExtractor, getTableParameterMetaData, initializeWithMetaData, initializeWithTableColumnMetaData, isGeneratedKeysColumnNameArraySupported, isGetGeneratedKeysSupported, isStoresLowerCaseIdentifiers, isStoresUpperCaseIdentifiers, isTableColumnMetaDataUsed, metaDataCatalogNameToUse, metaDataSchemaNameToUse, schemaNameToUse, setGeneratedKeysColumnNameArraySupported, setGetGeneratedKeysSupported, setNativeJdbcExtractor, setStoresLowerCaseIdentifiers, setStoresUpperCaseIdentifiers, tableNameToUse
public PostgresTableMetaDataProvider(DatabaseMetaData databaseMetaData) throws SQLException
SQLException
public boolean isGetGeneratedKeysSimulated()
TableMetaDataProvider
DatabaseMetaData.supportsGetGeneratedKeys()
isGetGeneratedKeysSimulated
in interface TableMetaDataProvider
isGetGeneratedKeysSimulated
in class GenericTableMetaDataProvider
public String getSimpleQueryForGetGeneratedKey(String tableName, String keyColumnName)
TableMetaDataProvider
getSimpleQueryForGetGeneratedKey
in interface TableMetaDataProvider
getSimpleQueryForGetGeneratedKey
in class GenericTableMetaDataProvider