org.postgresql.jdbc2
Class AbstractJdbc2Array
java.lang.Object
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)
AbstractJdbc2Array
public AbstractJdbc2Array(BaseConnection connection,
int oid,
String fieldString)
throws SQLException
- Create a new Array.
- Parameters:
connection - a database connectionoid - the oid of the array datatypefieldString - the array data in string form
- Throws:
SQLException
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.