|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.services.database.DBCacher
This class is used to Cache the values of the database table in the memory. Caching can be enabled in DatabaseAdaptor service as follows. DatabaseAdaptor dbservice = new DatabaseAdaptor(); dbservice.setCaching(true);
| Constructor Summary | |
DBCacher()
The default constructor. |
|
DBCacher(int cachingTime,
int cacheNumber)
|
|
| Method Summary | |
void |
delete(java.lang.Object[] indexArray)
This method is called when any row is deleted. |
CompositeData |
getNextRow(java.lang.Object[] indexArray)
This would return the CompositeData corresponding to the next row in the table after sorting identified by the index array. |
CompositeData |
getRow(java.lang.Object[] indexArray)
This would return the CompositeData corresponding to the row specified by the index array in the table after sorting. |
void |
init(DatabaseHandler handler)
This method is called internally by the DatabaseAdaptor. |
(package private) void |
timerComplete()
This method will be called from the DBTimer class after the specified time has elapsed. |
void |
update(java.lang.Object[] indexArray)
This method is called to update the values in the memory. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public DBCacher()
public DBCacher(int cachingTime,
int cacheNumber)
| Method Detail |
public void init(DatabaseHandler handler)
The - DatabaseAdaptor reference.public CompositeData getNextRow(java.lang.Object[] indexArray)
public CompositeData getRow(java.lang.Object[] indexArray)
public void update(java.lang.Object[] indexArray)
The - index array corresponding to the SET or GET request.public void delete(java.lang.Object[] indexArray)
The - index array corresponding to the deleteRow request.void timerComplete()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||