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