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 query to retrieve the generated key when
the JDBC 3.0 feature of retrieving generated keys is not supported?
|
catalogNameToUse, getDatabaseVersion, getDefaultSchema, getTableParameterMetaData, initializeWithMetaData, initializeWithTableColumnMetaData, isGeneratedKeysColumnNameArraySupported, isGetGeneratedKeysSupported, isStoresLowerCaseIdentifiers, isStoresUpperCaseIdentifiers, isTableColumnMetaDataUsed, metaDataCatalogNameToUse, metaDataSchemaNameToUse, schemaNameToUse, setGeneratedKeysColumnNameArraySupported, setGetGeneratedKeysSupported, setStoresLowerCaseIdentifiers, setStoresUpperCaseIdentifiers, tableNameToUse
public PostgresTableMetaDataProvider(DatabaseMetaData databaseMetaData) throws SQLException
SQLException
public boolean isGetGeneratedKeysSimulated()
TableMetaDataProvider
isGetGeneratedKeysSimulated
in interface TableMetaDataProvider
isGetGeneratedKeysSimulated
in class GenericTableMetaDataProvider
TableMetaDataProvider.isGetGeneratedKeysSupported()
public String getSimpleQueryForGetGeneratedKey(String tableName, String keyColumnName)
TableMetaDataProvider
getSimpleQueryForGetGeneratedKey
in interface TableMetaDataProvider
getSimpleQueryForGetGeneratedKey
in class GenericTableMetaDataProvider