|
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
public class TypeDescriptor
The descriptor of pre-defined types.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.jdbc.OracleTypeMetaData |
---|
OracleTypeMetaData.Array, OracleTypeMetaData.ArrayStorage, OracleTypeMetaData.Kind, OracleTypeMetaData.Opaque, OracleTypeMetaData.Struct |
Method Summary | |
---|---|
short |
getInternalTypeCode()
|
OracleTypeMetaData.Kind |
getKind()
Return the kind of type. |
java.lang.String |
getName()
Return fully qualified type name. |
long |
getPrecision()
|
byte |
getScale()
|
static java.lang.String |
getSubtypeName(OracleConnection conn,
byte[] image,
long offset)
|
int |
getTypeCode()
Returns type code. |
java.lang.String |
getTypeCodeName()
Returns the type code name. |
void |
initMetadataRecursively()
|
void |
initNamesRecursively()
|
boolean |
isTransient()
|
void |
printXML(java.io.PrintStream s)
Print an XML representation of this type and all OracleTypes within. |
void |
printXML(java.io.PrintStream stream,
boolean fetchAllMetaDataAsNeeded)
Print an XML representation of this type and all OracleTypes within. |
void |
setConnection(java.sql.Connection connection)
|
void |
setPrecision(long _precision)
|
void |
setScale(byte _scale)
|
Datum |
toDatum(java.sql.Connection c)
Extract an oracle.sql.Datum object. |
java.lang.Object |
toJDBCObject(java.sql.Connection c)
Extract a jdbc Object. |
java.lang.String |
toXMLString()
Creates a String which is an XML representation of this type and all OracleTypes within. |
java.lang.String |
toXMLString(boolean fetchAllMetaDataAsNeeded)
Creates a String which is an XML representation of this type and all OracleTypes within. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean DEBUG_SERIALIZATION
public static final byte[] RAWTOID
public static final byte[] ANYTYPETOID
public static final byte[] ANYDATATOID
public static final byte[] ANYDATASETTOID
public static final byte[] XMLTYPETOID
public static final short TYPECODE_REF
public static final short TYPECODE_DATE
public static final short TYPECODE_SIGNED8
public static final short TYPECODE_SIGNED16
public static final short TYPECODE_SIGNED32
public static final short TYPECODE_REAL
public static final short TYPECODE_DOUBLE
public static final short TYPECODE_BFLOAT
public static final short TYPECODE_BDOUBLE
public static final short TYPECODE_FLOAT
public static final short TYPECODE_NUMBER
public static final short TYPECODE_DECIMAL
public static final short TYPECODE_UNSIGNED8
public static final short TYPECODE_UNSIGNED16
public static final short TYPECODE_UNSIGNED32
public static final short TYPECODE_OCTET
public static final short TYPECODE_SMALLINT
public static final short TYPECODE_INTEGER
public static final short TYPECODE_RAW
public static final short TYPECODE_PTR
public static final short TYPECODE_VARCHAR2
public static final short TYPECODE_CHAR
public static final short TYPECODE_VARCHAR
public static final short TYPECODE_MLSLABEL
public static final short TYPECODE_VARRAY
public static final short TYPECODE_TABLE
public static final short TYPECODE_OBJECT
public static final short TYPECODE_OPAQUE
public static final short TYPECODE_NAMEDCOLLECTION
public static final short TYPECODE_BLOB
public static final short TYPECODE_BFILE
public static final short TYPECODE_CLOB
public static final short TYPECODE_CFILE
public static final short TYPECODE_TIME
public static final short TYPECODE_TIME_TZ
public static final short TYPECODE_TIMESTAMP
public static final short TYPECODE_TIMESTAMP_TZ
public static final short TYPECODE_TIMESTAMP_LTZ
public static final short TYPECODE_INTERVAL_YM
public static final short TYPECODE_INTERVAL_DS
public static final short TYPECODE_UROWID
public static final short TYPECODE_OTMFIRST
public static final short TYPECODE_OTMLAST
public static final short TYPECODE_SYSFIRST
public static final short TYPECODE_SYSLAST
public static final short TYPECODE_PLS_INTEGER
public static final short TYPECODE_ITABLE
public static final short TYPECODE_RECORD
public static final short TYPECODE_BOOLEAN
public static final short TYPECODE_NCHAR
public static final short TYPECODE_NVARCHAR2
public static final short TYPECODE_NCLOB
public static final short TYPECODE_NONE
public static final short TYPECODE_ERRHP
public static final short TYPECODE_JDBC_JOBJECT
public static final short TYPECODE_JDBC_STRUCT
public static final short TYPECODE_JDBC_ARRAY
public static final short TYPECODE_JDBC_JOPAQUE
public static final short TYPECODE_JDBC_REF
public static final short TYPECODE_JDBC_JSTRUCT
public static final java.lang.String BUILD_DATE
public static final boolean TRACE
Method Detail |
---|
public OracleTypeMetaData.Kind getKind()
OracleTypeMetaData
getKind
in interface OracleTypeMetaData
public java.lang.String getName() throws java.sql.SQLException
getName
in interface OracleTypeMetaData
java.sql.SQLException
public int getTypeCode() throws java.sql.SQLException
getTypeCode
in interface OracleTypeMetaData
java.sql.SQLException
public java.lang.String getTypeCodeName() throws java.sql.SQLException
getTypeCodeName
in interface OracleTypeMetaData
java.sql.SQLException
public short getInternalTypeCode() throws java.sql.SQLException
java.sql.SQLException
public Datum toDatum(java.sql.Connection c) throws java.sql.SQLException
ORAData
This method is invoked by setORAData() to extract a Datum. The implementation of this method must return the correct type of Datum.
Although most implementation will ignore the connection, it is occassionally needed. For example, if the class embeds CHAR attributes, connection may be needed to determine the database character set.
toDatum
in interface ORAData
c
- The connection into which the value is being sent.
java.sql.SQLException
- if an error occurred.public java.lang.Object toJDBCObject(java.sql.Connection c) throws java.sql.SQLException
OracleData
This method is invoked by setObject() to extract the jdbc Object. The implementation must return the jdbc Object that correctly represents the underlying SQLType.
Although most implementation will ignore the connection, it is ocassionally needed. for example, if the class embeds CHAR attributes, connection may be needed to determine the database character set.
toJDBCObject
in interface OracleData
c
- The connection into which the value is being sent.
java.sql.SQLException
- if an error occurred.public boolean isTransient()
public void setPrecision(long _precision)
public long getPrecision()
public void setScale(byte _scale)
public byte getScale()
public void setConnection(java.sql.Connection connection) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String getSubtypeName(OracleConnection conn, byte[] image, long offset) throws java.sql.SQLException
java.sql.SQLException
public void initMetadataRecursively() throws java.sql.SQLException
java.sql.SQLException
public void initNamesRecursively() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String toXMLString() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String toXMLString(boolean fetchAllMetaDataAsNeeded) throws java.sql.SQLException
fetchAllMetaDataAsNeeded
- if set to true and if necessary
the driver will fetch the metadata from the server
java.sql.SQLException
public void printXML(java.io.PrintStream s) throws java.sql.SQLException
s
- a PrintStream upon which to write
java.sql.SQLException
public void printXML(java.io.PrintStream stream, boolean fetchAllMetaDataAsNeeded) throws java.sql.SQLException
stream
- a PrintStream upon which to writefetchAllMetaDataAsNeeded
- if set to true and if necessary
the driver will fetch the metadata from the server
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 |