| Modifier and Type | Class and Description |
|---|---|
static interface |
ArrayImpl.Factory
Factory that can create a result set based on a list of values.
|
| Modifier and Type | Field and Description |
|---|---|
private AbstractCursor.ArrayAccessor |
accessor |
private List |
list |
| Constructor and Description |
|---|
ArrayImpl(List list,
AbstractCursor.ArrayAccessor accessor) |
| Modifier and Type | Method and Description |
|---|---|
private void |
append(StringBuilder buf,
Object o) |
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) |
String |
toString() |
private final List list
private final AbstractCursor.ArrayAccessor accessor
public ArrayImpl(List list, AbstractCursor.ArrayAccessor accessor)
public String getBaseTypeName() throws SQLException
getBaseTypeName in interface ArraySQLExceptionpublic int getBaseType()
throws SQLException
getBaseType in interface ArraySQLExceptionpublic Object getArray() throws SQLException
getArray in interface ArraySQLExceptionprivate void append(StringBuilder buf, Object o)
protected 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–2016 The Apache Software Foundation. All rights reserved.