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.ArrayA 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 voidfree()INTERNALjava.lang.ObjectgetArray()Get the object array.java.lang.ObjectgetArray(long index, int count)INTERNALjava.lang.ObjectgetArray(long index, int count, java.util.Map<java.lang.String,java.lang.Class<?>> map)INTERNALjava.lang.ObjectgetArray(java.util.Map<java.lang.String,java.lang.Class<?>> map)INTERNALintgetBaseType()Get the base type of this array.java.lang.StringgetBaseTypeName()Get the base type name of this array.java.sql.ResultSetgetResultSet()INTERNALjava.sql.ResultSetgetResultSet(long index, int count)INTERNALjava.sql.ResultSetgetResultSet(long index, int count, java.util.Map<java.lang.String,java.lang.Class<?>> map)INTERNALjava.sql.ResultSetgetResultSet(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:
getArrayin 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.SQLExceptionINTERNAL- Specified by:
getArrayin interfacejava.sql.Array- Throws:
java.sql.SQLException
-
getArray
public java.lang.Object getArray(long index, int count) throws java.sql.SQLExceptionINTERNAL- Specified by:
getArrayin 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.SQLExceptionINTERNAL- Specified by:
getArrayin interfacejava.sql.Array- Throws:
java.sql.SQLException
-
getBaseType
public int getBaseType()
Get the base type of this array.- Specified by:
getBaseTypein interfacejava.sql.Array- Returns:
- Types.NULL
-
getBaseTypeName
public java.lang.String getBaseTypeName()
Get the base type name of this array.- Specified by:
getBaseTypeNamein interfacejava.sql.Array- Returns:
- "NULL"
-
getResultSet
public java.sql.ResultSet getResultSet() throws java.sql.SQLExceptionINTERNAL- Specified by:
getResultSetin 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.SQLExceptionINTERNAL- Specified by:
getResultSetin interfacejava.sql.Array- Throws:
java.sql.SQLException
-
getResultSet
public java.sql.ResultSet getResultSet(long index, int count) throws java.sql.SQLExceptionINTERNAL- Specified by:
getResultSetin 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.SQLExceptionINTERNAL- Specified by:
getResultSetin interfacejava.sql.Array- Throws:
java.sql.SQLException
-
free
public void free()
INTERNAL- Specified by:
freein interfacejava.sql.Array
-
-