public class MockArray<T> extends Object implements Array
Array
.MockConnection
Constructor and Description |
---|
MockArray(SQLDialect dialect,
T[] array,
Class<? extends T[]> type) |
Modifier and Type | Method and Description |
---|---|
void |
free() |
T[] |
getArray() |
T[] |
getArray(long index,
int count) |
T[] |
getArray(long index,
int count,
Map<String,Class<?>> map) |
T[] |
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 MockArray(SQLDialect dialect, T[] array, Class<? extends T[]> type)
public String getBaseTypeName()
getBaseTypeName
in interface Array
public int getBaseType()
getBaseType
in interface Array
public T[] getArray(long index, int count) throws SQLException
getArray
in interface Array
SQLException
public T[] getArray(long index, int count, Map<String,Class<?>> map) throws SQLException
getArray
in interface Array
SQLException
public ResultSet getResultSet()
getResultSet
in interface Array
public ResultSet getResultSet(Map<String,Class<?>> map)
getResultSet
in interface Array
public ResultSet getResultSet(long index, int count) throws SQLException
getResultSet
in interface Array
SQLException
public ResultSet getResultSet(long index, int count, Map<String,Class<?>> map) throws SQLException
getResultSet
in interface Array
SQLException
Copyright © 2019. All rights reserved.