public class OracleTableMetaDataProvider extends GenericTableMetaDataProvider
TableMetaDataProvider
.
Supports a feature for including synonyms in the metadata lookup. Also supports lookup of current schema
using the sys_context.
Thanks to Mike Youngstrom and Bruce Campbell for submitting the original suggestion for the Oracle current schema lookup implementation.
logger
Constructor and Description |
---|
OracleTableMetaDataProvider(DatabaseMetaData databaseMetaData) |
OracleTableMetaDataProvider(DatabaseMetaData databaseMetaData,
boolean includeSynonyms) |
Modifier and Type | Method and Description |
---|---|
protected String |
getDefaultSchema()
Provide access to default schema for subclasses.
|
void |
initializeWithTableColumnMetaData(DatabaseMetaData databaseMetaData,
String catalogName,
String schemaName,
String tableName)
Initialize using provided database metadata, table and column information.
|
catalogNameToUse, getDatabaseVersion, getNativeJdbcExtractor, getSimpleQueryForGetGeneratedKey, getTableParameterMetaData, initializeWithMetaData, isGeneratedKeysColumnNameArraySupported, isGetGeneratedKeysSimulated, isGetGeneratedKeysSupported, isStoresLowerCaseIdentifiers, isStoresUpperCaseIdentifiers, isTableColumnMetaDataUsed, metaDataCatalogNameToUse, metaDataSchemaNameToUse, schemaNameToUse, setGeneratedKeysColumnNameArraySupported, setGetGeneratedKeysSupported, setNativeJdbcExtractor, setStoresLowerCaseIdentifiers, setStoresUpperCaseIdentifiers, tableNameToUse
public OracleTableMetaDataProvider(DatabaseMetaData databaseMetaData) throws SQLException
SQLException
public OracleTableMetaDataProvider(DatabaseMetaData databaseMetaData, boolean includeSynonyms) throws SQLException
SQLException
protected String getDefaultSchema()
GenericTableMetaDataProvider
getDefaultSchema
in class GenericTableMetaDataProvider
public void initializeWithTableColumnMetaData(DatabaseMetaData databaseMetaData, String catalogName, String schemaName, String tableName) throws SQLException
TableMetaDataProvider
initializeWithTableColumnMetaData
in interface TableMetaDataProvider
initializeWithTableColumnMetaData
in class GenericTableMetaDataProvider
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 tableSQLException