public class STRUCT extends DatumWithConnection implements oracle.jdbc.internal.OracleStruct, oracle.jdbc.internal.OracleConcreteProxy
Struct
interface for declaration instead of using
concrete class oracle.sql.STRUCT. java.sql.Struct has methods declared
for all opertions. For Oracle specific methods use the interface
OracleStruct
.
Obtaining a Struct from the ResultSet
java.sql.Struct struct = resultSet.getStruct(...);
Creating a Struct using factory method Connection.createStruct(java.lang.String, java.lang.Object[])
java.sql.Struct struct = connection.createStruct(...);
Struct
,
OracleStruct
,
Connection.createStruct(java.lang.String, java.lang.Object[])
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected oracle.jdbc.driver.OracleStruct |
target
Deprecated.
|
targetDatumWithConnection
ojiOracleDatumWithConnection, targetDatum
Constructor and Description |
---|
STRUCT(StructDescriptor type,
java.sql.Connection conn,
java.util.Map attrList)
Deprecated.
|
STRUCT(StructDescriptor type,
java.sql.Connection conn,
java.lang.Object[] attributes)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dump()
Deprecated.
Create a string which show the contents of this Object and
of all its component parts.
|
static void |
dump(java.lang.Object o,
java.io.PrintStream ps)
Deprecated.
|
static void |
dump(java.lang.Object o,
java.io.PrintWriter pw)
Deprecated.
|
java.lang.Object[] |
getAttributes()
Deprecated.
Implements the Struct interface function.
|
java.lang.Object[] |
getAttributes(java.util.Map map)
Deprecated.
Implements the Struct interface function.
|
boolean |
getAutoBuffering()
Deprecated.
Performance hint.
|
Datum[] |
getDatumArray()
Deprecated.
|
StructDescriptor |
getDescriptor()
Deprecated.
Oracle extension.
|
java.sql.Connection |
getJavaSqlConnection()
Deprecated.
Oracle extension
Return the java.sql.Connection associated with the
receiver.
|
java.lang.Object[] |
getObjectArray()
Deprecated.
|
Datum[] |
getOracleAttributes()
Deprecated.
Oracle extension.
|
OracleDataFactory |
getOracleDataFactory(java.util.Hashtable map,
java.lang.String classname)
Deprecated.
|
OracleTypeMetaData |
getOracleMetaData()
Deprecated.
Return the type data for this object
|
java.lang.String |
getSQLTypeName()
Deprecated.
Implements the Struct interface function
Retrieves the SQL type name of the SQL structured type
that this
Struct object represents. |
oracle.jdbc.driver.OracleStruct |
getTarget()
Deprecated.
|
boolean |
isConvertibleTo(java.lang.Class<?> jClass)
Deprecated.
Determines if datum object can be converted to a particular class
|
void |
setAutoBuffering(boolean enable)
Deprecated.
Performance hint.
|
void |
setNullDatumArray()
Deprecated.
Set the variable null.
|
void |
setNullObjectArray()
Deprecated.
Set the variable null.
|
java.lang.Object |
toJdbc()
Deprecated.
Oracle extension.
|
java.lang.Object |
toJdbc(java.util.Map map)
Deprecated.
Oracle extension.
|
assertNotNull, assertNotNull, getConnection, getConnectionDuringExceptionHandling, getOracleConnection
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, timeValue
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public STRUCT(StructDescriptor type, java.sql.Connection conn, java.lang.Object[] attributes) throws java.sql.SQLException
type
- the SQLStructType used to convert the type toattributes
- the array specifying the attributes to be
converted to raw bytes.java.sql.SQLException
oracle.sql.SQLStructType
public STRUCT(StructDescriptor type, java.sql.Connection conn, java.util.Map attrList) throws java.sql.SQLException
java.sql.SQLException
public oracle.jdbc.driver.OracleStruct getTarget()
public java.lang.String getSQLTypeName() throws java.sql.SQLException
Struct
object represents.getSQLTypeName
in interface java.sql.Struct
Struct
object
is the generic representationjava.sql.SQLException
- if a database access error occurspublic java.lang.Object[] getAttributes() throws java.sql.SQLException
Struct
object represents.
Each call returns a fresh array.
This method uses the type map associated with the
connection for customizations of the type mappings.
If there is no
entry in the connection's type map that matches the structured
type that this Struct
object represents,
the driver uses the standard mapping.
Conceptually, this method calls the method
getObject
on each attribute
of the structured type and returns a Java array containing
the result.
getAttributes
in interface java.sql.Struct
java.sql.SQLException
- if a database access error occurspublic java.lang.Object[] getAttributes(java.util.Map map) throws java.sql.SQLException
Struct
object represents.
Each call returns a fresh array.
This method uses the given type map
for customizations of the type mappings.
If there is no
entry in the given type map that matches the structured
type that this Struct
object represents,
the driver uses the standard mapping.
Conceptually, this method calls the method
getObject
on each attribute
of the structured type and returns a Java array containing
the result.
getAttributes
in interface java.sql.Struct
map
- a mapping of SQL type names to Java classesjava.sql.SQLException
- if a database access error occurspublic OracleTypeMetaData getOracleMetaData() throws java.sql.SQLException
getOracleMetaData
in interface OracleStruct
java.sql.SQLException
- if an error occurspublic StructDescriptor getDescriptor() throws java.sql.SQLException
java.sql.SQLException
public Datum[] getOracleAttributes() throws java.sql.SQLException
java.sql.SQLException
public Datum[] getDatumArray()
public void setNullDatumArray()
public java.lang.Object[] getObjectArray()
public void setNullObjectArray()
public java.lang.Object toJdbc() throws java.sql.SQLException
public java.lang.Object toJdbc(java.util.Map map) throws java.sql.SQLException
java.sql.SQLException
public boolean isConvertibleTo(java.lang.Class<?> jClass)
isConvertibleTo
in interface oracle.jdbc.internal.OracleDatumWithConnection
isConvertibleTo
in class Datum
cls
- Class to convert topublic void setAutoBuffering(boolean enable) throws java.sql.SQLException
enable
- - true enables auto-buffering; false disables auto-bufferingjava.sql.SQLException
getAutoBuffering()
public boolean getAutoBuffering() throws java.sql.SQLException
java.sql.SQLException
setAutoBuffering(boolean)
public OracleDataFactory getOracleDataFactory(java.util.Hashtable map, java.lang.String classname) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Connection getJavaSqlConnection() throws java.sql.SQLException
DatumWithConnection
getJavaSqlConnection
in interface oracle.jdbc.internal.OracleDatumWithConnection
getJavaSqlConnection
in class DatumWithConnection
java.sql.SQLException
- if an error occurspublic java.lang.String dump() throws java.sql.SQLException
java.sql.SQLException
public static void dump(java.lang.Object o, java.io.PrintStream ps) throws java.sql.SQLException
java.sql.SQLException
public static void dump(java.lang.Object o, java.io.PrintWriter pw) throws java.sql.SQLException
java.sql.SQLException