Package org.h2.tools
Class SimpleResultSet.SimpleArray
- java.lang.Object
-
- org.h2.tools.SimpleResultSet.SimpleArray
-
- All Implemented Interfaces:
java.sql.Array
- Enclosing class:
- SimpleResultSet
public static class SimpleResultSet.SimpleArray extends java.lang.Object implements java.sql.Array
A simple array implementation, backed by an object array
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]
value
-
Constructor Summary
Constructors Constructor Description SimpleArray(java.lang.Object[] value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
free()
INTERNALjava.lang.Object
getArray()
Get the object array.java.lang.Object
getArray(long index, int count)
INTERNALjava.lang.Object
getArray(long index, int count, java.util.Map<java.lang.String,java.lang.Class<?>> map)
INTERNALjava.lang.Object
getArray(java.util.Map<java.lang.String,java.lang.Class<?>> map)
INTERNALint
getBaseType()
Get the base type of this array.java.lang.String
getBaseTypeName()
Get the base type name of this array.java.sql.ResultSet
getResultSet()
INTERNALjava.sql.ResultSet
getResultSet(long index, int count)
INTERNALjava.sql.ResultSet
getResultSet(long index, int count, java.util.Map<java.lang.String,java.lang.Class<?>> map)
INTERNALjava.sql.ResultSet
getResultSet(java.util.Map<java.lang.String,java.lang.Class<?>> map)
INTERNAL
-
-
-
Method Detail
-
getArray
public java.lang.Object getArray()
Get the object array.- Specified by:
getArray
in interfacejava.sql.Array
- Returns:
- the object array
-
getArray
public java.lang.Object getArray(java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException
INTERNAL- 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
INTERNAL- 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<?>> map) throws java.sql.SQLException
INTERNAL- Specified by:
getArray
in interfacejava.sql.Array
- Throws:
java.sql.SQLException
-
getBaseType
public int getBaseType()
Get the base type of this array.- Specified by:
getBaseType
in interfacejava.sql.Array
- Returns:
- Types.NULL
-
getBaseTypeName
public java.lang.String getBaseTypeName()
Get the base type name of this array.- Specified by:
getBaseTypeName
in interfacejava.sql.Array
- Returns:
- "NULL"
-
getResultSet
public java.sql.ResultSet getResultSet() throws java.sql.SQLException
INTERNAL- 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<?>> map) throws java.sql.SQLException
INTERNAL- 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
INTERNAL- 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<?>> map) throws java.sql.SQLException
INTERNAL- Specified by:
getResultSet
in interfacejava.sql.Array
- Throws:
java.sql.SQLException
-
free
public void free()
INTERNAL- Specified by:
free
in interfacejava.sql.Array
-
-