org.springframework.jdbc.core.metadata

Class 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 Detail

      • OracleTableMetaDataProvider

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

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