|
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.TypeDescriptor oracle.sql.StructDescriptor
public class StructDescriptor
Descriptor of a SQL structured object. (That is an SQL Object type). Its main responsibility is understanding how to convert between various representations of such a struct.
There should be a method to return information about the fields (beyond their number. But there is no public representation for that.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.jdbc.OracleTypeMetaData |
---|
OracleTypeMetaData.Array, OracleTypeMetaData.ArrayStorage, OracleTypeMetaData.Kind, OracleTypeMetaData.Opaque, OracleTypeMetaData.Struct |
Field Summary | |
---|---|
static java.lang.String |
BUILD_DATE
|
static boolean |
TRACE
|
Method Summary | |
---|---|
static StructDescriptor |
createDescriptor(oracle.sql.SQLName name,
java.sql.Connection conn)
Descriptor factory. |
static StructDescriptor |
createDescriptor(oracle.sql.SQLName sqlName,
java.sql.Connection conn,
boolean recurse,
boolean force)
Descriptor factory. |
static StructDescriptor |
createDescriptor(java.lang.String name,
java.sql.Connection conn)
Descriptor factory. |
static StructDescriptor |
createDescriptor(java.lang.String name,
java.sql.Connection conn,
boolean recurse,
boolean force)
Descriptor factory. |
java.lang.String |
descType()
Describe this type. |
AttributeDescriptor[] |
getAttributesDescriptor()
|
java.lang.String |
getJavaClassName()
Returns the external name of the JAVA_STRUCT type. |
OracleTypeMetaData.Kind |
getKind()
Return the kind of type. |
java.lang.String |
getLanguage()
|
int |
getLength()
The number of fields in the Object Type. |
int |
getLocalAttributeCount()
Returns the number of attributes defined in the subtype. |
java.sql.ResultSetMetaData |
getMetaData()
Gets the metadata regarding this type. |
java.lang.String[] |
getSubtypeNames()
Returns the SQL type names of the direct subtypes. |
java.lang.String |
getSupertypeName()
Returns the SQL type name of the direct subtype. |
int |
getTypeCode()
Returns type code. |
int |
getTypeVersion()
|
boolean |
isFinalType()
Indicates whether the object type is a final type. |
boolean |
isInstantiable()
Indicates whether the object type is instantiable. |
boolean |
isJavaObject()
Indicates whether the object type is a JAVA_STRUCT type or a STRUCT type. |
boolean |
isSubtype()
Indicates whether the object type is a subtype. |
Datum[] |
toOracleArray(java.util.Map attributes)
|
Methods inherited from class oracle.sql.TypeDescriptor |
---|
getInternalTypeCode, getName, getPrecision, getScale, getSubtypeName, getTypeCodeName, initMetadataRecursively, initNamesRecursively, isTransient, printXML, printXML, setConnection, setPrecision, setScale, toDatum, toJDBCObject, toXMLString, toXMLString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.jdbc.OracleTypeMetaData |
---|
getName, getSchemaName, getSQLName, getTypeCodeName |
Field Detail |
---|
public static final java.lang.String BUILD_DATE
public static final boolean TRACE
Method Detail |
---|
public static StructDescriptor createDescriptor(java.lang.String name, java.sql.Connection conn) throws java.sql.SQLException
name
- a String naming the type. (Not necessarily fully qualified)conn
- a Connection to a database
java.sql.SQLException
public static StructDescriptor createDescriptor(java.lang.String name, java.sql.Connection conn, boolean recurse, boolean force) throws java.sql.SQLException
name
- a String naming the type. (Not necessarily fully qualified)connection
- a Connection to a databaserecurse
- a boolean to specify whether to create descriptors for component objectsforce
- a boolean to specify whether to replace any cached descriptor.
java.sql.SQLException
public static StructDescriptor createDescriptor(oracle.sql.SQLName sqlName, java.sql.Connection conn, boolean recurse, boolean force) throws java.sql.SQLException
name
- a String naming the type. (Not necessarily fully qualified)connection
- a Connection to a databaserecurse
- a boolean to specify whether to create descriptors for component objectsforce
- a boolean to specify whether to replace any cached descriptor.
java.sql.SQLException
public static StructDescriptor createDescriptor(oracle.sql.SQLName name, java.sql.Connection conn) throws java.sql.SQLException
name
- a String naming the type. (Not necessarily fully qualified)connection
- a Connection to a database
java.sql.SQLException
public OracleTypeMetaData.Kind getKind()
OracleTypeMetaData
getKind
in interface OracleTypeMetaData
getKind
in class TypeDescriptor
public int getTypeCode() throws java.sql.SQLException
TypeDescriptor
getTypeCode
in interface OracleTypeMetaData
getTypeCode
in class TypeDescriptor
java.sql.SQLException
public int getTypeVersion() throws java.sql.SQLException
getTypeVersion
in interface OracleTypeMetaData.Struct
java.sql.SQLException
public AttributeDescriptor[] getAttributesDescriptor()
public int getLength() throws java.sql.SQLException
getLength
in interface OracleTypeMetaData.Struct
java.sql.SQLException
public Datum[] toOracleArray(java.util.Map attributes) throws java.sql.SQLException
java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface OracleTypeMetaData.Struct
if
- database access error occurs
java.sql.SQLException
public boolean isFinalType() throws java.sql.SQLException
isFinalType
in interface OracleTypeMetaData.Struct
java.sql.SQLException
public boolean isSubtype() throws java.sql.SQLException
isSubtype
in interface OracleTypeMetaData.Struct
java.sql.SQLException
public boolean isInstantiable() throws java.sql.SQLException
isInstantiable
in interface OracleTypeMetaData.Struct
java.sql.SQLException
public boolean isJavaObject() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getSupertypeName() throws java.sql.SQLException
getSupertypeName
in interface OracleTypeMetaData.Struct
java.sql.SQLException
public int getLocalAttributeCount() throws java.sql.SQLException
getLocalAttributeCount
in interface OracleTypeMetaData.Struct
java.sql.SQLException
public java.lang.String[] getSubtypeNames() throws java.sql.SQLException
getSubtypeNames
in interface OracleTypeMetaData.Struct
java.sql.SQLException
public java.lang.String getJavaClassName() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getLanguage() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String descType() 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 |