|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.controller.cache.result.CachingGranularities
This class defines request cache granularities.
Field Summary | |
static int |
COLUMN
Column granularity: entries in the cache are invalidated based on column dependencies. |
static int |
COLUMN_UNIQUE
Column granularity with UNIQUE queries: same as COLUMN
except that UNIQUE queries that selects a single row based
on a key are invalidated only when needed. |
static int |
DATABASE
Database granularity: entries in the cache are invalidated every time a write (INSERT/UPDATE/DELETE/DROP/...) is sent to the database. |
static int |
TABLE
Table granularity: entries in the cache are invalidated based on table dependencies. |
Constructor Summary | |
CachingGranularities()
|
Method Summary | |
static java.lang.String |
getGranularityName(int cacheGrain)
Gets the name corresponding to a cache granularity level. |
static java.lang.String |
getGranularityXml(int cacheGrain)
This method is needed to convert the value into the corresponding xml attribute value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DATABASE
public static final int TABLE
public static final int COLUMN
public static final int COLUMN_UNIQUE
UNIQUE
queries: same as COLUMN
except that UNIQUE
queries that selects a single row based
on a key are invalidated only when needed.
Constructor Detail |
public CachingGranularities()
Method Detail |
public static final java.lang.String getGranularityName(int cacheGrain)
cacheGrain
- cache granularity level
public static final java.lang.String getGranularityXml(int cacheGrain)
cacheGrain
- cache granularity level
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |