|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.cjdbc.controller.cache.result.schema.CacheDatabaseColumn
A CacheDatabaseColumn represents a column of a database
table. It is composed of a DatabaseColumn object and an
ArrayList of cache entries.
| Field Summary | |
private java.util.ArrayList |
cacheEntries
|
private java.lang.String |
name
|
| Constructor Summary | |
CacheDatabaseColumn(java.lang.String name)
Creates a new CacheDatabaseColumn instance. |
|
| Method Summary | |
void |
addCacheEntry(CacheEntry ce)
Adds a CacheEntry object whose consistency depends on this
column. |
boolean |
equals(java.lang.Object other)
Two CacheDatabaseColumn are equals if they have the same
DatabaseColumn. |
java.lang.String |
getInformation()
Returns the column name. |
java.lang.String |
getName()
Gets the column name. |
void |
invalidateAll()
Invalidates all cache entries depending on this column. |
void |
invalidateAllNonUnique()
Invalidates all cache entries depending on this column that are non UNIQUE. |
void |
invalidateAllNonUniqueAndMarkDirtyUnique()
Invalidates all cache entries depending on this column that are non UNIQUE
and mark dirty UNIQUE queries. |
void |
invalidateAllUniqueWithValuesAndAllNonUnique(java.lang.String val,
java.util.ArrayList columns,
java.util.ArrayList values)
Invalidates all cache entries depending on this column that are either non- unique or unique and associated with given values. |
void |
markDirtyAllNonUnique()
Marks dirty all valid cache entries depending on this colum that are non unique. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String name
private java.util.ArrayList cacheEntries
| Constructor Detail |
public CacheDatabaseColumn(java.lang.String name)
CacheDatabaseColumn instance.
name - name of the column| Method Detail |
public java.lang.String getName()
public boolean equals(java.lang.Object other)
CacheDatabaseColumn are equals if they have the same
DatabaseColumn.
other - the object to compare with
true if the objects are the samepublic void addCacheEntry(CacheEntry ce)
CacheEntry object whose consistency depends on this
column.
ce - a ResultCacheEntry valuepublic void markDirtyAllNonUnique()
public void invalidateAll()
public void invalidateAllNonUnique()
UNIQUE.
public void invalidateAllUniqueWithValuesAndAllNonUnique(java.lang.String val,
java.util.ArrayList columns,
java.util.ArrayList values)
val - a String representing the value of the current
column.columns - an ArrayList of CacheDatabaseColumn objectsvalues - an ArrayList of String objects representing
values.public void invalidateAllNonUniqueAndMarkDirtyUnique()
UNIQUE
and mark dirty UNIQUE queries.
public java.lang.String getInformation()
String value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||