Package oracle.sql
Class JAVA_STRUCT
java.lang.Object
oracle.sql.Datum
oracle.sql.DatumWithConnection
oracle.sql.STRUCT
oracle.sql.JAVA_STRUCT
- All Implemented Interfaces:
Serializable,Struct,oracle.jdbc.internal.ACProxyable,oracle.jdbc.internal.OracleConcreteProxy,oracle.jdbc.internal.OracleDatumWithConnection,oracle.jdbc.internal.OracleStruct,OracleStruct
A class for structured data type.
- See Also:
-
Field Summary
Fields inherited from class oracle.sql.DatumWithConnection
targetDatumWithConnectionFields inherited from class oracle.sql.Datum
ojiOracleDatumWithConnection, targetDatum -
Constructor Summary
ConstructorsConstructorDescriptionJAVA_STRUCT(StructDescriptor type, byte[] elements, Connection conn) Constructor from the pickled bytes.JAVA_STRUCT(StructDescriptor type, Connection conn, Object[] attributes) Constructor. -
Method Summary
Methods inherited from class oracle.sql.STRUCT
dump, dump, dump, getAttributes, getAttributes, getAutoBuffering, getDatumArray, getDescriptor, getJavaSqlConnection, getObjectArray, getOracleAttributes, getOracleDataFactory, getOracleMetaData, getSQLTypeName, getTarget, isConvertibleTo, setAutoBuffering, setNullDatumArray, setNullObjectArrayMethods inherited from class oracle.sql.DatumWithConnection
assertNotNull, assertNotNull, getConnection, getConnectionDuringExceptionHandling, getOracleConnectionMethods inherited from class oracle.sql.Datum
asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, bytesEqual, bytesHashCode, byteValue, characterStreamValue, compareBytes, dateValue, doubleValue, equals, floatValue, getBytes, getLength, getStream, intValue, isNull, longValue, setBytes, setShareBytes, shareBytes, stringValue, stringValue, timestampValue, timestampValue, timeValue, timeValueMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface oracle.jdbc.internal.OracleDatumWithConnection
asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, byteValue, characterStreamValue, dateValue, doubleValue, floatValue, getBytes, getConnection, getInternalConnection, getLength, getOracleConnection, getStream, intValue, longValue, setBytes, setPhysicalConnectionOf, setShareBytes, shareBytes, stringValue, stringValue, timestampValue, timestampValue, timeValue, timeValue
-
Constructor Details
-
JAVA_STRUCT
Constructor. The raw bytes are computed at this time or a copy of attributes is made. In any event the caller is free to modify the array without affecting the values held in the STRUCT.- Parameters:
type- the SQLStructType used to convert the type toattributes- the array specifying the attributes to be converted to raw bytes.- Throws:
SQLException- See Also:
-
oracle.sql.SQLStructType
-
JAVA_STRUCT
Constructor from the pickled bytes. (INTERNAL) Used by JDBC, not really intended for general use.- Parameters:
descriptor- an StructDescriptor describing the SQL Typebytes- the array containing the raw bytes- Throws:
SQLException
-
-
Method Details
-
toJdbc
Oracle extension. Returns the JDBC representation of the datum object- Specified by:
toJdbcin interfaceoracle.jdbc.internal.OracleDatumWithConnection- Specified by:
toJdbcin interfaceoracle.jdbc.internal.OracleStruct- Overrides:
toJdbcin classSTRUCT- Returns:
- an object containing the JDBC value
- Throws:
SQLException- if conversion to JDBC representation results in an error
-