public class ResultSetCacheChunk
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CACHE_CHUNK_SIZE |
Constructor and Description |
---|
ResultSetCacheChunk() |
ResultSetCacheChunk(ResultSetCacheChunk prev) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(int row,
int column)
Returns the boolean value for the column.
|
byte |
getByte(int row,
int column)
Returns the byte value for the column.
|
double |
getDouble(int row,
int column)
Returns the double value for the column.
|
long |
getExpireTime()
Returns the expire time.
|
float |
getFloat(int row,
int column)
Returns the float value for the column.
|
int |
getInt(int row,
int column)
Returns the int value for the column.
|
long |
getLong(int row,
int column)
Returns the long value for the column.
|
ResultSetCacheChunk |
getNext()
Gets the next chunk
|
java.lang.Object |
getObject(int row,
int column)
Returns the value.
|
AmberSelectQuery |
getQuery()
Gets the query.
|
int |
getRowCount()
Returns the number of rows.
|
short |
getShort(int row,
int column)
Returns the short value for the column.
|
java.lang.String |
getString(int row,
int column)
Returns the string value for the column.
|
void |
invalidate()
Invalidates the chunk.
|
boolean |
invalidate(java.lang.String table,
java.lang.Object key)
Invalidates the chunk based on a table and key.
|
boolean |
isLast()
True for the last.
|
boolean |
isNull(int row,
int column)
Returns true if the last column read was null.
|
boolean |
isValid()
Return true if the chunk is still valid.
|
void |
newRow()
Adds a new row.
|
void |
setLast(boolean isLast)
Sets true for the last.
|
void |
setNext(ResultSetCacheChunk next)
Gets the next chunk
|
void |
setQuery(AmberSelectQuery query)
Sets the query.
|
void |
setValue(int row,
int column,
java.lang.Object value)
Sets a row value.
|
public static final int CACHE_CHUNK_SIZE
public ResultSetCacheChunk()
public ResultSetCacheChunk(ResultSetCacheChunk prev)
public void setQuery(AmberSelectQuery query)
public AmberSelectQuery getQuery()
public long getExpireTime()
public boolean isValid()
public void invalidate()
public boolean invalidate(java.lang.String table, java.lang.Object key)
public int getRowCount()
public void newRow()
public void setValue(int row, int column, java.lang.Object value)
public ResultSetCacheChunk getNext()
public void setNext(ResultSetCacheChunk next)
public void setLast(boolean isLast)
public boolean isLast()
public boolean isNull(int row, int column)
public boolean getBoolean(int row, int column) throws java.sql.SQLException
java.sql.SQLException
public byte getByte(int row, int column) throws java.sql.SQLException
java.sql.SQLException
public int getInt(int row, int column) throws java.sql.SQLException
java.sql.SQLException
public short getShort(int row, int column) throws java.sql.SQLException
java.sql.SQLException
public long getLong(int row, int column) throws java.sql.SQLException
java.sql.SQLException
public double getDouble(int row, int column) throws java.sql.SQLException
java.sql.SQLException
public float getFloat(int row, int column) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getString(int row, int column) throws java.sql.SQLException
java.sql.SQLException
public final java.lang.Object getObject(int row, int column)