|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This describes a reauest cache entry.
| Field Summary | |
static int |
CACHE_DIRTY
This entry is dirty |
static int |
CACHE_INVALID
This entry is no more valid and is not consistent with real data. |
static int |
CACHE_VALID
State this entry is valid |
static int |
NO_DEADLINE
This entry has no deadline |
| Method Summary | |
CacheEntry |
getNext()
Gets the value of next ResultCacheEntry in LRU. |
CacheEntry |
getPrev()
Gets the value of previous CacheEntry in LRU. |
SelectRequest |
getRequest()
Returns the SELECT request of this cache entry. |
ControllerResultSet |
getResult()
Returns the ControllerResultSet of the cached select request |
int |
getSizeOfResult()
Size of the result in bytes |
java.lang.String |
getState()
Get the state of this entry as a string |
java.lang.String |
getType()
Get the type of this entry as a string |
void |
invalidate()
Invalidates this cache entry (removes the ResultSet and turn
state to CACHE_INVALID). |
boolean |
isDirty()
Returns true if cache entry state is marked dirty (state is
CACHE_DIRTY). |
boolean |
isValid()
Return true if cache entry state is valid (state is
CACHE_VALID). |
void |
markDirty()
Marks this entry dirty (state becomes CACHE_DIRTY).
|
void |
setNext(CacheEntry next)
Sets the value of next CacheEntry in LRU. |
void |
setPrev(CacheEntry prev)
Sets the value of previous CacheEntry in LRU. |
void |
setResult(ControllerResultSet result)
Set a new ControllerResultSet of the cached select request
(cache update).
|
void |
setValid()
Marks this entry valid (state becomes CACHE_VALID). |
java.lang.String[] |
toStringTable()
Get data about this entry |
| Field Detail |
public static final int NO_DEADLINE
public static final int CACHE_VALID
public static final int CACHE_DIRTY
public static final int CACHE_INVALID
| Method Detail |
public java.lang.String getType()
public java.lang.String getState()
public boolean isValid()
true if cache entry state is valid (state is
CACHE_VALID).
boolean valuepublic boolean isDirty()
true if cache entry state is marked dirty (state is
CACHE_DIRTY).
boolean valuepublic SelectRequest getRequest()
SELECT request of this cache entry.
SelectRequest valuepublic ControllerResultSet getResult()
ControllerResultSet of the cached select request
ControllerResultSet valuepublic void setResult(ControllerResultSet result)
ControllerResultSet of the cached select request
(cache update).
The cache state is automatically set to valid (CACHE_VALID).
result - a ControllerResultSet valuepublic void invalidate()
ResultSet and turn
state to CACHE_INVALID).
public void markDirty()
CACHE_DIRTY).
The ResultSet if not affected by this method.
public void setValid()
CACHE_VALID).
public CacheEntry getNext()
ResultCacheEntry in LRU.
public void setNext(CacheEntry next)
CacheEntry in LRU.
next - value to assign to next.public CacheEntry getPrev()
CacheEntry in LRU.
public void setPrev(CacheEntry prev)
CacheEntry in LRU.
prev - value to assign to prev.public java.lang.String[] toStringTable()
public int getSizeOfResult()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||