Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdbf.engine.caching
Class CachedObject  view CachedObject download CachedObject.java

java.lang.Object
  extended byorg.jdbf.engine.caching.CachedObject
All Implemented Interfaces:
Cacheable

public class CachedObject
extends java.lang.Object
implements Cacheable


Field Summary
protected  int frequency
          This variable will be used to determine if the object is expired.
protected  java.lang.Object identifier
          Identifier of object in cache
 
Constructor Summary
CachedObject()
           
CachedObject(java.lang.Object identifier)
           
 
Method Summary
 int getFrequency()
          Return the number of uses
 java.lang.Object getIdentifier()
          Return identifier of object in the cache
 void setFrequency(int frequency)
          Set the specific frequency specified in frequency
 void setIdentifier(java.lang.Object id)
          Set the identifier specified in id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frequency

protected int frequency
This variable will be used to determine if the object is expired.


identifier

protected java.lang.Object identifier
Identifier of object in cache

Constructor Detail

CachedObject

public CachedObject()

CachedObject

public CachedObject(java.lang.Object identifier)
Method Detail

getFrequency

public int getFrequency()
Return the number of uses

Specified by:
getFrequency in interface Cacheable

getIdentifier

public java.lang.Object getIdentifier()
Return identifier of object in the cache

Specified by:
getIdentifier in interface Cacheable

setFrequency

public void setFrequency(int frequency)
Set the specific frequency specified in frequency

Specified by:
setFrequency in interface Cacheable

setIdentifier

public void setIdentifier(java.lang.Object id)
Set the identifier specified in id