java.lang.AutoCloseable
public interface CacheReader
extends java.lang.AutoCloseable
Modifier and Type | Method | Description |
---|---|---|
java.math.BigDecimal |
getBigDecimal(int index) |
Gets value of specified index as decimal.
|
boolean |
getBoolean(int index) |
Gets value of specified index as bool.
|
java.util.Date |
getDate(int index) |
Returns Date at specified column index
|
double |
getDouble(int index) |
Gets value of specified index as double.
|
int |
getFieldCount() |
Gets number of columns.
|
int |
getInt(int index) |
Gets value of specified index as integer.
|
boolean |
getIsClosed() |
True, if reader is closed else false.
|
long |
getLong(int index) |
Gets value of specified index as long.
|
java.lang.String |
getName(int index) |
Returns name of specified column index.
|
int |
getOrdinal(java.lang.String columnName) |
Returns index of specified column name.
|
short |
getShort(int index) |
Gets value of specified index as short.
|
java.lang.String |
getString(int index) |
Gets value of specified index as string.
|
<T> T |
getValue(int index,
java.lang.Class<?> cls) |
Gets value at specified column index.
|
<T> T |
getValue(java.lang.String columnName,
java.lang.Class<?> cls) |
Gets value of specified column name.
|
int |
getValues(java.lang.Object[] objects,
java.lang.Class<?> cls) |
Populates array of objects with values in current row.
|
boolean |
read() |
Advances ICacheReader to next record.
|
int getFieldCount()
boolean getIsClosed()
boolean read() throws CacheException
CacheException
boolean getBoolean(int index) throws OperationFailedException
index
- Index of column.OperationFailedException
java.lang.String getString(int index) throws OperationFailedException
index
- Index of column.OperationFailedException
java.math.BigDecimal getBigDecimal(int index) throws OperationFailedException
index
- Index of column.OperationFailedException
double getDouble(int index) throws OperationFailedException
index
- Index of column.OperationFailedException
short getShort(int index) throws OperationFailedException
index
- Index of column.OperationFailedException
int getInt(int index) throws OperationFailedException
index
- Index of column.OperationFailedException
long getLong(int index) throws OperationFailedException
index
- Index of column.OperationFailedException
<T> T getValue(int index, java.lang.Class<?> cls) throws java.io.IOException, java.lang.ClassNotFoundException, OperationFailedException
T
- get generic type value at specified column index.index
- Index of column.cls
- Specifies the class of value obtained from the cache.java.io.IOException
java.lang.ClassNotFoundException
OperationFailedException
<T> T getValue(java.lang.String columnName, java.lang.Class<?> cls) throws java.io.IOException, java.lang.ClassNotFoundException, OperationFailedException
columnName
- Name of column.cls
- Specifies the class of value obtained from the cache.java.io.IOException
java.lang.ClassNotFoundException
OperationFailedException
int getValues(java.lang.Object[] objects, java.lang.Class<?> cls) throws java.io.IOException, java.lang.ClassNotFoundException, OperationFailedException
objects
- array of objects to be populated.cls
- Specifies the class of values obtained from the array.java.io.IOException
java.lang.ClassNotFoundException
OperationFailedException
java.lang.String getName(int index)
index
- Index of column.int getOrdinal(java.lang.String columnName)
columnName
- Name of column.java.util.Date getDate(int index) throws OperationFailedException
index
- Index of Column.OperationFailedException