|
Oracle Database JDBC Java API Reference 11g Release 2 E13995-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.sql.TypeDescriptor
oracle.sql.ArrayDescriptor
public class ArrayDescriptor
Describes an array class. In Oracle 8 all arrays are named types.
ARRAY, Serialized Form| 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 int |
CACHE_ALL |
static int |
CACHE_LAST |
static int |
CACHE_NONE |
static boolean |
TRACE |
static int |
TYPE_NESTED_TABLE |
static int |
TYPE_VARRAY |
| Method Summary | |
|---|---|
static ArrayDescriptor |
createDescriptor(oracle.sql.SQLName sqlName, java.sql.Connection conn)Descriptor factory. |
static ArrayDescriptor |
createDescriptor(oracle.sql.SQLName sqlName, java.sql.Connection conn, boolean recurse, boolean force)Descriptor factory. |
static ArrayDescriptor |
createDescriptor(java.lang.String name, java.sql.Connection conn)Descriptor factory. |
static ArrayDescriptor |
createDescriptor(java.lang.String name, java.sql.Connection conn, boolean recurse, boolean force)Descriptor factory. |
java.lang.String |
descType()Describe the collection type. |
OracleTypeMetaData.ArrayStorage |
getArrayStorage()Return the database type of the array. |
int |
getArrayType()Return the database type of the array. |
java.lang.String |
getBaseName()In case the elements are named types the fully qualified name of their type.Otherwise, return type name used by the database |
int |
getBaseType()Return element's type code. |
OracleTypeMetaData.Kind |
getKind()Return the kind of type. |
long |
getMaxLength()Return the maximun number of elements this array object can hold. |
int |
getTypeCode()Returns type code. |
java.sql.ResultSet |
toResultSet(ARRAY array, long index, int count, java.util.Map map, boolean saveLocalCopy) |
java.sql.ResultSet |
toResultSetFromImage(ARRAY array, long index, int count, java.util.Map map) |
| 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 int TYPE_VARRAY
public static final int TYPE_NESTED_TABLE
public static final int CACHE_NONE
public static final int CACHE_ALL
public static final int CACHE_LAST
public static final boolean TRACE
| Method Detail |
|---|
public static ArrayDescriptor 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 databasejava.sql.SQLException - if the name does not name an array type.
public static ArrayDescriptor 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 - if the name does not name an array type.
public static ArrayDescriptor createDescriptor(oracle.sql.SQLName sqlName,
java.sql.Connection conn)
throws java.sql.SQLException
name - a SQLName with the name of the type.connection - a Connection to a databasejava.sql.SQLException - if the name does not name an array type.
public static ArrayDescriptor createDescriptor(oracle.sql.SQLName sqlName,
java.sql.Connection conn,
boolean recurse,
boolean force)
throws java.sql.SQLException
name - a SQLName with the name of the type.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 - if the name does not name an array type.public OracleTypeMetaData.Kind getKind()
OracleTypeMetaDatagetKind in interface OracleTypeMetaDatagetKind in class TypeDescriptor
public int getBaseType()
throws java.sql.SQLException
getBaseType in interface OracleTypeMetaData.Arrayjava.sql.SQLException
public java.lang.String getBaseName()
throws java.sql.SQLException
getBaseName in interface OracleTypeMetaData.Arrayjava.sql.SQLException - if the element's type is not named.
public OracleTypeMetaData.ArrayStorage getArrayStorage()
throws java.sql.SQLException
getArrayStorage in interface OracleTypeMetaData.Arrayjava.sql.SQLException
public int getArrayType()
throws java.sql.SQLException
java.sql.SQLException
public long getMaxLength()
throws java.sql.SQLException
getMaxLength in interface OracleTypeMetaData.Arrayjava.sql.SQLException
public java.lang.String descType()
throws java.sql.SQLException
java.sql.SQLException
public java.sql.ResultSet toResultSet(ARRAY array,
long index,
int count,
java.util.Map map,
boolean saveLocalCopy)
throws java.sql.SQLException
java.sql.SQLException
public java.sql.ResultSet toResultSetFromImage(ARRAY array,
long index,
int count,
java.util.Map map)
throws java.sql.SQLException
java.sql.SQLException
public int getTypeCode()
throws java.sql.SQLException
TypeDescriptorgetTypeCode in interface OracleTypeMetaDatagetTypeCode in class TypeDescriptorjava.sql.SQLException
|
Oracle Database JDBC Java API Reference 11g Release 2 E13995-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||