All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.sql.ArrayDescriptor

java.lang.Object
   |
   +----oracle.sql.ArrayDescriptor

public class ArrayDescriptor
extends Object

Variable Index

 o TYPE_NESTED_TABLE
 o TYPE_VARRAY

Method Index

 o createDescriptor(String, Connection)
Descriptor factory.
 o getArrayType()
Return the database type of the array.
 o getBaseName()
In case the elements are named types the fully qualified name of their type.Otherwise, return type name used by the database
 o getBaseType()
Return element's type code.
 o getMaxLength()
Return the maximun number of elements this array object can hold.
 o getName()
Name supplied when ArrayDescriptor was constructed.

Variables

 o TYPE_VARRAY
 public static final int TYPE_VARRAY
 o TYPE_NESTED_TABLE
 public static final int TYPE_NESTED_TABLE

Methods

 o 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.
 o getName
 public String getName() throws SQLException
Name supplied when ArrayDescriptor was constructed.

Returns:
name by which the array type is known
 o getBaseType
 public int getBaseType() throws SQLException
Return element's type code.

Returns:
the type code of elements of the array
 o 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.
 o 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.
 o 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