Package ome.tools.hibernate
Class SqlArray<T>
- java.lang.Object
-
- ome.tools.hibernate.SqlArray<T>
-
- All Implemented Interfaces:
java.sql.Array
- Direct Known Subclasses:
SqlArray.BOOLEAN
,SqlArray.DATE
,SqlArray.DOUBLE
,SqlArray.FLOAT
,SqlArray.INTEGER
,SqlArray.STRING
,SqlArray.STRING2
public class SqlArray<T> extends java.lang.Object implements java.sql.Array
Hibernate type to store a java array using SQL ARRAY.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SqlArray.BOOLEAN
static class
SqlArray.DATE
static class
SqlArray.DOUBLE
static class
SqlArray.FLOAT
static class
SqlArray.INTEGER
static class
SqlArray.STRING
static class
SqlArray.STRING2
-
Field Summary
Fields Modifier and Type Field Description static ListAsSQLArrayUserType.ArrayFactory
FACTORY
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendDate(java.lang.StringBuilder sb, java.util.Date date)
void
free()
java.lang.Object
getArray()
java.lang.Object
getArray(long index, int count)
java.lang.Object
getArray(long arg0, int arg1, java.util.Map<java.lang.String,java.lang.Class<?>> arg2)
java.lang.Object
getArray(java.util.Map<java.lang.String,java.lang.Class<?>> arg0)
int
getBaseType()
java.lang.String
getBaseTypeName()
java.sql.ResultSet
getResultSet()
java.sql.ResultSet
getResultSet(long index, int count)
java.sql.ResultSet
getResultSet(long arg0, int arg1, java.util.Map<java.lang.String,java.lang.Class<?>> arg2)
java.sql.ResultSet
getResultSet(java.util.Map<java.lang.String,java.lang.Class<?>> arg0)
java.lang.String
toString()
-
-
-
Field Detail
-
FACTORY
public static final ListAsSQLArrayUserType.ArrayFactory FACTORY
-
-
Method Detail
-
getBaseTypeName
public java.lang.String getBaseTypeName()
- Specified by:
getBaseTypeName
in interfacejava.sql.Array
-
getBaseType
public int getBaseType()
- Specified by:
getBaseType
in interfacejava.sql.Array
-
getArray
public java.lang.Object getArray()
- Specified by:
getArray
in interfacejava.sql.Array
-
getArray
public java.lang.Object getArray(long index, int count)
- Specified by:
getArray
in interfacejava.sql.Array
-
getArray
public java.lang.Object getArray(java.util.Map<java.lang.String,java.lang.Class<?>> arg0)
- Specified by:
getArray
in interfacejava.sql.Array
-
getArray
public java.lang.Object getArray(long arg0, int arg1, java.util.Map<java.lang.String,java.lang.Class<?>> arg2)
- Specified by:
getArray
in interfacejava.sql.Array
-
getResultSet
public java.sql.ResultSet getResultSet()
- Specified by:
getResultSet
in interfacejava.sql.Array
-
getResultSet
public java.sql.ResultSet getResultSet(java.util.Map<java.lang.String,java.lang.Class<?>> arg0)
- Specified by:
getResultSet
in interfacejava.sql.Array
-
getResultSet
public java.sql.ResultSet getResultSet(long index, int count)
- Specified by:
getResultSet
in interfacejava.sql.Array
-
getResultSet
public java.sql.ResultSet getResultSet(long arg0, int arg1, java.util.Map<java.lang.String,java.lang.Class<?>> arg2)
- Specified by:
getResultSet
in interfacejava.sql.Array
-
free
public void free()
- Specified by:
free
in interfacejava.sql.Array
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
appendDate
protected void appendDate(java.lang.StringBuilder sb, java.util.Date date)
-
-