Package oracle.sql

Class OpaqueDescriptor

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, oracle.jdbc.diagnostics.Diagnosable, oracle.jdbc.internal.ACProxyable, oracle.jdbc.internal.ObjectData, oracle.jdbc.internal.OracleTypeMetaData, oracle.jdbc.internal.OracleTypeMetaData.Opaque, OracleData, OracleTypeMetaData, OracleTypeMetaData.Opaque, ORAData

    public class OpaqueDescriptor
    extends TypeDescriptor
    implements oracle.jdbc.internal.OracleTypeMetaData.Opaque, java.io.Serializable
    Deprecated.
    OPAQUE types cannot be created on the client side.
    Type descriptor of Opaque data type.
    See Also:
    Serialized Form
    • Method Detail

      • createDescriptor

        public static OpaqueDescriptor createDescriptor​(java.lang.String name,
                                                        java.sql.Connection conn)
                                                 throws java.sql.SQLException
        Deprecated.
        Descriptor factory. Lookup the name in the database, and determine the characteristics of this array.
        Parameters:
        name - a String naming the type. (Not necessarily fully qualified)
        conn - a Connection to a database
        Returns:
        the opaque descriptor specified by name
        Throws:
        java.sql.SQLException - if a database error occurs
      • createDescriptor

        public static OpaqueDescriptor createDescriptor​(oracle.sql.SQLName sqlName,
                                                        java.sql.Connection conn)
                                                 throws java.sql.SQLException
        Deprecated.
        Descriptor factory. Lookup the name in the database, and determine the characteristics of this array.
        Parameters:
        name - a SQLName
        connection - a Connection to a database
        Throws:
        java.sql.SQLException
      • getTypeCode

        public int getTypeCode()
                        throws java.sql.SQLException
        Deprecated.
        Return the type code: OracleTypes.SQLXML if type is SYS.XMLTYPE else return the OPAQUE type code OracleTypes.OPAQUE
        Specified by:
        getTypeCode in interface OracleTypeMetaData
        Overrides:
        getTypeCode in class TypeDescriptor
        Throws:
        java.sql.SQLException
      • getMaxLength

        public long getMaxLength()
                          throws java.sql.SQLException
        Deprecated.
        Return the maximun number of bytes this opaque object can hold.
        Specified by:
        getMaxLength in interface OracleTypeMetaData.Opaque
        Returns:
        the maximum opaque size; return 0 if unbounded.
        Throws:
        java.sql.SQLException
        Since:
        8.2.0
      • isTrustedLibrary

        public boolean isTrustedLibrary()
                                 throws java.sql.SQLException
        Deprecated.
        Indicates whether the Trusted Library implementing Support functions are specified for the Opaque type. This is the case for internal Opaque Types that are modeled in C.
        Specified by:
        isTrustedLibrary in interface OracleTypeMetaData.Opaque
        Returns:
        true if the Trusted Library implementing Support functions are specified; false, otherwise.
        Throws:
        java.sql.SQLException
        Since:
        8.2.0
      • isModeledInC

        public boolean isModeledInC()
                             throws java.sql.SQLException
        Deprecated.
        Indicates whether the Opaque type is modelled in C language.
        Specified by:
        isModeledInC in interface OracleTypeMetaData.Opaque
        Returns:
        true if the Opaque type is modelled in C language; false, otherwise.
        Throws:
        java.sql.SQLException
        Since:
        8.2.0
      • hasUnboundedSize

        public boolean hasUnboundedSize()
                                 throws java.sql.SQLException
        Deprecated.
        Indicates whether the Opaque type has unbounded size ().
        Specified by:
        hasUnboundedSize in interface OracleTypeMetaData.Opaque
        Returns:
        true if the Opaque type hsa unbounded size; false, otherwise.
        Throws:
        java.sql.SQLException
        Since:
        8.2.0
      • hasFixedSize

        public boolean hasFixedSize()
                             throws java.sql.SQLException
        Deprecated.
        Indicates whether the Opaque type has fixed size.
        Specified by:
        hasFixedSize in interface OracleTypeMetaData.Opaque
        Returns:
        true if the Opaque type has fixed size; false, otherwise.
        Throws:
        java.sql.SQLException
        Since:
        8.2.0
      • descType

        public java.lang.String descType()
                                  throws java.sql.SQLException
        Deprecated.
        Describe this type.
        Returns:
        the type information.
        Throws:
        java.sql.SQLException