Internal Website Search

1-50 of 94 results

JPA Entity Fields

superclasses) can be classified into the following five groups: Transient fields Persistent fields Inverse (Mapped By) fields Primary key (ID) fields Version field The first three groups ( transient ... are discussed in the Primary Key section. Transient Fields Transient entity fields are fields

@Transient

;  @ Transient     private boolean test;          // getters/setters } When I persist the class the transient 'boolean test' is stored ... the database because it's a (annotated) transient field? Regards, Will wlboluyt Will Boluyt This is strange

@MappedSuperclass and @Transient not working as I expected

, and one of its fields is annotated @ Transient .  I expected that when I persist a subclass, no table would be created for the superclass, and the transient field would not appear in any table. The actual result ... , it throws a NPE.  And there is a column in the subclass table named for the transient field. 

javax.persistence.Transient

JPA Annotation Transient Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies that the property or field is not persistent. It is used to annotate a property or field of an entity ... ; @ Transient User currentUser; ... } Since: JPA 1.0 This annotation is a marker annotation (with no attributes).

Defining a JPA Entity Class

, any field that is not declared as static or transient is a persistent field. For example

ObjectDB enhancement fails on "is" form for @Transient boolean isLoaded(), ok for "getter" form @Transient boolean getLoaded()

Element I encounter ObjectDB enhancement errors: private boolean loaded = false; @ Transient @Override ... . ... But it is ok using the 'get' getter form: private boolean loaded = false; @ Transient @Override public ... getBalance() { ... } ... @ Transient // because status depends upon non-persistent context public boolean

[ODB1] Chapter 6 - Persistent Objects

. represents some database content, or a transient object, i.e. not related to any database. Storing Objects Explicitly When a new object is constructed by the new operator, it always starts as a transient ... transient object. Then it becomes persistent by an explicit call to the makePersistent( ... ) method

[ODB1] Chapter 3 - Persistent Classes

of persistent classes that live only in memory) are called transient objects or transient instances ... transient classes and can have only transient objects as instances. To become persistent, a class ... transient , and have persistent types . Every persistent class is a persistent type. The following

[ODB1] Chapter 4 - JDO Metadata

is found, the class is persistent, and if not, the class is transient . Metadata for class a.b.X ( a.b ... f0 , changes a field that is transient by default to persistent. For example, a field with a transient modifier in the Java source (useful for defining fields as transient in serialization

javax.jdo.ObjectState.TRANSIENT_DIRTY

JDO Enum Constant in javax.jdo.ObjectState TRANSIENT _DIRTY Since: JDO 1.0

javax.jdo.ObjectState.TRANSIENT_CLEAN

JDO Enum Constant in javax.jdo.ObjectState TRANSIENT _CLEAN Since: JDO 1.0

javax.jdo.ObjectState.TRANSIENT

JDO Enum Constant in javax.jdo.ObjectState TRANSIENT Since: JDO 1.0

javax.jdo.PersistenceManager

throws JDOUserException if the instance is transient or is managed by another PersistenceManager ... transient instances persistent and applies detached instance changes to the cache. It must be called in the context of an active transaction, or a JDOUserException is thrown. For a transient instance

javax.jdo.spi.PersistenceCapable

the PersistenceManager. This method returns a copy of the ObjectId that represents the JDO identity. Transient ... if there is one. Transactional and persistent instances return the associated PersistenceManager. Transient non-transactional ... . Transient instances return false. Return: true if this instance was deleted in the current transaction

javax.jdo.JDOHelper

a copy of the ObjectId that represents the JDO identity. Transient instances and instances ... and persistent instances return the associated PersistenceManager . Transient non-transactional instances ... . Transient instances and instances of classes that do not implement PersistenceCapable return false

PersistenceManager.makePersistent(pc) - JDO Method

the parameter instance persistent in this PersistenceManager . This method makes transient instances ... of an active transaction, or a JDOUserException is thrown. For a transient instance, it assigns an object identity to the instance and transitions it to persistent-new. Any transient instances reachable from

javax.jdo.spi.StateManager

. Transient instances return false . Parameters: pc - the calling PersistenceCapable instance Return ... transaction return true . Transient nontransactional instances return false . Parameters: pc ... the current transaction return true . Transient instances return false . Parameters: pc

PersistenceManager.makeTransientAll(useFetchPlan,pcs) - JDO Method

;useFetchPlan,    Object... pcs ) Make instances transient , removing them from ... of instances reachable via loaded fields is made transient . The state of fields in the affected ... ; there is no detachment information in the instances. The instances to be made transient do not need to implement

PersistenceManager.makeTransientAll(pcs,useFetchPlan) - JDO Method

,    boolean useFetchPlan ) Make instances transient , removing them from ... of instances reachable via loaded fields is made transient . The state of fields in the affected ... ; there is no detachment information in the instances. The instances to be made transient do not need to implement

