|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.jdbc.PgArray
public class PgArray
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.
ResultSet.getArray(int)
Field Summary | |
---|---|
protected org.postgresql.jdbc.PgArray.PgArrayList |
arrayList
Value of field as PgArrayList . |
protected BaseConnection |
connection
A database connection. |
protected byte[] |
fieldBytes
|
protected String |
fieldString
Field value as String. |
Constructor Summary | |
---|---|
PgArray(BaseConnection connection,
int oid,
byte[] fieldBytes)
Create a new Array. |
|
PgArray(BaseConnection connection,
int oid,
String fieldString)
Create a new Array. |
Method Summary | |
---|---|
static void |
escapeArrayElement(StringBuilder b,
String s)
|
void |
free()
|
Object |
getArray()
|
Object |
getArray(long index,
int count)
|
Object |
getArray(long index,
int count,
Map<String,Class<?>> map)
|
Object |
getArray(Map<String,Class<?>> map)
|
Object |
getArrayImpl(long index,
int count,
Map<String,Class<?>> map)
|
Object |
getArrayImpl(Map<String,Class<?>> map)
|
int |
getBaseType()
|
String |
getBaseTypeName()
|
ResultSet |
getResultSet()
|
ResultSet |
getResultSet(long index,
int count)
|
ResultSet |
getResultSet(long index,
int count,
Map<String,Class<?>> map)
|
ResultSet |
getResultSet(Map<String,Class<?>> map)
|
ResultSet |
getResultSetImpl(long index,
int count,
Map<String,Class<?>> map)
|
ResultSet |
getResultSetImpl(Map<String,Class<?>> map)
|
boolean |
isBinary()
|
byte[] |
toBytes()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected BaseConnection connection
protected String fieldString
protected org.postgresql.jdbc.PgArray.PgArrayList arrayList
PgArrayList
. Will be initialized only once within
buildArrayList()
.
protected byte[] fieldBytes
Constructor Detail |
---|
public PgArray(BaseConnection connection, int oid, String fieldString) throws SQLException
connection
- a database connectionoid
- the oid of the array datatypefieldString
- the array data in string form
SQLException
- if something wrong happenspublic PgArray(BaseConnection connection, int oid, byte[] fieldBytes) throws SQLException
connection
- a database connectionoid
- the oid of the array datatypefieldBytes
- the array data in byte form
SQLException
- if something wrong happensMethod Detail |
---|
public Object getArray() throws SQLException
getArray
in interface Array
SQLException
public Object getArray(long index, int count) throws SQLException
getArray
in interface Array
SQLException
public Object getArrayImpl(Map<String,Class<?>> map) throws SQLException
SQLException
public Object getArray(Map<String,Class<?>> map) throws SQLException
getArray
in interface Array
SQLException
public Object getArray(long index, int count, Map<String,Class<?>> map) throws SQLException
getArray
in interface Array
SQLException
public Object getArrayImpl(long index, int count, Map<String,Class<?>> map) throws SQLException
SQLException
public int getBaseType() throws SQLException
getBaseType
in interface Array
SQLException
public String getBaseTypeName() throws SQLException
getBaseTypeName
in interface Array
SQLException
public ResultSet getResultSet() throws SQLException
getResultSet
in interface Array
SQLException
public ResultSet getResultSet(long index, int count) throws SQLException
getResultSet
in interface Array
SQLException
public ResultSet getResultSet(Map<String,Class<?>> map) throws SQLException
getResultSet
in interface Array
SQLException
public ResultSet getResultSet(long index, int count, Map<String,Class<?>> map) throws SQLException
getResultSet
in interface Array
SQLException
public ResultSet getResultSetImpl(Map<String,Class<?>> map) throws SQLException
SQLException
public ResultSet getResultSetImpl(long index, int count, Map<String,Class<?>> map) throws SQLException
SQLException
public String toString()
toString
in class Object
public static void escapeArrayElement(StringBuilder b, String s)
public boolean isBinary()
public byte[] toBytes()
public void free() throws SQLException
free
in interface Array
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |