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
Methods in javax.jdo.spi that return PersistenceCapableModifier and TypeMethodDescriptionPersistenceCapable.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 itsjdoStateManagerand key values from the ObjectId.Methods in javax.jdo.spi with parameters of type PersistenceCapableModifier and TypeMethodDescriptionbooleanStateManager.getBooleanField(PersistenceCapable pc, int field, boolean currentValue) Return the value for the field.byteStateManager.getByteField(PersistenceCapable pc, int field, byte currentValue) Return the value for the field.charStateManager.getCharField(PersistenceCapable pc, int field, char currentValue) Return the value for the field.doubleStateManager.getDoubleField(PersistenceCapable pc, int field, double currentValue) Return the value for the field.floatStateManager.getFloatField(PersistenceCapable pc, int field, float currentValue) Return the value for the field.intStateManager.getIntField(PersistenceCapable pc, int field, int currentValue) Return the value for the field.longStateManager.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 thePersistenceManagerthat owns this instance.shortStateManager.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.booleanStateManager.isDeleted(PersistenceCapable pc) Tests whether this object has been deleted.booleanStateManager.isDirty(PersistenceCapable pc) Tests whether this object is dirty.booleanStateManager.isLoaded(PersistenceCapable pc, int field) Returntrueif the field is cached in the calling instance.booleanStateManager.isNew(PersistenceCapable pc) Tests whether this object has been newly made persistent.booleanStateManager.isPersistent(PersistenceCapable pc) Tests whether this object is persistent.booleanStateManager.isTransactional(PersistenceCapable pc) Tests whether this object is transactional.voidStateManager.makeDirty(PersistenceCapable pc, String fieldName) Mark the associatedPersistenceCapablefield dirty.voidStateManager.preSerialize(PersistenceCapable pc) Guarantee that the serializable transactional and persistent fields are loaded into the instance.voidStateManager.providedBooleanField(PersistenceCapable pc, int field, boolean currentValue) The value of the field requested to be provided to theStateManager.voidStateManager.providedByteField(PersistenceCapable pc, int field, byte currentValue) The value of the field requested to be provided to theStateManager.voidStateManager.providedCharField(PersistenceCapable pc, int field, char currentValue) The value of the field requested to be provided to theStateManager.voidStateManager.providedDoubleField(PersistenceCapable pc, int field, double currentValue) The value of the field requested to be provided to theStateManager.voidStateManager.providedFloatField(PersistenceCapable pc, int field, float currentValue) The value of the field requested to be provided to theStateManager.voidStateManager.providedIntField(PersistenceCapable pc, int field, int currentValue) The value of the field requested to be provided to theStateManager.voidStateManager.providedLongField(PersistenceCapable pc, int field, long currentValue) The value of the field requested to be provided to theStateManager.voidStateManager.providedObjectField(PersistenceCapable pc, int field, Object currentValue) The value of the field requested to be provided to theStateManager.voidStateManager.providedShortField(PersistenceCapable pc, int field, short currentValue) The value of the field requested to be provided to theStateManager.voidStateManager.providedStringField(PersistenceCapable pc, int field, String currentValue) The value of the field requested to be provided to theStateManager.static voidJDOImplHelper.registerClass(Class pcClass, String[] fieldNames, Class[] fieldTypes, byte[] fieldFlags, Class persistenceCapableSuperclass, PersistenceCapable pc) Register metadata by class.booleanStateManager.replacingBooleanField(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.byteStateManager.replacingByteField(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.charStateManager.replacingCharField(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.doubleStateManager.replacingDoubleField(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.byteStateManager.replacingFlags(PersistenceCapable pc) The owningStateManageruses this method to supply the value of the flags to thePersistenceCapableinstance.floatStateManager.replacingFloatField(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.intStateManager.replacingIntField(PersistenceCapable pc, int field) The replacement value of the field in the calling instance.longStateManager.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.shortStateManager.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.voidStateManager.setBooleanField(PersistenceCapable pc, int field, boolean currentValue, boolean newValue) Mark the field as modified by the user.voidStateManager.setByteField(PersistenceCapable pc, int field, byte currentValue, byte newValue) Mark the field as modified by the user.voidStateManager.setCharField(PersistenceCapable pc, int field, char currentValue, char newValue) Mark the field as modified by the user.voidStateManager.setDoubleField(PersistenceCapable pc, int field, double currentValue, double newValue) Mark the field as modified by the user.voidStateManager.setFloatField(PersistenceCapable pc, int field, float currentValue, float newValue) Mark the field as modified by the user.voidStateManager.setIntField(PersistenceCapable pc, int field, int currentValue, int newValue) Mark the field as modified by the user.voidStateManager.setLongField(PersistenceCapable pc, int field, long currentValue, long newValue) Mark the field as modified by the user.voidStateManager.setObjectField(PersistenceCapable pc, int field, Object currentValue, Object newValue) Mark the field as modified by the user.voidStateManager.setShortField(PersistenceCapable pc, int field, short currentValue, short newValue) Mark the field as modified by the user.voidStateManager.setStringField(PersistenceCapable pc, int field, String currentValue, String newValue) Mark the field as modified by the user.