net.sourceforge.jtds.jdbc.cache

Class ProcedureCache.CacheEntry

Enclosing Class:
ProcedureCache

private static class ProcedureCache.CacheEntry
extends java.lang.Object

Encapsulates the cached Object and implements the linked list used to implement the LRU logic.

Field Summary

(package private) String
key
(package private) ProcedureCache.CacheEntry
next
(package private) ProcedureCache.CacheEntry
prior
(package private) ProcEntry
value

Constructor Summary

CacheEntry(String key, ProcEntry value)
Constructs a new cache entry encapsulating the supplied key and value.

Method Summary

(package private) void
link(ProcedureCache.CacheEntry ce)
Links this CacheEntry into the linked list after the node specified.
(package private) void
unlink()
Unlinks this CacheEntry from the linked list.

Field Details

key

(package private)  String key

ProcedureCache.CacheEntry next

prior

(package private)  ProcedureCache.CacheEntry prior

value

(package private)  ProcEntry value

Constructor Details

CacheEntry

(package private)  CacheEntry(String key,
                              ProcEntry value)
Constructs a new cache entry encapsulating the supplied key and value.
Parameters:
key - key used to identify the cache entry
value - object being cached

Method Details

link

(package private)  void link(ProcedureCache.CacheEntry ce)
Links this CacheEntry into the linked list after the node specified.
Parameters:
ce - node after which this entry will be linked

unlink

(package private)  void unlink()
Unlinks this CacheEntry from the linked list.

Generated on June 12 2008