org.jpox.cache
Class CachedPC

java.lang.Object
  extended by org.jpox.cache.CachedPC

public class CachedPC
extends java.lang.Object

An object that is stored in the Level2 Cache. Comprises a persistable object, and its loaded fields array so we know which fields are loaded when we retrieve it from the cache.

Version:
$Revision: 1.4 $

Constructor Summary
CachedPC(java.lang.Object pc, boolean[] loadedFields, java.lang.Object vers)
          Constructor.
 
Method Summary
 boolean[] getLoadedFields()
          Accessor for the loaded fields of this object
 java.lang.Class getPCClass()
          Accessor for the class of the persistable object.
 java.lang.Object getPersistableObject()
          Accessor for the persistable object
 java.lang.Object getVersion()
          Version accessor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedPC

public CachedPC(java.lang.Object pc,
                boolean[] loadedFields,
                java.lang.Object vers)
Constructor.

Parameters:
pc - The persistable object
loadedFields - The loaded fields
vers - The version (optional)
Method Detail

getPersistableObject

public java.lang.Object getPersistableObject()
Accessor for the persistable object

Returns:
The PC object

getPCClass

public java.lang.Class getPCClass()
Accessor for the class of the persistable object.

Returns:
The class of the object

getVersion

public java.lang.Object getVersion()
Version accessor.

Returns:
Version of cached object

getLoadedFields

public boolean[] getLoadedFields()
Accessor for the loaded fields of this object

Returns:
The loaded fields


Copyright © -2008 . All Rights Reserved.