public class ArrayDescriptor extends TypeDescriptor implements oracle.jdbc.internal.OracleTypeMetaData.Array, Serializable
oracle.jdbc.internal.OracleTypeMetaData.Array, oracle.jdbc.internal.OracleTypeMetaData.Opaque, oracle.jdbc.internal.OracleTypeMetaData.StructOracleTypeMetaData.ArrayStorage, OracleTypeMetaData.Kind| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_ALL
Deprecated.
|
static int |
CACHE_LAST
Deprecated.
|
static int |
CACHE_NONE
Deprecated.
|
static int |
TYPE_NESTED_TABLE
Deprecated.
|
static int |
TYPE_VARRAY
Deprecated.
|
ANYDATASETTOID, ANYDATATOID, ANYTYPETOID, DEBUG_SERIALIZATION, RAWTOID, TYPECODE_BDOUBLE, TYPECODE_BFILE, TYPECODE_BFLOAT, TYPECODE_BLOB, TYPECODE_BOOLEAN, TYPECODE_CFILE, TYPECODE_CHAR, TYPECODE_CLOB, TYPECODE_DATE, TYPECODE_DECIMAL, TYPECODE_DOUBLE, TYPECODE_ERRHP, TYPECODE_FLOAT, TYPECODE_INTEGER, TYPECODE_INTERVAL_DS, TYPECODE_INTERVAL_YM, TYPECODE_ITABLE, TYPECODE_JDBC_ARRAY, TYPECODE_JDBC_JOBJECT, TYPECODE_JDBC_JOPAQUE, TYPECODE_JDBC_JSTRUCT, TYPECODE_JDBC_REF, TYPECODE_JDBC_STRUCT, TYPECODE_MLSLABEL, TYPECODE_NAMEDCOLLECTION, TYPECODE_NCHAR, TYPECODE_NCLOB, TYPECODE_NONE, TYPECODE_NUMBER, TYPECODE_NVARCHAR2, TYPECODE_OBJECT, TYPECODE_OCTET, TYPECODE_OPAQUE, TYPECODE_OTMFIRST, TYPECODE_OTMLAST, TYPECODE_PLS_INTEGER, TYPECODE_PTR, TYPECODE_RAW, TYPECODE_REAL, TYPECODE_RECORD, TYPECODE_REF, TYPECODE_SIGNED16, TYPECODE_SIGNED32, TYPECODE_SIGNED8, TYPECODE_SMALLINT, TYPECODE_SQLXML, TYPECODE_SYSFIRST, TYPECODE_SYSLAST, TYPECODE_TABLE, TYPECODE_TIME, TYPECODE_TIME_TZ, TYPECODE_TIMESTAMP, TYPECODE_TIMESTAMP_LTZ, TYPECODE_TIMESTAMP_TZ, TYPECODE_UNSIGNED16, TYPECODE_UNSIGNED32, TYPECODE_UNSIGNED8, TYPECODE_UROWID, TYPECODE_VARCHAR, TYPECODE_VARCHAR2, TYPECODE_VARRAY, XMLTYPETOID| Modifier and Type | Method and Description |
|---|---|
static ArrayDescriptor |
createDescriptor(oracle.sql.SQLName sqlName, Connection conn)
Deprecated.
Descriptor factory.
|
static ArrayDescriptor |
createDescriptor(oracle.sql.SQLName sqlName, Connection conn, boolean recurse, boolean force)
Deprecated.
Descriptor factory.
|
static ArrayDescriptor |
createDescriptor(String name, Connection conn)
Deprecated.
Descriptor factory.
|
static ArrayDescriptor |
createDescriptor(String name, Connection conn, boolean recurse, boolean force)
Deprecated.
Descriptor factory.
|
String |
descType()
Deprecated.
Describe the collection type.
|
OracleTypeMetaData.ArrayStorage |
getArrayStorage()
Deprecated.
Return the database type of the array.
|
int |
getArrayType()
Deprecated.
Return the database type of the array.
|
String |
getBaseName()
Deprecated.
In case the elements are named types the fully qualified name of their type.Otherwise, return type name used by the database
|
int |
getBaseType()
Deprecated.
Return element's type code.
|
OracleTypeMetaData.Kind |
getKind()
Deprecated.
Return the kind of type.
|
long |
getMaxLength()
Deprecated.
Return the maximun number of elements this array object can hold.
|
int |
getTypeCode()
Deprecated.
Returns type code.
|
byte[] |
toBytes(oracle.jdbc.internal.OracleArray s, Datum sDatum, boolean keepLocalCopy)
Deprecated.
Side Effect: array.datumArray, array.bytes may be modified if 'keepLocalCopy' is true
|
Object[] |
toJavaArray(oracle.jdbc.internal.OracleArray s, Datum sDatum, long beginIdx, int count, Map map, boolean keepLocalCopy)
Deprecated.
Side Effect: array.datumArray, array.bytes, s.objectArray may be modified if 'keepLocalCopy' is true
|
Object |
toNumericArray(oracle.jdbc.internal.OracleArray array, Datum arrayDatum, long beginIdx, int count, int type, boolean saveLocalCopy)
Deprecated.
|
Datum[] |
toOracleArray(oracle.jdbc.internal.OracleArray s, Datum sDatum, long beginIdx, int count, boolean keepLocalCopy)
Deprecated.
Side Effect: array.datumArray, array.bytes may be modified if 'keepLocalCopy' is true
|
ResultSet |
toResultSet(ARRAY array, long index, int count, Map map, boolean saveLocalCopy)
Deprecated.
|
ResultSet |
toResultSet(oracle.jdbc.internal.OracleArray array, Datum arrayDatum, long index, int count, Map map, boolean saveLocalCopy)
Deprecated.
|
ResultSet |
toResultSetFromImage(oracle.jdbc.internal.OracleArray array, long index, int count, Map map)
Deprecated.
|
convToUpperCase, getConnectionDuringExceptionHandling, getInternalTypeCode, getName, getPrecision, getScale, getSubtypeName, getTypeCodeName, initMetadataRecursively, initNamesRecursively, isTransient, isV2available, printXML, printXML, setConnection, setPrecision, setScale, toDatum, toJDBCObject, toXMLString, toXMLStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getSchemaName, getSQLName, getTypeCodeNamepublic 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 ArrayDescriptor createDescriptor(String name, Connection conn) throws SQLException
name - a String naming the type. (Not necessarily fully qualified)connection - a Connection to a databaseSQLException - if the name does not name an array type.public static ArrayDescriptor createDescriptor(String name, Connection conn, boolean recurse, boolean force) throws 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.SQLException - if the name does not name an array type.public static ArrayDescriptor createDescriptor(oracle.sql.SQLName sqlName, Connection conn) throws SQLException
name - a SQLName with the name of the type.connection - a Connection to a databaseSQLException - if the name does not name an array type.public static ArrayDescriptor createDescriptor(oracle.sql.SQLName sqlName, Connection conn, boolean recurse, boolean force) throws 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.SQLException - if the name does not name an array type.public OracleTypeMetaData.Kind getKind()
OracleTypeMetaDatagetKind in interface OracleTypeMetaDatagetKind in class TypeDescriptorpublic int getBaseType()
throws SQLException
getBaseType in interface OracleTypeMetaData.ArraySQLExceptionpublic String getBaseName() throws SQLException
getBaseName in interface OracleTypeMetaData.ArraySQLException - if the element's type is not named.public OracleTypeMetaData.ArrayStorage getArrayStorage() throws SQLException
getArrayStorage in interface OracleTypeMetaData.ArraySQLExceptionpublic int getArrayType()
throws SQLException
SQLExceptionpublic long getMaxLength()
throws SQLException
getMaxLength in interface OracleTypeMetaData.ArraySQLExceptionpublic String descType() throws SQLException
SQLExceptionpublic byte[] toBytes(oracle.jdbc.internal.OracleArray s,
Datum sDatum,
boolean keepLocalCopy)
throws SQLException
SQLExceptionpublic Datum[] toOracleArray(oracle.jdbc.internal.OracleArray s, Datum sDatum, long beginIdx, int count, boolean keepLocalCopy) throws SQLException
SQLExceptionpublic Object[] toJavaArray(oracle.jdbc.internal.OracleArray s, Datum sDatum, long beginIdx, int count, Map map, boolean keepLocalCopy) throws SQLException
SQLExceptionpublic ResultSet toResultSet(ARRAY array, long index, int count, Map map, boolean saveLocalCopy) throws SQLException
SQLExceptionpublic ResultSet toResultSet(oracle.jdbc.internal.OracleArray array, Datum arrayDatum, long index, int count, Map map, boolean saveLocalCopy) throws SQLException
SQLExceptionpublic ResultSet toResultSetFromImage(oracle.jdbc.internal.OracleArray array, long index, int count, Map map) throws SQLException
SQLExceptionpublic Object toNumericArray(oracle.jdbc.internal.OracleArray array, Datum arrayDatum, long beginIdx, int count, int type, boolean saveLocalCopy) throws SQLException
SQLExceptionpublic int getTypeCode()
throws SQLException
TypeDescriptorgetTypeCode in interface OracleTypeMetaDatagetTypeCode in class TypeDescriptorSQLException