Skip navigation links

Oracle® Database JDBC Java API Reference
11g Release 2 ("11.2.0.0.1-Beta-1")
BETA
E13995-01


oracle.sql
Class OpaqueDescriptor

java.lang.Object
  extended by oracle.sql.TypeDescriptor
      extended by oracle.sql.OpaqueDescriptor

All Implemented Interfaces:
java.io.Serializable, ORAData

public class OpaqueDescriptor
extends TypeDescriptor
implements java.io.Serializable

Type descriptor of Opaque data type.

See Also:
Serialized Form

Field Summary
static java.lang.String BUILD_DATE
           
static boolean PRIVATE_TRACE
           
static boolean TRACE
           

 

Fields inherited from class oracle.sql.TypeDescriptor
ANYDATASETTOID, ANYDATATOID, ANYTYPETOID, DEBUG_SERIALIZATION, RAWTOID, TYPECODE_BDOUBLE, TYPECODE_BFILE, TYPECODE_BFLOAT, TYPECODE_BLOB, TYPECODE_BOOLEAN, TYPECODE_CFILE, TYPECODE_CHAR, TYPECODE_CLOB, TYPECODE_DATE, TYPECODE_DECIMAL, TYPECODE_DOUBLE, TYPECODE_ERRHP, TYPECODE_FLOAT, TYPECODE_INTEGER, TYPECODE_INTERVAL_DS, TYPECODE_INTERVAL_YM, TYPECODE_ITABLE, TYPECODE_JDBC_ARRAY, TYPECODE_JDBC_JOBJECT, TYPECODE_JDBC_JOPAQUE, TYPECODE_JDBC_JSTRUCT, TYPECODE_JDBC_REF, TYPECODE_JDBC_STRUCT, TYPECODE_MLSLABEL, TYPECODE_NAMEDCOLLECTION, TYPECODE_NCHAR, TYPECODE_NCLOB, TYPECODE_NONE, TYPECODE_NUMBER, TYPECODE_NVARCHAR2, TYPECODE_OBJECT, TYPECODE_OCTET, TYPECODE_OPAQUE, TYPECODE_OTMFIRST, TYPECODE_OTMLAST, TYPECODE_PLS_INTEGER, TYPECODE_PTR, TYPECODE_RAW, TYPECODE_REAL, TYPECODE_RECORD, TYPECODE_REF, TYPECODE_SIGNED16, TYPECODE_SIGNED32, TYPECODE_SIGNED8, TYPECODE_SMALLINT, TYPECODE_SYSFIRST, TYPECODE_SYSLAST, TYPECODE_TABLE, TYPECODE_TIME, TYPECODE_TIME_TZ, TYPECODE_TIMESTAMP, TYPECODE_TIMESTAMP_LTZ, TYPECODE_TIMESTAMP_TZ, TYPECODE_UNSIGNED16, TYPECODE_UNSIGNED32, TYPECODE_UNSIGNED8, TYPECODE_UROWID, TYPECODE_VARCHAR, TYPECODE_VARCHAR2, TYPECODE_VARRAY, XMLTYPETOID

 

Method Summary
static OpaqueDescriptor createDescriptor(SQLName sqlName, java.sql.Connection conn)
          Descriptor factory.
static OpaqueDescriptor createDescriptor(java.lang.String name, java.sql.Connection conn)
          Descriptor factory.
 java.lang.String descType()
          Describe this type.
 long getMaxLength()
          Return the maximun number of bytes this opaque object can hold.
 int getTypeCode()
          Return the Opaque type code: OracleTypes.OPAQUE.
 boolean hasFixedSize()
          Indicates whether the Opaque type has fixed size.
 boolean hasUnboundedSize()
          Indicates whether the Opaque type has unbounded size ().
 boolean isModeledInC()
          Indicates whether the Opaque type is modelled in C language.
 boolean isTrustedLibrary()
          Indicates whether the Trusted Library implementing Support functions are specified for the Opaque type.

 

Methods inherited from class oracle.sql.TypeDescriptor
getInternalTypeCode, getName, getPrecision, getScale, getSubtypeName, getTypeCodeName, initMetadataRecursively, initNamesRecursively, isTransient, printXML, printXML, setConnection, setPrecision, setScale, toDatum, toXMLString, toXMLString

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

BUILD_DATE

public static final java.lang.String BUILD_DATE
See Also:
Constant Field Values

TRACE

public static final boolean TRACE
See Also:
Constant Field Values

PRIVATE_TRACE

public static final boolean PRIVATE_TRACE
See Also:
Constant Field Values

Method Detail

createDescriptor

public static OpaqueDescriptor createDescriptor(java.lang.String name,
                                                java.sql.Connection conn)
                                         throws java.sql.SQLException
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
Throws:
java.sql.SQLException

createDescriptor

public static OpaqueDescriptor createDescriptor(SQLName sqlName,
                                                java.sql.Connection conn)
                                         throws java.sql.SQLException
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
Return the Opaque type code: OracleTypes.OPAQUE.
Overrides:
getTypeCode in class TypeDescriptor
Throws:
java.sql.SQLException

getMaxLength

public long getMaxLength()
                  throws java.sql.SQLException
Return the maximun number of bytes this opaque object can hold.
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
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.
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
Indicates whether the Opaque type is modelled in C language.
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
Indicates whether the Opaque type has unbounded size ().
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
Indicates whether the Opaque type has fixed size.
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
Describe this type.
Returns:
the type information.
Throws:
java.sql.SQLException

Skip navigation links

Oracle® Database JDBC Java API Reference
11g Release 2 ("11.2.0.0.1-Beta-1")
BETA
E13995-01


Copyright © 2009, Oracle and/or its affiliates. All rights reserved.
ORACLE CONFIDENTIAL
For authorized use only.
Do not distribute to third parties.