|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.services.database.DBCacher
class 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. |
javax.jmx.openmbean.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. |
javax.jmx.openmbean.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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DBCacher()
public DBCacher(int cachingTime,
int cacheNumber)
| Method Detail |
|---|
public void init(DatabaseHandler handler)
The - DatabaseAdaptor reference.public javax.jmx.openmbean.CompositeData getNextRow(java.lang.Object[] indexArray)
public javax.jmx.openmbean.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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||