PersistenceManager.makeTransientAll(pcs,useFetchPlan) - JDO Method

,    boolean useFetchPlan ) Make instances transient , removing them from ... of instances reachable via loaded fields is made transient . The state of fields in the affected ... ; there is no detachment information in the instances. The instances to be made transient do not need

PersistenceManager.makeTransient(pc,useFetchPlan) - JDO Method

;   boolean useFetchPlan ) Make an instance transient , removing it from management by ... is made transient . The state of fields in the affected instances is as specified by the FetchPlan. Unlike ... . The instances to be made transient do not need to implement the javax.jdo.spi.Detachable interface. Parameters

javax.jdo.ObjectState

1.0 TRANSIENT Since: JDO 1.0 TRANSIENT _CLEAN Since: JDO 1.0 TRANSIENT _DIRTY Since: JDO 1.0 Public

PersistenceManagerFactory.setRestoreValues(restoreValues) - JDO Method

, and the instances revert to transient . Additionally, fields of modified instances of primitive types ... and the instances revert to transient . Additionally, dirty instances transition to hollow. If an implementation

javax.jdo.PersistenceManagerFactory

of the transaction, and the instances revert to transient . Additionally, fields of modified instances ... and the instances revert to transient . Additionally, dirty instances transition to hollow

PersistenceManager.setDetachAllOnCommit(flag) - JDO Method

to detached; non-detachable persistent instances transition to transient ; and detachable instances can be serialized as detached instances. Transient transactional instances are unaffected by this flag. See Also: getDetachAllOnCommit () Since: JDO 2.0

StateManager.isTransactional(pc) - JDO Method

return true . These instances include transient instances made transactional as a result ... optimistic transactions. Transient nontransactional instances return false . Parameters: pc - the calling

Transaction.setRestoreValues(restoreValues) - JDO Method

of the beginning of the transaction, and the instances revert to transient . Additionally, fields ... instances are unchanged and the instances revert to transient . Additionally, dirty instances transition

javax.jdo.Transaction

to their values as of the beginning of the transaction, and the instances revert to transient . Additionally ... of newly persistent instances are unchanged and the instances revert to transient . Additionally, dirty

PersistenceManager.makeTransactional(pc) - JDO Method

JDO Method in javax.jdo.PersistenceManager void makeTransactional (   Object pc ) Make an instance subject to transactional boundaries. Transient instances normally do not observe transaction boundaries. This method makes transient instances sensitive to transaction completion

PersistenceManager.makeTransientAll(pcs) - JDO Method

JDO Method in javax.jdo.PersistenceManager void makeTransientAll (   Collection pcs ) Make a Collection of instances transient , removing them from management by ... PersistenceManager . The state of fields is preserved unchanged. Parameters: pcs - the instances to make transient . Since: JDO 1.0

PersistenceManager.makeTransientAll(pcs) - JDO Method

JDO Method in javax.jdo.PersistenceManager void makeTransientAll (   Object... pcs ) Make an array of instances transient , removing them from management by this PersistenceManager ... . The state of fields is preserved unchanged. Parameters: pcs - the instances to make transient . Since: JDO 1.0

PersistenceManager.makeTransient(pc) - JDO Method

JDO Method in javax.jdo.PersistenceManager void makeTransient (   Object pc ) Make an instance transient , removing it from management by this PersistenceManager . The instance loses ... is preserved unchanged. Parameters: pc - the instance to make transient . Since: JDO 1.0

PersistenceCapable.jdoReplaceStateManager(sm) - JDO Method

, transient , or transactional. The caller of this method must have JDOPermission for the instance ... the instance to transient state Throws: SecurityExceptionif the caller does not have JDOPermission See Also: JDOPermission Since: JDO 1.0

PersistenceCapable.jdoGetPersistenceManager() - JDO Method

JDO Method in javax.jdo.spi.PersistenceCapable PersistenceManager jdoGetPersistenceManager () Return the associated PersistenceManager if there is one. Transactional and persistent instances return the associated PersistenceManager. Transient non-transactional instances return null. This method

PersistenceManager.newInstance(pcClass) - JDO Method

JDO Method in javax.jdo.PersistenceManager T newInstance (   Class  pcClass ) Creates an instance of a persistence-capable interface, or of a concrete or abstract class. The returned instance is transient . Parameters: pcClass - Must be a persistence-capable interface, or a concrete

StateManager.isDeleted(pc) - JDO Method

JDO Method in javax.jdo.spi.StateManager boolean isDeleted (   PersistenceCapable pc ) Tests whether this object has been deleted. Instances that have been deleted in the current transaction return true . Transient instances return false . Parameters: pc - the calling

StateManager.isNew(pc) - JDO Method

JDO Method in javax.jdo.spi.StateManager boolean isNew (   PersistenceCapable pc ) Tests whether this object has been newly made persistent. Instances that have been made persistent in the current transaction return true . Transient instances return false . Parameters: pc

StateManager.isDirty(pc) - JDO Method

JDO Method in javax.jdo.spi.StateManager boolean isDirty (   PersistenceCapable pc ) Tests whether this object is dirty. Instances that have been modified, deleted, or newly made persistent in the current transaction return true . Transient nontransactional instances return false

StateManager.isPersistent(pc) - JDO Method

JDO Method in javax.jdo.spi.StateManager boolean isPersistent (   PersistenceCapable pc ) Tests whether this object is persistent. Instances whose state is stored in the data store return true . Transient instances return false . Parameters: pc - the calling PersistenceCapable

JDOHelper.isTransactional(pc) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper boolean isTransactional (   Object pc ) Tests whether the parameter instance is transactional. Instances whose state is associated with the current transaction return true. Transient instances and instances of classes that do not implement

JDOHelper.isDirty(pc) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper boolean isDirty (   Object pc ) Tests whether the parameter instance is dirty. Instances that have been modified, deleted, or newly made persistent in the current transaction return true . Transient instances and instances of classes

JDOHelper.getObjectId(pc) - JDO Static Method

of the ObjectId that represents the JDO identity. Transient instances and instances of classes

JDOHelper.isDeleted(pc) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper boolean isDeleted (   Object pc ) Tests whether the parameter instance has been deleted. Instances that have been deleted in the current transaction return true . Transient instances and instances of classes that do not implement

JDOHelper.isDetached(pc) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper boolean isDetached (   Object pc ) Tests whether the parameter instance has been detached. Instances that have been detached return true. Transient instances return false. Parameters: pc - the instance Return: true if this instance is detached. See Also: PersistenceCapable() Since: JDO 2.0

JDOHelper.isPersistent(pc) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper boolean isPersistent (   Object pc ) Tests whether the parameter instance is persistent. Instances that represent persistent objects in the data store return true . Transient instances and instances of classes that do not implement

JDOHelper.isNew(pc) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper boolean isNew (   Object pc ) Tests whether the parameter instance has been newly made persistent. Instances that have been made persistent in the current transaction return true . Transient instances and instances of classes that do not

JDOHelper.makeDirty(pc,fieldName) - JDO Static Method

was made to a field. Transient instances and instances of classes that do not implement

JDOHelper.getPersistenceManager(pc) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper PersistenceManager getPersistenceManager (   Object pc ) Return the associated PersistenceManager if there is one. Transactional and persistent instances return the associated PersistenceManager . Transient non-transactional instances

javax.jdo.JDONullIdentityException

constructor parameter is null. This might occur when creating an object id instance from a transient instance

PersistenceManager.makePersistentAll(pcs) - JDO Method

JDO Method in javax.jdo.PersistenceManager T[] makePersistentAll (   T... pcs ) Make an array of instances persistent. Parameters: pcs - an array of instances Return: the parameter instances for parameters in the transient or persistent state, or the corresponding persistent