|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.sql.Datum oracle.sql.DatumWithConnection oracle.sql.STRUCT
public class STRUCT
This class has two roles.
Field Summary | |
---|---|
static java.lang.String |
BUILD_DATE
|
static boolean |
TRACE
|
Constructor Summary | |
---|---|
STRUCT(StructDescriptor type,
java.sql.Connection conn,
java.util.Map attrList)
|
|
STRUCT(StructDescriptor type,
java.sql.Connection conn,
java.lang.Object[] attributes)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
dump()
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)
|
static void |
dump(java.lang.Object o,
java.io.PrintWriter pw)
|
java.lang.Object[] |
getAttributes()
Implements the Struct interface function. |
java.lang.Object[] |
getAttributes(java.util.Map map)
Implements the Struct interface function. |
boolean |
getAutoBuffering()
Performance hint. |
StructDescriptor |
getDescriptor()
Oracle extension. |
java.sql.Connection |
getJavaSqlConnection()
Oracle extension Return the java.sql.Connection associated with the receiver. |
Datum[] |
getOracleAttributes()
Oracle extension. |
OracleDataFactory |
getOracleDataFactory(java.util.Hashtable map,
java.lang.String classname)
|
OracleTypeMetaData |
getOracleMetaData()
Return the type data for this object |
java.lang.String |
getSQLTypeName()
Implements the Struct interface function Retrieves the SQL type name of the SQL structured type that this Struct object represents. |
boolean |
isConvertibleTo(java.lang.Class jClass)
Determines if datum object can be converted to a particular class |
void |
setAutoBuffering(boolean enable)
Performance hint. |
java.lang.Object |
toJdbc()
Oracle extension. |
java.lang.Object |
toJdbc(java.util.Map map)
Oracle extension. |
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, stringValue, timestampValue, timestampValue, timeValue, timeValue |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods 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 |
Field Detail |
---|
public static final java.lang.String BUILD_DATE
public static final boolean TRACE
Constructor Detail |
---|
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
Method Detail |
---|
public java.lang.String getSQLTypeName() throws java.sql.SQLException
Struct
object represents.
getSQLTypeName
in interface java.sql.Struct
Struct
object
is the generic representation
java.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 classes
java.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 java.lang.Object toJdbc() throws java.sql.SQLException
toJdbc
in interface oracle.jdbc.internal.OracleDatumWithConnection
toJdbc
in class Datum
java.sql.SQLException
- if conversion to JDBC representation results in
an errorpublic 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 to
public void setAutoBuffering(boolean enable) throws java.sql.SQLException
enable
- - true enables auto-buffering; false disables auto-buffering
java.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
|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |