public class MockArray<T>
extends java.lang.Object
implements java.sql.Array
Array.MockConnection| Constructor and Description |
|---|
MockArray(SQLDialect dialect,
T[] array,
java.lang.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,
java.util.Map<java.lang.String,java.lang.Class<?>> map) |
T[] |
getArray(java.util.Map<java.lang.String,java.lang.Class<?>> map) |
int |
getBaseType() |
java.lang.String |
getBaseTypeName() |
java.sql.ResultSet |
getResultSet() |
java.sql.ResultSet |
getResultSet(long index,
int count) |
java.sql.ResultSet |
getResultSet(long index,
int count,
java.util.Map<java.lang.String,java.lang.Class<?>> map) |
java.sql.ResultSet |
getResultSet(java.util.Map<java.lang.String,java.lang.Class<?>> map) |
public MockArray(SQLDialect dialect, T[] array, java.lang.Class<? extends T[]> type)
public java.lang.String getBaseTypeName()
getBaseTypeName in interface java.sql.Arraypublic int getBaseType()
getBaseType in interface java.sql.Arraypublic T[] getArray()
getArray in interface java.sql.Arraypublic T[] getArray(java.util.Map<java.lang.String,java.lang.Class<?>> map)
getArray in interface java.sql.Arraypublic T[] getArray(long index, int count) throws java.sql.SQLException
getArray in interface java.sql.Arrayjava.sql.SQLExceptionpublic T[] getArray(long index, int count, java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException
getArray in interface java.sql.Arrayjava.sql.SQLExceptionpublic java.sql.ResultSet getResultSet()
getResultSet in interface java.sql.Arraypublic java.sql.ResultSet getResultSet(java.util.Map<java.lang.String,java.lang.Class<?>> map)
getResultSet in interface java.sql.Arraypublic java.sql.ResultSet getResultSet(long index,
int count)
throws java.sql.SQLException
getResultSet in interface java.sql.Arrayjava.sql.SQLExceptionpublic java.sql.ResultSet getResultSet(long index,
int count,
java.util.Map<java.lang.String,java.lang.Class<?>> map)
throws java.sql.SQLException
getResultSet in interface java.sql.Arrayjava.sql.SQLExceptionpublic void free()
free in interface java.sql.ArrayCopyright © 2018. All Rights Reserved.