All Packages Class Hierarchy This Package Previous Next Index
Class oracle.sql.ArrayDescriptor
java.lang.Object
|
+----oracle.sql.ArrayDescriptor
- public class ArrayDescriptor
- extends Object
-
TYPE_NESTED_TABLE
-
-
TYPE_VARRAY
-
-
createDescriptor(String, Connection)
- Descriptor factory.
-
getArrayType()
- Return the database type of the array.
-
getBaseName()
- In case the elements are named types the fully qualified name
of their type.Otherwise, return type name used by the database
-
getBaseType()
- Return element's type code.
-
getMaxLength()
- Return the maximun number of elements this array object can hold.
-
getName()
- Name supplied when ArrayDescriptor was constructed.
TYPE_VARRAY
public static final int TYPE_VARRAY
TYPE_NESTED_TABLE
public static final int TYPE_NESTED_TABLE
createDescriptor
public static ArrayDescriptor createDescriptor(String name,
Connection conn) throws SQLException
- Descriptor factory.
Lookup the name in the database, and determine the characteristics
of this array.
- Parameters:
- name - a String naming the type. (Not necessarily fully qualified)
- connection - a Connection to a database
- Throws: SQLException
- if the name does not name an 117array type.
getName
public String getName() throws SQLException
- Name supplied when ArrayDescriptor was constructed.
- Returns:
- name by which the array type is known
getBaseType
public int getBaseType() throws SQLException
- Return element's type code.
- Returns:
- the type code of elements of the array
getBaseName
public String getBaseName() throws SQLException
- In case the elements are named types the fully qualified name
of their type.Otherwise, return type name used by the database
- Returns:
- the name of the base type.
- Throws: SQLException
- if the element's type is not named.
getArrayType
public int getArrayType() throws SQLException
- Return the database type of the array. The possible return values
are ArrayDescriptor.TYPE_VARRAY and ArrayDescriptor.TYPE_NESTED_TABLE.
- Returns:
- database array type.
getMaxLength
public long getMaxLength() throws SQLException
- Return the maximun number of elements this array object can hold.
- Returns:
- the maximum array size; return 0 if no limit.
All Packages Class Hierarchy This Package Previous Next Index