Class OracleTableMetaDataProvider

java.lang.Object
org.springframework.jdbc.core.metadata.GenericTableMetaDataProvider
org.springframework.jdbc.core.metadata.OracleTableMetaDataProvider
All Implemented Interfaces:
TableMetaDataProvider

public class OracleTableMetaDataProvider extends GenericTableMetaDataProvider
Oracle-specific implementation of the TableMetaDataProvider. Supports a feature for including synonyms in the meta-data 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.

Since:
3.0
Author:
Thomas Risberg, Juergen Hoeller
  • Constructor Details

    • OracleTableMetaDataProvider

      public OracleTableMetaDataProvider(DatabaseMetaData databaseMetaData) throws SQLException
      Constructor used to initialize with provided database meta-data.
      Parameters:
      databaseMetaData - meta-data to be used
      Throws:
      SQLException
    • OracleTableMetaDataProvider

      public OracleTableMetaDataProvider(DatabaseMetaData databaseMetaData, boolean includeSynonyms) throws SQLException
      Constructor used to initialize with provided database meta-data.
      Parameters:
      databaseMetaData - meta-data to be used
      includeSynonyms - whether to include synonyms
      Throws:
      SQLException
  • Method Details