Package oracle.sql

Class OpaqueDescriptor

java.lang.Object
oracle.sql.TypeDescriptor
oracle.sql.OpaqueDescriptor
All Implemented Interfaces:
Serializable, oracle.jdbc.diagnostics.Diagnosable, oracle.jdbc.diagnostics.PropertyChangeListener, 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, Serializable
Deprecated.
OPAQUE types cannot be created on the client side.
Type descriptor of Opaque data type.
See Also:
  • Method Details

    • createDescriptor

      public static OpaqueDescriptor createDescriptor(String name, Connection conn) throws 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:
      SQLException - if a database error occurs
    • createDescriptor

      public static OpaqueDescriptor createDescriptor(oracle.sql.SQLName sqlName, Connection conn) throws 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:
      SQLException
    • getKind

      public OracleTypeMetaData.Kind getKind()
      Deprecated.
      Description copied from interface: OracleTypeMetaData
      Return the kind of type.
      Specified by:
      getKind in interface OracleTypeMetaData
      Overrides:
      getKind in class TypeDescriptor
      Returns:
      the kind, OPAQUE
    • getTypeCode

      public int getTypeCode() throws 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:
      SQLException
    • getMaxLength

      public long getMaxLength() throws 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:
      SQLException
      Since:
      8.2.0
    • isTrustedLibrary

      public boolean isTrustedLibrary() throws 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:
      SQLException
      Since:
      8.2.0
    • isModeledInC

      public boolean isModeledInC() throws 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:
      SQLException
      Since:
      8.2.0
    • hasUnboundedSize

      public boolean hasUnboundedSize() throws 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:
      SQLException
      Since:
      8.2.0
    • hasFixedSize

      public boolean hasFixedSize() throws 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:
      SQLException
      Since:
      8.2.0
    • descType

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