Package org.zalando.typemapper.postgres
Class PgArray<E>
- java.lang.Object
-
- org.zalando.typemapper.postgres.PgArray<E>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPgArray(String elementTypeName, Collection<E> c)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> PgArray<T>ARRAY(Collection<T> collection)static <T> PgArray<T>ARRAY(T... array)ArrayasJdbcArray(String elementTypeName)Returns a java.sql.Array view with the specified element type name for the current PgArray object.ArrayasJdbcArray(String elementTypeName, Connection connection)booleanequals(Object obj)voidfree()ObjectgetArray()ObjectgetArray(long index, int count)ObjectgetArray(long index, int count, Map<String,Class<?>> map)ObjectgetArray(Map<String,Class<?>> map)intgetBaseType()StringgetBaseTypeName()ResultSetgetResultSet()ResultSetgetResultSet(long index, int count)ResultSetgetResultSet(long index, int count, Map<String,Class<?>> map)ResultSetgetResultSet(Map<String,Class<?>> map)inthashCode()StringtoString()StringtoString(Connection connection)
-
-
-
Constructor Detail
-
PgArray
protected PgArray(String elementTypeName, Collection<E> c)
-
-
Method Detail
-
ARRAY
@SafeVarargs public static <T> PgArray<T> ARRAY(T... array)
-
ARRAY
public static <T> PgArray<T> ARRAY(Collection<T> collection)
-
toString
public String toString(Connection connection)
-
asJdbcArray
public Array asJdbcArray(String elementTypeName)
Returns a java.sql.Array view with the specified element type name for the current PgArray object.- Parameters:
elementTypeName-- Returns:
- java.sql.Array view with the specified element type name
-
asJdbcArray
public Array asJdbcArray(String elementTypeName, Connection connection)
-
getBaseTypeName
public String getBaseTypeName() throws SQLException
- Specified by:
getBaseTypeNamein interfaceArray- Throws:
SQLException
-
getBaseType
public int getBaseType() throws SQLException- Specified by:
getBaseTypein interfaceArray- Throws:
SQLException
-
getArray
public Object getArray() throws SQLException
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getArray
public Object getArray(Map<String,Class<?>> map) throws SQLException
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getArray
public Object getArray(long index, int count) throws SQLException
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getArray
public Object getArray(long index, int count, Map<String,Class<?>> map) throws SQLException
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet() throws SQLException
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(Map<String,Class<?>> map) throws SQLException
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(long index, int count) throws SQLException
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(long index, int count, Map<String,Class<?>> map) throws SQLException
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
free
public void free() throws SQLException- Specified by:
freein interfaceArray- Throws:
SQLException
-
-