Package com.impossibl.postgres.jdbc
Class PGArray
- java.lang.Object
-
- com.impossibl.postgres.jdbc.PGArray
-
- All Implemented Interfaces:
Array
- Direct Known Subclasses:
PGBuffersArray
public abstract class PGArray extends Object implements Array
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
checkFreed()
Object
getArray()
Object
getArray(long index, int count)
Object
getArray(long index, int count, Map<String,Class<?>> typeMap)
protected abstract Object
getArray(Context context, Class<?> targetComponentType, long index, int count)
Object
getArray(Class<?> targetComponentType)
Object
getArray(Map<String,Class<?>> typeMap)
int
getBaseType()
String
getBaseTypeName()
abstract int
getLength()
ResultSet
getResultSet()
ResultSet
getResultSet(long index, int count)
ResultSet
getResultSet(long index, int count, Map<String,Class<?>> typeMap)
protected abstract ResultSet
getResultSet(Context context, long index, int count)
ResultSet
getResultSet(Map<String,Class<?>> typeMap)
ArrayType
getType()
-
-
-
Method Detail
-
getLength
public abstract int getLength()
-
getArray
protected abstract Object getArray(Context context, Class<?> targetComponentType, long index, int count) throws SQLException
- Throws:
SQLException
-
getResultSet
protected abstract ResultSet getResultSet(Context context, long index, int count) throws SQLException
- Throws:
SQLException
-
checkFreed
protected void checkFreed() throws SQLException
- Throws:
SQLException
-
getType
public ArrayType getType()
-
getBaseTypeName
public String getBaseTypeName() throws SQLException
- Specified by:
getBaseTypeName
in interfaceArray
- Throws:
SQLException
-
getBaseType
public int getBaseType() throws SQLException
- Specified by:
getBaseType
in interfaceArray
- Throws:
SQLException
-
getArray
public Object getArray(Class<?> targetComponentType) throws SQLException
- Throws:
SQLException
-
getArray
public Object getArray() throws SQLException
- Specified by:
getArray
in interfaceArray
- Throws:
SQLException
-
getArray
public Object getArray(Map<String,Class<?>> typeMap) throws SQLException
- Specified by:
getArray
in interfaceArray
- Throws:
SQLException
-
getArray
public Object getArray(long index, int count) throws SQLException
- Specified by:
getArray
in interfaceArray
- Throws:
SQLException
-
getArray
public Object getArray(long index, int count, Map<String,Class<?>> typeMap) throws SQLException
- Specified by:
getArray
in interfaceArray
- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet() throws SQLException
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(Map<String,Class<?>> typeMap) throws SQLException
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(long index, int count) throws SQLException
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(long index, int count, Map<String,Class<?>> typeMap) throws SQLException
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
-