- java.lang.Object
-
- org.jooq.tools.jdbc.MockArray<T>
-
- All Implemented Interfaces:
Array
public class MockArray<T> extends Object implements Array
A mockArray
.- Author:
- Lukas Eder
- See Also:
MockConnection
-
-
Constructor Summary
Constructors Constructor Description MockArray(SQLDialect dialect, T[] array, Class<? extends T[]> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
MockArray
public MockArray(SQLDialect dialect, T[] array, Class<? extends T[]> type)
-
-
Method Detail
-
getBaseTypeName
public String getBaseTypeName()
- Specified by:
getBaseTypeName
in interfaceArray
-
getBaseType
public int getBaseType()
- Specified by:
getBaseType
in interfaceArray
-
getArray
public T[] getArray(long index, int count) throws SQLException
- Specified by:
getArray
in interfaceArray
- Throws:
SQLException
-
getArray
public T[] getArray(long index, int count, Map<String,Class<?>> map) throws SQLException
- Specified by:
getArray
in interfaceArray
- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet()
- Specified by:
getResultSet
in interfaceArray
-
getResultSet
public ResultSet getResultSet(Map<String,Class<?>> map)
- Specified by:
getResultSet
in interfaceArray
-
getResultSet
public ResultSet getResultSet(long index, int count) throws SQLException
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(long index, int count, Map<String,Class<?>> map) throws SQLException
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
-