org.objectweb.cjdbc.controller.cache.result.entries
Class ResultCacheEntryNoCache

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.cache.result.entries.AbstractResultCacheEntry
      extended byorg.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryNoCache

public class ResultCacheEntryNoCache
extends AbstractResultCacheEntry

A CacheEntry that simulates a NoCacheEntry.

Version:
1.0
Author:
Nicolas Modrzyk, Emmanuel Cecchet

Field Summary
(package private) static java.lang.String[] STRING_DATA
           
 
Fields inherited from class org.objectweb.cjdbc.controller.cache.result.entries.AbstractResultCacheEntry
CACHE_DIRTY, CACHE_INVALID, CACHE_VALID, NO_DEADLINE, request, result, state
 
Constructor Summary
ResultCacheEntryNoCache()
          Create a new No Caching Query Cache entry
 
Method Summary
 java.lang.String getType()
          Get the type of this entry as a string
 void invalidate()
          Invalidates this cache entry (removes the ResultSet and turn state to AbstractResultCacheEntry.CACHE_INVALID).
 java.lang.String[] toStringTable()
          Get data about this entry
 
Methods inherited from class org.objectweb.cjdbc.controller.cache.result.entries.AbstractResultCacheEntry
getNext, getPrev, getRequest, getResult, getSizeOfResult, getState, isDirty, isValid, markDirty, setNext, setPrev, setResult, setValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_DATA

static final java.lang.String[] STRING_DATA
Constructor Detail

ResultCacheEntryNoCache

public ResultCacheEntryNoCache()
Create a new No Caching Query Cache entry

Method Detail

invalidate

public void invalidate()
Description copied from class: AbstractResultCacheEntry
Invalidates this cache entry (removes the ResultSet and turn state to AbstractResultCacheEntry.CACHE_INVALID).

Specified by:
invalidate in class AbstractResultCacheEntry
See Also:
AbstractResultCacheEntry.invalidate()

getType

public java.lang.String getType()
Description copied from class: AbstractResultCacheEntry
Get the type of this entry as a string

Specified by:
getType in class AbstractResultCacheEntry
Returns:
NoCache or Eager or Relaxed
See Also:
AbstractResultCacheEntry.getType()

toStringTable

public java.lang.String[] toStringTable()
Description copied from class: AbstractResultCacheEntry
Get data about this entry

Specified by:
toStringTable in class AbstractResultCacheEntry
Returns:
an array [request,type,status(valid,notvalid,dirty),deadLine]
See Also:
AbstractResultCacheEntry.toStringTable()


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.