Array.
MockConnection
| Modifier and Type | Field and Description |
|---|---|
| private final T[] | |
| private final SQLDialect | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | free()
Implements java. Array object and releases the resources that
it holds.
|
| public T[] | getArray()
Implements java. ARRAY value designated
by this
Array object in the form of an array in the Java
programming language.
|
| public T[] | getArray(Map<String, Class<?>>
a map)java.util.Map object that contains mappings
of SQL type names to classes in the Java programming languageImplements java. ARRAY value designated by this
Array object.
|
| public T[] | getArray(long
the array index of the first element to retrieve;
the first element is at index 1 index, int the number of successive SQL array elements to retrieve count)Implements java. ARRAY
value designated by this Array object, beginning with the
specified index and containing up to count
successive elements of the SQL array.
|
| public T[] | getArray(long
the array index of the first element to retrieve;
the first element is at index 1 index, int the number of successive SQL array elements to
retrieve count, Map<String, Class<?>> a map)java.util.Map object
that contains SQL type names and the classes in
the Java programming language to which they are mappedImplements java. ARRAY value
designated by this Array object, beginning with the specified
index and containing up to count
successive elements of the SQL array.
|
| public int | getBaseType()
Implements java. Array object.
|
| public String | getBaseTypeName()
Implements java. Array object.
|
| public ResultSet | getResultSet()
Implements java. ARRAY value
designated by this Array object.
|
| public ResultSet | getResultSet(Map<String, Class<?>>
contains the mapping of SQL user-defined types to
classes in the Java programming language map)Implements java. ARRAY value designated by this Array object.
|
| public ResultSet | getResultSet(long
the array index of the first element to retrieve;
the first element is at index 1 index, int the number of successive SQL array elements to retrieve count)Implements java. index and contains up to
count successive elements.
|
| public ResultSet | getResultSet(long
the array index of the first element to retrieve;
the first element is at index 1 index, int the number of successive SQL array elements to retrieve count, Map<String, Class<?>> the map)Map object that contains the mapping
of SQL type names to classes in the Java(tm) programming languageImplements java. index and contains up to
count successive elements.
|
| private ResultSet |
| array | back to summary |
|---|---|
| private final T[] array | |
| dialect | back to summary |
|---|---|
| private final SQLDialect dialect | |
| type | back to summary |
|---|---|
| private final Class<? extends T[]> type | |
| MockArray | back to summary |
|---|---|
| public MockArray(SQLDialect dialect, T[] array, Class<? extends T[]> type) | |
| free | back to summary |
|---|---|
| public void free() Implements java. Doc from java. This method frees the
After
| |
| getArray | back to summary |
|---|---|
| public T[] getArray() Implements java. Doc from java. Retrieves the contents of the SQL Note When
| |
| getArray | back to summary |
|---|---|
| public T[] getArray(Map<String, Class<?>> map) Implements java. Doc from java. Retrieves the contents of the SQL Note When | |
| getArray | back to summary |
|---|---|
| public T[] getArray(long index, int count) throws SQLException Implements java. Doc from java. Retrieves a slice of the SQL Note When
| |
| getArray | back to summary |
|---|---|
| public T[] getArray(long index, int count, Map<String, Class<?>> map) throws SQLException Implements java. Doc from java. Retrieves a slice of the SQL
This method uses
the specified Note When
| |
| getBaseType | back to summary |
|---|---|
| public int getBaseType() Implements java. Doc from java. Retrieves the JDBC type of the elements in the array designated
by this
| |
| getBaseTypeName | back to summary |
|---|---|
| public String getBaseTypeName() Implements java. Doc from java. Retrieves the SQL type name of the elements in
the array designated by this | |
| getResultSet | back to summary |
|---|---|
| public ResultSet getResultSet() Implements java. Doc from java. Retrieves a result set that contains the elements of the SQL
The result set contains one row for each array element, with two columns in each row. The second column stores the element value; the first column stores the index into the array for that element (with the first array element being at index 1). The rows are in ascending order corresponding to the order of the indices. | |
| getResultSet | back to summary |
|---|---|
| public ResultSet getResultSet(Map<String, Class<?>> map) Implements java. Doc from java. Retrieves a result set that contains the elements of the SQL
The result set contains one row for each array element, with two columns in each row. The second column stores the element value; the first column stores the index into the array for that element (with the first array element being at index 1). The rows are in ascending order corresponding to the order of the indices.
| |
| getResultSet | back to summary |
|---|---|
| public ResultSet getResultSet(long index, int count) throws SQLException Implements java. Doc from java. Retrieves a result set holding the elements of the subarray that
starts at index
The result set has one row for each element of the SQL array
designated by this object, with the first row containing the
element at index
| |
| getResultSet | back to summary |
|---|---|
| public ResultSet getResultSet(long index, int count, Map<String, Class<?>> map) throws SQLException Implements java. Doc from java. Retrieves a result set holding the elements of the subarray that
starts at index
The result set has one row for each element of the SQL array
designated by this object, with the first row containing the
element at index
| |
| getResultSet0 | back to summary |
|---|---|
private ResultSet getResultSet0(T[] a)
| |