|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.sql.Datum | +--oracle.sql.STRUCT
This class has two roles.
Like other classes in oracle.sql. it is a value class. That is, once it is constructed the user should not change its contents.
Constructor Summary | |
STRUCT(StructDescriptor type, java.sql.Connection conn, java.lang.Object[] attributes) Constructor. |
Method Summary | |
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. |
OracleConnection |
getConnection() Deprecated. since 9.0.0. Use getJavaSqlConnection() instead. |
StructDescriptor |
getDescriptor() Oracle extension. |
java.sql.Connection |
getJavaSqlConnection() Oracle extension Return the java.sql.Connection associated with the receiver. |
Datum[] |
getOracleAttributes() Oracle extension. |
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. |
Methods inherited from class oracle.sql.Datum |
asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, byteValue, characterStreamValue, dateValue, doubleValue, equals, floatValue, getBytes, getLength, getStream, intValue, longValue, makeJdbcArray, setBytes, setShareBytes, shareBytes, stringValue, timestampValue, timeValue |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.oracle.sql.SQLStructType
Method Detail |
public java.lang.String getSQLTypeName() throws java.sql.SQLException
Struct
object represents.public 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.
public 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.
map
- a mapping of SQL type names to Java classespublic StructDescriptor getDescriptor() throws java.sql.SQLException
public Datum[] getOracleAttributes() throws java.sql.SQLException
public java.sql.Connection getJavaSqlConnection() throws java.sql.SQLException
public OracleConnection getConnection() throws java.sql.SQLException
getJavaSqlConnection()
instead.public java.lang.Object toJdbc() throws java.sql.SQLException
public boolean isConvertibleTo(java.lang.Class jClass)
cls
- Class to convert topublic void setAutoBuffering(boolean enable) throws java.sql.SQLException
enable
- - true enables auto-buffering; false disables auto-bufferinggetAutoBuffering()
public boolean getAutoBuffering() throws java.sql.SQLException
setAutoBuffering(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |