public final class JdbcArray
extends org.h2.message.TraceObject
implements java.sql.Array
Constructor and Description |
---|
JdbcArray(JdbcConnection conn,
org.h2.value.Value value,
int id)
INTERNAL
|
Modifier and Type | Method and Description |
---|---|
void |
free()
Release all resources of this object.
|
java.lang.Object |
getArray()
Returns the value as a Java array.
|
java.lang.Object |
getArray(long index,
int count)
Returns the value as a Java array.
|
java.lang.Object |
getArray(long index,
int count,
java.util.Map<java.lang.String,java.lang.Class<?>> map)
Returns the value as a Java array.
|
java.lang.Object |
getArray(java.util.Map<java.lang.String,java.lang.Class<?>> map)
Returns the value as a Java array.
|
int |
getBaseType()
Returns the base type of the array.
|
java.lang.String |
getBaseTypeName()
Returns the base type name of the array.
|
java.sql.ResultSet |
getResultSet()
Returns the value as a result set.
|
java.sql.ResultSet |
getResultSet(long index,
int count)
Returns the value as a result set.
|
java.sql.ResultSet |
getResultSet(long index,
int count,
java.util.Map<java.lang.String,java.lang.Class<?>> map)
Returns the value as a result set.
|
java.sql.ResultSet |
getResultSet(java.util.Map<java.lang.String,java.lang.Class<?>> map)
Returns the value as a result set.
|
java.lang.String |
toString()
INTERNAL
|
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupported
public JdbcArray(JdbcConnection conn, org.h2.value.Value value, int id)
conn
- it belongs tovalue
- ofid
- of the trace objectpublic java.lang.Object getArray() throws java.sql.SQLException
getArray
in interface java.sql.Array
java.sql.SQLException
public java.lang.Object getArray(java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException
getArray
in interface java.sql.Array
map
- is ignored. Only empty or null maps are supportedjava.sql.SQLException
public java.lang.Object getArray(long index, int count) throws java.sql.SQLException
getArray
in interface java.sql.Array
index
- the start index of the subset (starting with 1)count
- the maximum number of valuesjava.sql.SQLException
public java.lang.Object getArray(long index, int count, java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException
getArray
in interface java.sql.Array
index
- the start index of the subset (starting with 1)count
- the maximum number of valuesmap
- is ignored. Only empty or null maps are supportedjava.sql.SQLException
public int getBaseType() throws java.sql.SQLException
getBaseType
in interface java.sql.Array
java.sql.SQLException
public java.lang.String getBaseTypeName() throws java.sql.SQLException
getBaseTypeName
in interface java.sql.Array
java.sql.SQLException
public java.sql.ResultSet getResultSet() throws java.sql.SQLException
getResultSet
in interface java.sql.Array
java.sql.SQLException
public java.sql.ResultSet getResultSet(java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException
getResultSet
in interface java.sql.Array
map
- is ignored. Only empty or null maps are supportedjava.sql.SQLException
public java.sql.ResultSet getResultSet(long index, int count) throws java.sql.SQLException
getResultSet
in interface java.sql.Array
index
- the start index of the subset (starting with 1)count
- the maximum number of valuesjava.sql.SQLException
public java.sql.ResultSet getResultSet(long index, int count, java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException
getResultSet
in interface java.sql.Array
index
- the start index of the subset (starting with 1)count
- the maximum number of valuesmap
- is ignored. Only empty or null maps are supportedjava.sql.SQLException
public void free()
free
in interface java.sql.Array
public java.lang.String toString()
toString
in class java.lang.Object