org.jpox.cache
Class CachedPC

java.lang.Object
  extended byorg.jpox.cache.CachedPC

public class CachedPC
extends java.lang.Object

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

Version:
$Revision: 1.3 $

Constructor Summary
CachedPC(javax.jdo.spi.PersistenceCapable pc, boolean[] loadedFields)
          Constructor.
 
Method Summary
 boolean[] getLoadedFields()
          Accessor for the loaded fields of this object
 java.lang.Class getPCClass()
          Accessor for the class of the PC object.
 javax.jdo.spi.PersistenceCapable getPersistenceCapable()
          Accessor for the PersistenceCapable object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedPC

public CachedPC(javax.jdo.spi.PersistenceCapable pc,
                boolean[] loadedFields)
Constructor.

Parameters:
pc - The PersistenceCapable object
loadedFields - The loaded fields
Method Detail

getPersistenceCapable

public javax.jdo.spi.PersistenceCapable getPersistenceCapable()
Accessor for the PersistenceCapable object

Returns:
The PC object

getPCClass

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

Returns:
The class of the object

getLoadedFields

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

Returns:
The loaded fields


Copyright © -2007 . All Rights Reserved.