Package oracle.jdbc

Interface AdditionalDatabaseMetaData

  • All Superinterfaces:
    DatabaseMetaData, Wrapper
    All Known Implementing Classes:
    OracleDatabaseMetaData

    public interface AdditionalDatabaseMetaData
    extends DatabaseMetaData
    This interface defines additional Oracle specific methods for DatabaseMetaData. Rightfully it should be called OracleDatabaseMetaData, but that name is already used by the class that implements DatabaseMetaData for the Oracle JDBC drivers. That class implements this interface. Best practice is to use the standard Java interface, java.sql.DatabaseMetaData. If your app requires access to the additional Oracle specific information then cast the result of getDatabaseMetaData to this type, AdditionalDatabaseMetaData. Use of the class OracleDatabaseMetaData is not recommended and will cause ClassCastException if used with some new Oracle JDBC features.
    Since:
    11.2.0.3.0
    • Method Detail

      • getOracleTypeMetaData

        OracleTypeMetaData getOracleTypeMetaData​(String sqlTypeName)
                                          throws SQLException
        Return the type metadata for a named type. Use this instead of the various Descriptor classes and methods. Use of the Descriptor classes and methods such as oracle.sql.TypeDescriptor, is not recommended and will cause ClassCastException if used with some new Oracle JDBC features.
        Parameters:
        sqlTypeName - the name of the type
        Returns:
        the metadata for the type
        Throws:
        SQLException - if the type does not exist or some other error occurs
        Since:
        11.2.0.3.0
      • getLobMaxLength

        long getLobMaxLength()
                      throws SQLException
        The max size of a lob on the server for this connection. Note that the actual size available for a particular lob will depend on the specific storage allocation.
        Returns:
        Max size of lob.
        Throws:
        SQLException
        Since:
        11.2.0.3.0
      • getAuditBanner

        String getAuditBanner()
                       throws SQLException
        Returns the audit banner on this connection.
        Returns:
        String containing the audit banner or a null String if there isn't one available on this connection.
        Throws:
        SQLException - if there is any issue while retrieving the banner
      • getAccessBanner

        String getAccessBanner()
                        throws SQLException
        Returns the access banner on this connection.
        Returns:
        String containing the access banner or a null String if there isn't one available on this connection.
        Throws:
        SQLException - if there is any issue while retrieving the banner