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.Array
public int getBaseType()
getBaseType
in interface java.sql.Array
public T[] getArray()
getArray
in interface java.sql.Array
public T[] getArray(java.util.Map<java.lang.String,java.lang.Class<?>> map)
getArray
in interface java.sql.Array
public T[] getArray(long index, int count) throws java.sql.SQLException
getArray
in interface java.sql.Array
java.sql.SQLException
public 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.Array
java.sql.SQLException
public java.sql.ResultSet getResultSet()
getResultSet
in interface java.sql.Array
public java.sql.ResultSet getResultSet(java.util.Map<java.lang.String,java.lang.Class<?>> map)
getResultSet
in interface java.sql.Array
public java.sql.ResultSet getResultSet(long index, int count) throws java.sql.SQLException
getResultSet
in interface java.sql.Array
java.sql.SQLException
public 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.Array
java.sql.SQLException
public void free()
free
in interface java.sql.Array
Copyright © 2014. All Rights Reserved.