org.jboss.jca.adapters.jdbc.util
Class LRUCachePolicy.LRUCacheEntry

java.lang.Object
  extended by org.jboss.jca.adapters.jdbc.util.LRUCachePolicy.LRUCacheEntry
Enclosing class:
LRUCachePolicy

public class LRUCachePolicy.LRUCacheEntry
extends Object

Double linked cell used as entry in the cache list.


Constructor Summary
protected LRUCachePolicy.LRUCacheEntry(Object key, Object object)
          Creates a new double linked cell, storing the object we want to cache and the key that is used to retrieve it.
 
Method Summary
 Object getKey()
          Get the key.
 LRUCachePolicy.LRUCacheEntry getNext()
          Get the next.
 Object getObject()
          Get the object.
 LRUCachePolicy.LRUCacheEntry getPrev()
          Get the prev.
 long getTime()
          Get the time.
 void setKey(Object key)
          Set the key.
 void setNext(LRUCachePolicy.LRUCacheEntry next)
          Set the next.
 void setObject(Object object)
          Set the object.
 void setPrev(LRUCachePolicy.LRUCacheEntry prev)
          Set the prev.
 void setTime(long time)
          Set the time.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LRUCachePolicy.LRUCacheEntry

protected LRUCachePolicy.LRUCacheEntry(Object key,
                                       Object object)
Creates a new double linked cell, storing the object we want to cache and the key that is used to retrieve it.

Parameters:
key - key
object - object
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getNext

public final LRUCachePolicy.LRUCacheEntry getNext()
Get the next.

Returns:
the next.

setNext

public final void setNext(LRUCachePolicy.LRUCacheEntry next)
Set the next.

Parameters:
next - The next to set.

getPrev

public final LRUCachePolicy.LRUCacheEntry getPrev()
Get the prev.

Returns:
the prev.

setPrev

public final void setPrev(LRUCachePolicy.LRUCacheEntry prev)
Set the prev.

Parameters:
prev - The prev to set.

getKey

public final Object getKey()
Get the key.

Returns:
the key.

setKey

public final void setKey(Object key)
Set the key.

Parameters:
key - The key to set.

getObject

public final Object getObject()
Get the object.

Returns:
the object.

setObject

public final void setObject(Object object)
Set the object.

Parameters:
object - The object to set.

getTime

public final long getTime()
Get the time.

Returns:
the time.

setTime

public final void setTime(long time)
Set the time.

Parameters:
time - The time to set.


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)