|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.sql.TypeDescriptor | +--oracle.sql.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.
Fields inherited from class oracle.sql.TypeDescriptor |
DEBUG_SERIALIZATION |
Constructor Summary |
StructDescriptor(oracle.sql.SQLName name,
oracle.sql.OracleTypeADT type,
java.sql.Connection connection)
(INTERNAL) Constructor. |
Method Summary |
Type | Method |
---|---|
static StructDescriptor |
createDescriptor(java.lang.String name,
java.sql.Connection conn)
Descriptor factory. |
java.lang.String |
descType()
Describe this type. |
java.lang.String |
getJavaClassName()
Returns the external name of the JAVA_STRUCT type. |
java.lang.String |
getLanguage()
TODO |
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()
|
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. |
Methods inherited from class oracle.sql.TypeDescriptor |
getName,
getSubtypeName,
setConnection |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public StructDescriptor(oracle.sql.SQLName name, oracle.sql.OracleTypeADT type, java.sql.Connection connection) throws java.sql.SQLException
name
- the String that names the type (fully qualified name).OracleConnection
- the connection to the data base to locate the
type.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)connection
- a Connection to a databasepublic int getTypeCode() throws java.sql.SQLException
public int getLength() throws java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
public boolean isFinalType() throws java.sql.SQLException
public boolean isSubtype() throws java.sql.SQLException
public boolean isInstantiable() throws java.sql.SQLException
public boolean isJavaObject() throws java.sql.SQLException
public java.lang.String getSupertypeName() throws java.sql.SQLException
public int getLocalAttributeCount() throws java.sql.SQLException
public java.lang.String[] getSubtypeNames() throws java.sql.SQLException
public java.lang.String getJavaClassName() throws java.sql.SQLException
public java.lang.String getLanguage() throws java.sql.SQLException
public java.lang.String descType() throws java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |