org.postgresql.jdbc2
Class AbstractJdbc2Array

java.lang.Object
  extended by org.postgresql.jdbc2.AbstractJdbc2Array
Direct Known Subclasses:
Jdbc3Array, Jdbc3gArray, Jdbc4Array

public abstract class AbstractJdbc2Array
extends Object

Array is used collect one column of query result data.

Read a field of type Array into either a natively-typed Java array object or a ResultSet. Accessor methods provide the ability to capture array slices.

Other than the constructor all methods are direct implementations of those specified for java.sql.Array. Please refer to the javadoc for java.sql.Array for detailed descriptions of the functionality and parameters of the methods of this class.

See Also:
ResultSet.getArray(int)

Constructor Summary
AbstractJdbc2Array(BaseConnection connection, int oid, String fieldString)
          Create a new Array.
 
Method Summary
static void escapeArrayElement(StringBuffer b, String s)
           
 Object getArray()
           
 Object getArray(long index, int count)
           
 Object getArrayImpl(long index, int count, Map map)
           
 Object getArrayImpl(Map map)
           
 int getBaseType()
           
 String getBaseTypeName()
           
 ResultSet getResultSet()
           
 ResultSet getResultSet(long index, int count)
           
 ResultSet getResultSetImpl(long index, int count, Map map)
           
 ResultSet getResultSetImpl(Map map)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractJdbc2Array

public AbstractJdbc2Array(BaseConnection connection,
                          int oid,
                          String fieldString)
                   throws SQLException
Create a new Array.

Parameters:
connection - a database connection
oid - the oid of the array datatype
fieldString - the array data in string form
Throws:
SQLException
Method Detail

getArray

public Object getArray()
                throws SQLException
Throws:
SQLException

getArray

public Object getArray(long index,
                       int count)
                throws SQLException
Throws:
SQLException

getArrayImpl

public Object getArrayImpl(Map map)
                    throws SQLException
Throws:
SQLException

getArrayImpl

public Object getArrayImpl(long index,
                           int count,
                           Map map)
                    throws SQLException
Throws:
SQLException

getBaseType

public int getBaseType()
                throws SQLException
Throws:
SQLException

getBaseTypeName

public String getBaseTypeName()
                       throws SQLException
Throws:
SQLException

getResultSet

public ResultSet getResultSet()
                       throws SQLException
Throws:
SQLException

getResultSet

public ResultSet getResultSet(long index,
                              int count)
                       throws SQLException
Throws:
SQLException

getResultSetImpl

public ResultSet getResultSetImpl(Map map)
                           throws SQLException
Throws:
SQLException

getResultSetImpl

public ResultSet getResultSetImpl(long index,
                                  int count,
                                  Map map)
                           throws SQLException
Throws:
SQLException

toString

public String toString()
Overrides:
toString in class Object

escapeArrayElement

public static void escapeArrayElement(StringBuffer b,
                                      String s)


Copyright © 2013. All Rights Reserved.