public class ArrayFactoryImpl extends Object implements ArrayImpl.Factory
ArrayImpl.Factory.| Constructor and Description |
|---|
ArrayFactoryImpl(TimeZone timeZone) |
| Modifier and Type | Method and Description |
|---|---|
ResultSet |
create(ColumnMetaData.AvaticaType elementType,
Iterable<Object> elements)
Creates a
ResultSet from the given list of values per Array.getResultSet(). |
Array |
createArray(ColumnMetaData.AvaticaType elementType,
Iterable<Object> elements)
Creates an
Array from the given list of values, converting any primitive values
into the corresponding objects. |
private List<List<Object>> |
createResultSetRowsForArrayData(Iterable<Object> elements)
Creates the row-level view over the values that will make up an Array.
|
private Iterator<List<Object>> |
createRowForArrayData(List<Object> elements)
Creates an row-level view over the values that will make up an Array.
|
private TimeZone timeZone
public ArrayFactoryImpl(TimeZone timeZone)
public ResultSet create(ColumnMetaData.AvaticaType elementType, Iterable<Object> elements)
ArrayImpl.FactoryResultSet from the given list of values per Array.getResultSet().create in interface ArrayImpl.FactoryelementType - The type of the elementselements - The elementspublic Array createArray(ColumnMetaData.AvaticaType elementType, Iterable<Object> elements)
ArrayImpl.FactoryArray from the given list of values, converting any primitive values
into the corresponding objects.createArray in interface ArrayImpl.FactoryelementType - The type of the elementselements - The elementsprivate List<List<Object>> createResultSetRowsForArrayData(Iterable<Object> elements)
The ordering of the rows is not guaranteed to be in the same order as the array elements.
A list of elements:
[1, 2, 3]
might be converted into
Iterator{ [1, 1], [2, 2], [3, 3] }elements - The elements of an array.private Iterator<List<Object>> createRowForArrayData(List<Object> elements)
A provided list of elements
[1, 2, 3]
would be converted into
Iterator{ [ [1,2,3] ] }elements - The elements of an arrayCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.