- 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 voidfree()T[]getArray()T[]getArray(long index, int count)T[]getArray(long index, int count, Map<String,Class<?>> map)T[]getArray(Map<String,Class<?>> map)intgetBaseType()StringgetBaseTypeName()ResultSetgetResultSet()ResultSetgetResultSet(long index, int count)ResultSetgetResultSet(long index, int count, Map<String,Class<?>> map)ResultSetgetResultSet(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:
getBaseTypeNamein interfaceArray
-
getBaseType
public int getBaseType()
- Specified by:
getBaseTypein interfaceArray
-
getArray
public T[] getArray(long index, int count) throws SQLException
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getArray
public T[] getArray(long index, int count, Map<String,Class<?>> map) throws SQLException
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet()
- Specified by:
getResultSetin interfaceArray
-
getResultSet
public ResultSet getResultSet(Map<String,Class<?>> map)
- Specified by:
getResultSetin interfaceArray
-
getResultSet
public ResultSet getResultSet(long index, int count) throws SQLException
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(long index, int count, Map<String,Class<?>> map) throws SQLException
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
-