|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.cjdbc.controller.cache.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 not invalidated on INSERT s. |
static int |
COLUMN_UNIQUE_DELETE
Column granularity with UNIQUE queries and UNIQUE_DELETE optimization. |
static int |
COLUMN_UNIQUE_INSERT_DB
Column granularity with UNIQUE queries and
INSERT_DB optimization: same as COLUMN_UNIQUE
except that queries are not invalidated on an INSERT , they
are just marked dirty. |
static int |
COLUMN_UNIQUE_INSERT_DB_UNIQUE_UPDATE
Column granularity with UNIQUE queries,
INSERT_DB and UNIQUE_UPDATE optimizations: same
as COLUMN_UNIQUE_INSERT_DB except that queries are not
invalidated on an UPDATE if the update statement affects a
UNIQUE row. |
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 |
NO_INVALIDATE
Cache without any invalidation: the cache is inconsistent and it should just be used to determine hit ratio upper bound. |
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 NO_INVALIDATE
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 not invalidated on INSERT
s.
public static final int COLUMN_UNIQUE_INSERT_DB
UNIQUE
queries and
INSERT_DB
optimization: same as COLUMN_UNIQUE
except that queries are not invalidated on an INSERT
, they
are just marked dirty. When a dirty entry is found, the
INSERT_DB
is used to determine if the result is still valid
or not.
public static final int COLUMN_UNIQUE_INSERT_DB_UNIQUE_UPDATE
UNIQUE
queries,
INSERT_DB
and UNIQUE_UPDATE
optimizations: same
as COLUMN_UNIQUE_INSERT_DB
except that queries are not
invalidated on an UPDATE
if the update statement affects a
UNIQUE
row. In this case, affected cache entries are just
marked dirty. When a dirty entry is found, the UPDATE_DB
is
used to determine if the result is still valid or not.
public static final int COLUMN_UNIQUE_DELETE
Here, in case of a DELETE request:
COLUMN_UNIQUE
except that a DELETE only invalidates
queries that result in the same single row as the DELETE.
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 |