Uses of Interface
javax.jdo.spi.PersistenceCapable
Packages that use PersistenceCapable
Package
Description
This package contains the interfaces and classes used by JDO implementations.
-
Uses of PersistenceCapable in javax.jdo.spi
Fields in javax.jdo.spi declared as PersistenceCapableModifier and TypeFieldDescription(package private) PersistenceCapable
JDOImplHelper.Meta.pc
This is an instance ofPersistenceCapable
, used at runtime to create new instances.Methods in javax.jdo.spi that return PersistenceCapableModifier and TypeMethodDescription(package private) PersistenceCapable
JDOImplHelper.Meta.getPC()
Get an instance of thePersistenceCapable
class.PersistenceCapable.jdoNewInstance
(StateManager sm) Return a new instance of this class, with the jdoStateManager set to the parameter, and jdoFlags set to LOAD_REQUIRED.PersistenceCapable.jdoNewInstance
(StateManager sm, Object oid) Return a new instance of this class, with the jdoStateManager set to the parameter, key fields initialized to the values in the oid, and jdoFlags set to LOAD_REQUIRED.JDOImplHelper.newInstance
(Class pcClass, StateManager sm) Create a new instance of the class and assign itsjdoStateManager
.JDOImplHelper.newInstance
(Class pcClass, StateManager sm, Object oid) Create a new instance of the class and assign itsjdoStateManager
and key values from the ObjectId.Methods in javax.jdo.spi with parameters of type PersistenceCapableModifier and TypeMethodDescriptionboolean
StateManager.getBooleanField
(PersistenceCapable pc, int field, boolean currentValue) Return the value for the field.byte
StateManager.getByteField
(PersistenceCapable pc, int field, byte currentValue) Return the value for the field.char
StateManager.getCharField
(PersistenceCapable pc, int field, char currentValue) Return the value for the field.double
StateManager.getDoubleField
(PersistenceCapable pc, int field, double currentValue) Return the value for the field.float
StateManager.getFloatField
(PersistenceCapable pc, int field, float currentValue) Return the value for the field.int
StateManager.getIntField
(PersistenceCapable pc, int field, int currentValue) Return the value for the field.long
StateManager.getLongField
(PersistenceCapable pc, int field, long currentValue) Return the value for the field.StateManager.getObjectField
(PersistenceCapable pc, int field, Object currentValue) Return the value for the field.StateManager.getObjectId
(PersistenceCapable pc) Return the object representing the JDO identity of the calling instance.StateManager.getPersistenceManager
(PersistenceCapable pc) Return thePersistenceManager
that owns this instance.short
StateManager.getShortField
(PersistenceCapable pc, int field, short currentValue) Return the value for the field.StateManager.getStringField
(PersistenceCapable pc, int field, String currentValue) Return the value for the field.StateManager.getTransactionalObjectId
(PersistenceCapable pc) Return the object representing the JDO identity of the calling instance.StateManager.getVersion
(PersistenceCapable pc) Return the object representing the version of the calling instance.boolean
StateManager.isDeleted
(PersistenceCapable pc) Tests whether this object has been deleted.boolean
StateManager.isDirty
(PersistenceCapable pc) Tests whether this object is dirty.boolean
StateManager.isLoaded
(PersistenceCapable pc, int field) Returntrue
if the field is cached in the calling instance.boolean
StateManager.isNew
(PersistenceCapable pc) Tests whether this object has been newly made persistent.boolean
StateManager.isPersistent
(PersistenceCapable pc) Tests whether this object is persistent.boolean
StateManager.isTransactional
(PersistenceCapable pc) Tests whether this object is transactional.void
StateManager.makeDirty
(PersistenceCapable pc, String fieldName) Mark the associatedPersistenceCapable
field dirty.void
StateManager.preSerialize
(PersistenceCapable pc) Guarantee that the serializable transactional and persistent fields are loaded into the instance.void
StateManager.providedBooleanField
(PersistenceCapable pc, int field, boolean currentValue) The value of the field requested to be provided to theStateManager
.void
StateManager.providedByteField
(PersistenceCapable pc, int field, byte currentValue) The value of the field requested to be provided to theStateManager
.void
StateManager.providedCharField
(PersistenceCapable pc, int field, char currentValue) The value of the field requested to be provided to theStateManager
.void
StateManager.providedDoubleField
(PersistenceCapable pc, int field, double currentValue) The value of the field requested to be provided to theStateManager
.void
StateManager.providedFloatField
(PersistenceCapable pc, int field, float currentValue) The value of the field requested to be provided to theStateManager
.void
StateManager.providedIntField
(PersistenceCapable pc, int field, int currentValue) The value of the field requested to be provided to theStateManager
.void
StateManager.providedLongField
(PersistenceCapable pc, int field, long currentValue) The value of the field requested to be provided to theStateManager
.void
StateManager.providedObjectField
(PersistenceCapable pc, int field, Object currentValue) The value of the field requested to be provided to theStateManager
.void
StateManager.providedShortField
(PersistenceCapable pc, int field, short currentValue) The value of the field requested to be provided to theStateManager
.void
StateManager.providedStringField
(PersistenceCapable pc, int field, String currentValue) The value of the field requested to be provided to theStateManager
.static void
JDOImplHelper.registerClass
(Class pcClass, String[] fieldNames, Class[] fieldTypes, byte[] fieldFlags, Class persistenceCapableSuperclass, PersistenceCapable pc) Register metadata by class.boolean
StateManager.replacingBooleanField
(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.byte
StateManager.replacingByteField
(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.char
StateManager.replacingCharField
(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.double
StateManager.replacingDoubleField
(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.byte
StateManager.replacingFlags
(PersistenceCapable pc) The owningStateManager
uses this method to supply the value of the flags to thePersistenceCapable
instance.float
StateManager.replacingFloatField
(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.int
StateManager.replacingIntField
(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.long
StateManager.replacingLongField
(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.StateManager.replacingObjectField
(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.short
StateManager.replacingShortField
(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.StateManager.replacingStateManager
(PersistenceCapable pc, StateManager sm) Replace the current value ofjdoStateManager
.StateManager.replacingStringField
(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.void
StateManager.setBooleanField
(PersistenceCapable pc, int field, boolean currentValue, boolean newValue) Mark the field as modified by the user.void
StateManager.setByteField
(PersistenceCapable pc, int field, byte currentValue, byte newValue) Mark the field as modified by the user.void
StateManager.setCharField
(PersistenceCapable pc, int field, char currentValue, char newValue) Mark the field as modified by the user.void
StateManager.setDoubleField
(PersistenceCapable pc, int field, double currentValue, double newValue) Mark the field as modified by the user.void
StateManager.setFloatField
(PersistenceCapable pc, int field, float currentValue, float newValue) Mark the field as modified by the user.void
StateManager.setIntField
(PersistenceCapable pc, int field, int currentValue, int newValue) Mark the field as modified by the user.void
StateManager.setLongField
(PersistenceCapable pc, int field, long currentValue, long newValue) Mark the field as modified by the user.void
StateManager.setObjectField
(PersistenceCapable pc, int field, Object currentValue, Object newValue) Mark the field as modified by the user.void
StateManager.setShortField
(PersistenceCapable pc, int field, short currentValue, short newValue) Mark the field as modified by the user.void
StateManager.setStringField
(PersistenceCapable pc, int field, String currentValue, String newValue) Mark the field as modified by the user.Constructors in javax.jdo.spi with parameters of type PersistenceCapableModifierConstructorDescription(package private)
Meta
(String[] fieldNames, Class[] fieldTypes, byte[] fieldFlags, Class persistenceCapableSuperclass, PersistenceCapable pc) Construct an instance ofMeta
.