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 JAVA_STRUCT

java.lang.Object
  extended by oracle.sql.Datum
      extended by oracle.sql.DatumWithConnection
          extended by oracle.sql.STRUCT
              extended by oracle.sql.JAVA_STRUCT

All Implemented Interfaces:
java.io.Serializable, java.sql.Struct

public class JAVA_STRUCT
extends STRUCT

A class for structured data type.

See Also:
Serialized Form

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

 

Constructor Summary
JAVA_STRUCT(StructDescriptor type, java.sql.Connection conn, java.lang.Object[] attributes)
          Constructor.

 

Method Summary
 java.lang.Object toJdbc()
          Oracle extension.

 

Methods inherited from class oracle.sql.STRUCT
dump, dump, dump, getAttributes, getAttributes, getAutoBuffering, getDescriptor, getJavaSqlConnection, getOracleAttributes, getSQLTypeName, isConvertibleTo, setAutoBuffering

 

Methods inherited from class oracle.sql.DatumWithConnection
assertNotNull, assertNotNull, getConnection, getOracleConnection

 

Methods inherited from class oracle.sql.Datum
asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, byteValue, characterStreamValue, dateValue, doubleValue, equals, floatValue, getBytes, getLength, getStream, intValue, longValue, setBytes, setShareBytes, shareBytes, stringValue, timestampValue, timeValue

 

Methods inherited from class java.lang.Object
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

Constructor Detail

JAVA_STRUCT

public JAVA_STRUCT(StructDescriptor type,
                   java.sql.Connection conn,
                   java.lang.Object[] attributes)
            throws java.sql.SQLException
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 to
attributes - the array specifying the attributes to be converted to raw bytes.
Throws:
java.sql.SQLException
See Also:
oracle.sql.SQLStructType

Method Detail

toJdbc

public java.lang.Object toJdbc()
                        throws java.sql.SQLException
Oracle extension. Returns the JDBC representation of the datum object
Overrides:
toJdbc in class STRUCT
Returns:
an object containing the JDBC value
Throws:
java.sql.SQLException - if conversion to JDBC representation results in an error

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.