| Modifier and Type | Class and Description |
|---|---|
static interface |
ArrayImpl.Factory
Factory that can create a ResultSet or Array based on a stream of values.
|
| Modifier and Type | Field and Description |
|---|---|
private AbstractCursor.ArrayAccessor |
accessor |
private List<Object> |
list |
| Constructor and Description |
|---|
ArrayImpl(List<Object> 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,
AbstractCursor.ArrayAccessor arrayAccessor)
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) |
(package private) Object |
getArrayData(Object o,
AbstractCursor.ArrayAccessor componentAccessor) |
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 AbstractCursor.ArrayAccessor accessor
public ArrayImpl(List<Object> 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, AbstractCursor.ArrayAccessor arrayAccessor) 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 nullSQLExceptionObject getArrayData(Object o, AbstractCursor.ArrayAccessor componentAccessor) throws SQLException
SQLExceptionpublic 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–2017 The Apache Software Foundation. All rights reserved.