Class JdbcArray
java.lang.Object
org.h2.message.TraceObject
org.h2.jdbc.JdbcArray
- All Implemented Interfaces:
Array
Represents an ARRAY value.
-
Field Summary
FieldsFields inherited from class TraceObject
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, SQLXML, STATEMENT, trace, XA_DATA_SOURCE, XID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate static intcheckRange(long index, int count, int len) voidfree()Release all resources of this object.private Objectget()private Objectget(long index, int count) getArray()Returns the value as a Java array.getArray(long index, int count) Returns the value as a Java array.Returns the value as a Java array.Returns the value as a Java array.intReturns the base type of the array.Returns the base type name of the array.Returns the value as a result set.getResultSet(long index, int count) Returns the value as a result set.getResultSet(long index, int count, Map<String, Class<?>> map) Returns the value as a result set.getResultSet(Map<String, Class<?>> map) Returns the value as a result set.private ResultSetgetResultSetImpl(long index, int count) toString()INTERNALMethods inherited from class TraceObject
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupported
-
Field Details
-
value
-
conn
-
-
Constructor Details
-
JdbcArray
INTERNAL- Parameters:
conn- it belongs tovalue- ofid- of the trace object
-
-
Method Details
-
getArray
Returns the value as a Java array. This method always returns an Object[].- Specified by:
getArrayin interfaceArray- Returns:
- the Object array
- Throws:
SQLException
-
getArray
Returns the value as a Java array. This method always returns an Object[].- Specified by:
getArrayin interfaceArray- Parameters:
map- is ignored. Only empty or null maps are supported- Returns:
- the Object array
- Throws:
SQLException
-
getArray
Returns the value as a Java array. A subset of the array is returned, starting from the index (1 meaning the first element) and up to the given object count. This method always returns an Object[].- Specified by:
getArrayin interfaceArray- Parameters:
index- the start index of the subset (starting with 1)count- the maximum number of values- Returns:
- the Object array
- Throws:
SQLException
-
getArray
Returns the value as a Java array. A subset of the array is returned, starting from the index (1 meaning the first element) and up to the given object count. This method always returns an Object[].- Specified by:
getArrayin interfaceArray- Parameters:
index- the start index of the subset (starting with 1)count- the maximum number of valuesmap- is ignored. Only empty or null maps are supported- Returns:
- the Object array
- Throws:
SQLException
-
getBaseType
Returns the base type of the array.- Specified by:
getBaseTypein interfaceArray- Returns:
- the base type or Types.NULL
- Throws:
SQLException
-
getBaseTypeName
Returns the base type name of the array. This database does support mixed type arrays and therefore there is no base type.- Specified by:
getBaseTypeNamein interfaceArray- Returns:
- the base type name or "NULL"
- Throws:
SQLException
-
getResultSet
Returns the value as a result set. The first column contains the index (starting with 1) and the second column the value.- Specified by:
getResultSetin interfaceArray- Returns:
- the result set
- Throws:
SQLException
-
getResultSet
Returns the value as a result set. The first column contains the index (starting with 1) and the second column the value.- Specified by:
getResultSetin interfaceArray- Parameters:
map- is ignored. Only empty or null maps are supported- Returns:
- the result set
- Throws:
SQLException
-
getResultSet
Returns the value as a result set. The first column contains the index (starting with 1) and the second column the value. A subset of the array is returned, starting from the index (1 meaning the first element) and up to the given object count.- Specified by:
getResultSetin interfaceArray- Parameters:
index- the start index of the subset (starting with 1)count- the maximum number of values- Returns:
- the result set
- Throws:
SQLException
-
getResultSet
Returns the value as a result set. The first column contains the index (starting with 1) and the second column the value. A subset of the array is returned, starting from the index (1 meaning the first element) and up to the given object count.- Specified by:
getResultSetin interfaceArray- Parameters:
index- the start index of the subset (starting with 1)count- the maximum number of valuesmap- is ignored. Only empty or null maps are supported- Returns:
- the result set
- Throws:
SQLException
-
free
-
getResultSetImpl
-
checkClosed
private void checkClosed() -
get
-
get
-
checkRange
private static int checkRange(long index, int count, int len) -
toString
-