| Modifier and Type | Class and Description |
|---|---|
static interface |
ArrayImpl.Factory
Factory that can create a result set based on a list of values.
|
| Constructor and Description |
|---|
ArrayImpl(List list,
ColumnMetaData.AvaticaType elementType,
ArrayImpl.Factory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
free() |
Object |
getArray() |
protected Object |
getArray(List list)
Converts a list into an array.
|
Object |
getArray(long index,
int count) |
Object |
getArray(long index,
int count,
Map<String,Class<?>> map) |
Object |
getArray(Map<String,Class<?>> map) |
int |
getBaseType() |
String |
getBaseTypeName() |
ResultSet |
getResultSet() |
ResultSet |
getResultSet(long index,
int count) |
ResultSet |
getResultSet(long index,
int count,
Map<String,Class<?>> map) |
ResultSet |
getResultSet(Map<String,Class<?>> map) |
public ArrayImpl(List list, ColumnMetaData.AvaticaType elementType, ArrayImpl.Factory factory)
public String getBaseTypeName() throws SQLException
getBaseTypeName in interface ArraySQLExceptionpublic int getBaseType()
throws SQLException
getBaseType in interface ArraySQLExceptionpublic Object getArray() throws SQLException
getArray in interface ArraySQLExceptionprotected Object getArray(List list) throws SQLException
If the elements of the list are primitives, converts to an array of
primitives (e.g. boolean[].
list - List of objectsClassCastException - if any element is not of the box typeNullPointerException - if any element is nullSQLExceptionpublic Object getArray(Map<String,Class<?>> map) throws SQLException
getArray in interface ArraySQLExceptionpublic Object getArray(long index, int count) throws SQLException
getArray in interface ArraySQLExceptionpublic Object getArray(long index, int count, Map<String,Class<?>> map) throws SQLException
getArray in interface ArraySQLExceptionpublic ResultSet getResultSet() throws SQLException
getResultSet in interface ArraySQLExceptionpublic ResultSet getResultSet(Map<String,Class<?>> map) throws SQLException
getResultSet in interface ArraySQLExceptionpublic ResultSet getResultSet(long index, int count) throws SQLException
getResultSet in interface ArraySQLExceptionpublic ResultSet getResultSet(long index, int count, Map<String,Class<?>> map) throws SQLException
getResultSet in interface ArraySQLExceptionpublic void free()
throws SQLException
free in interface ArraySQLExceptionCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.