ObjectDB Database Search

1-50 of 59 results

Refreshing a dirty object causes permanent JDOOptimisticVerificationException

and accidentally written to, which causes it to become NonTransactional- Dirty .         ... for the issue to happen: The entity must be made dirty on accident, outside of a transaction ( retrieveEntityAndMakeItDirtyByAccident  method). The dirty entity must be refreshed (beginning

Dirty checking

the database. ie: which objects, and which collections of objects, have been dirtied . in the jdo api ... ) so you can check if an entity object is dirty using the static JDOHelper.isDeleted method. support Support ... object is dirty using the static JDOHelper.isDeleted method. excellent, thanks! another question

Locking in JPA

affects only clean (non dirty ) entity objects. Explicit lock at that mode marks the clean entity object as modified ( dirty ) and increases its version number by 1. The PESSIMISTIC_FORCE_INCREMENT mode ... dirty and increases its version number by one (i.e. it combines PESSIMISTIC_WRITE with OPTIMISTIC

Updating JPA Entity Objects

JDOHelper . makeDirty (employee, "projects"); // reported as dirty em. getTransaction (). commit (); As

Entity Management Settings

the reference type for holding non dirty entities in the persistence context of the EntityManager

Entity Update - Is the documentation up to date?

, these changes will not trigger making the containing entity object dirty , but if it is marked dirty ... Support I'd like to understand the " dirtying " of entities a little better.  If an array reference ... that is the same as the old value, will the entity be marked dirty ?  If I want to avoid

javax.jdo.ObjectState.TRANSIENT_DIRTY

JDO Enum Constant in javax.jdo.ObjectState TRANSIENT_ DIRTY Since: JDO 1.0

javax.jdo.ObjectState.PERSISTENT_NONTRANSACTIONAL_DIRTY

JDO Enum Constant in javax.jdo.ObjectState PERSISTENT_NONTRANSACTIONAL_ DIRTY Since: JDO 1.0

javax.jdo.ObjectState.PERSISTENT_DIRTY

JDO Enum Constant in javax.jdo.ObjectState PERSISTENT_ DIRTY Since: JDO 1.0

javax.jdo.ObjectState.DETACHED_DIRTY

JDO Enum Constant in javax.jdo.ObjectState DETACHED_ DIRTY Since: JDO 1.0

javax.jdo.listener.InstanceLifecycleEvent.DIRTY

JDO Static Field in javax.jdo.listener.InstanceLifecycleEvent DIRTY Since: JDO 2.0

javax.persistence.LockModeType

phenomena can occur: P1 ( Dirty read): Transaction T1 modifies a row. Another transaction T2 then reads ... ( Dirty read): Transaction T1 modifies a row. Another transaction T2 then reads that row and obtains

Items in list are doubled, when the entity class is not enhanced

become dirty just by changing a mapped-by field (this was also true for reflection mode until build 2.2.6_03 and was changed in order to fix orphan removal). If Customer is not dirty - it doesn't cascade

Embedded in JDO metadata not working in objectDB 2.x ?

program that retrieves all the relevant containing entity objects, makes them dirty and persists ... the schema and wrote the program which retrieves the containing entities, made them dirty

Soft Reference Object Cache Recommendation

(){ softReferenceData = new SoftReference (data); data = null; } @Override public void jdoPreStore(){ // A dirty ... objects unless necessary (e.g. for dirty objects until commit). On the other hand the data store page

Entity Management Config questions

Hi, the manual states the following regarding config of Entities: http://www.objectdb.com/java/jpa/setting/entities : The element specifies settings of the two cache mechanisms for entities: The ref attribute specifies the reference type for holding non dirty entities in the persistence

Different behavior with persist() and queried instances?

it becomes a regular java.util.Array again which of course doesn't mark the object dirty when getting changed

Negative snapshot user count exception

file size = 297009152, dirty pages = 1, update list s = 2, dirty page map = 1,   FastModel Ben

javax.jdo.spi.PersistenceCapable

, transactional, dirty , new, deleted, or detached; and to get its associated PersistenceManager ... whether this object is dirty . Instances that have been modified, deleted, or newly made persistent ... mark this instance and this field dirty . Normally, PersistenceCapable classes are able to detect

javax.jdo.PersistenceManager

void flush () Flushes all dirty , new, and deleted instances to the data store. It has no effect ... the corresponding instance dirty . If it cannot determine if changes were made, then it must mark the instance dirty . No consistency checking is done during makePersistent of detached instances

javax.jdo.JDOHelper

whether the instance is persistent, transactional, dirty , new, deleted, or detached ... () Since: JDO 2.0 boolean isDirty (Object pc) Tests whether the parameter instance is dirty . Instances ... ;String fieldName) Explicitly mark the parameter instance and field dirty . Normally

javax.jdo.ObjectState

Since: JDO 1.0 DETACHED_ DIRTY Since: JDO 1.0 HOLLOW_PERSISTENT_NONTRANSACTIONAL Since: JDO 1.0 PERSISTENT_CLEAN Since: JDO 1.0 PERSISTENT_DELETED Since: JDO 1.0 PERSISTENT_ DIRTY Since: JDO 1.0 PERSISTENT_NEW Since: JDO 1.0 PERSISTENT_NEW_DELETED Since: JDO 1.0 PERSISTENT_NONTRANSACTIONAL_ DIRTY Since: JDO

PersistenceCapable.jdoMakeDirty(fieldName) - JDO Method

;fieldName ) Explicitly mark this instance and this field dirty . Normally, PersistenceCapable classes ... declaring the field. This allows unambiguous identification of the field to be marked dirty . If multiple ... in this API, then the field marked dirty is the field declared by the most derived class. Transient

javax.jdo.spi.StateInterrogation

) Tests whether the parameter instance is dirty . Instances that have been modified, deleted, newly ... known by the implementation to be non- dirty return Boolean.FALSE . Instances not recognized by ... and field dirty . Normally, PersistenceCapable classes are able to detect changes made to their fields

javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getPropertyName

included a dirty and quick fix that used  get as a prefix for both get and set  persistent

New entity objects are duplicated on merge cascading

from another new / dirty entity object by a reference with cascading persist disabled. The following

javax.jdo.PersistenceManagerFactory

-clean or from detached- dirty to persistent- dirty . See Also: getCopyOnAttach () Since: JDO 2.1 void ... and the instances revert to transient. Additionally, dirty instances transition to hollow

javax.jdo.listener.DirtyLifecycleListener

is implemented by listeners to be notified of dirty events. Since: JDO 2.0 Public Methods void postDirty ( InstanceLifecycleEvent  event) Invoked whenever a persistent instance is first made dirty ... whenever a persistent instance is first made dirty , during an operation that modifies the value

javax.jdo.spi.JDOImplHelper

(Object pc, String fieldName) Mark a non-binary-compatible instance dirty . Delegate ... - the instance to mark dirty fieldName - the field to mark dirty Since: JDO 1.0 void registerDateFormat

JDOImplHelper.nonBinaryCompatibleMakeDirty(pc,fieldName) - JDO Method

JDO Method in javax.jdo.spi.JDOImplHelper void nonBinaryCompatibleMakeDirty (   Object pc,    String fieldName ) Mark a non-binary-compatible instance dirty ... : pc - the instance to mark dirty fieldName - the field to mark dirty Since: JDO 1.0

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

JDO Static Method in javax.jdo.JDOHelper void makeDirty (   Object pc,    String fieldName ) Explicitly mark the parameter instance and field dirty . Normally ... of the field to be marked dirty . See Also: PersistenceCapable(String fieldName) Since: JDO 1.0

PersistenceManager.makePersistent(pc) - JDO Method

dirty . If it cannot determine if changes were made, then it must mark the instance dirty . No consistency

PersistenceManager.setCopyOnAttach(flag) - JDO Method

detached- dirty to persistent- dirty . See Also: getCopyOnAttach () Since: JDO 2.1

PersistenceManagerFactory.setCopyOnAttach(flag) - JDO Method

directly and change their state from detached-clean to persistent-clean or from detached- dirty to persistent- dirty . See Also: getCopyOnAttach () Since: JDO 2.1

StateInterrogation.isDirty(pc) - JDO Method

JDO Method in javax.jdo.spi.StateInterrogation Boolean isDirty (   Object pc ) Tests whether the parameter instance is dirty . Instances that have been modified, deleted, newly ... known by the implementation to be non- dirty return Boolean.FALSE . Instances not recognized by

StateInterrogation.makeDirty(pc,fieldName) - JDO Method

JDO Method in javax.jdo.spi.StateInterrogation boolean makeDirty (   Object pc,    String fieldName ) Explicitly mark the parameter instance and field dirty ... : pc - the instance. fieldName - the name of the field to be marked dirty . See Also: PersistenceCapable(String fieldName) Since: JDO 2.0

javax.jdo.spi.StateManager

whether this object is dirty . Instances that have been modified, deleted, or newly made persistent in the current ... (PersistenceCapable pc, String fieldName) Mark the associated PersistenceCapable field dirty

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

PersistenceManager.flush() - JDO Method

JDO Method in javax.jdo.PersistenceManager void flush () Flushes all dirty , new, and deleted instances to the data store. It has no effect if a transaction is not active. If a datastore transaction is active, this method synchronizes the cache with the datastore and reports any exceptions

PersistenceManagerFactory.setRestoreValues(restoreValues) - JDO Method

and the instances revert to transient. Additionally, dirty instances transition to hollow. If an implementation

javax.jdo.Query

, specifically not including the number of dependent and embedded instances. Dirty instances of affected

Query.deletePersistentAll() - JDO Method

JDO Method in javax.jdo.Query long deletePersistentAll () Deletes all the instances of the candidate class that pass the filter. Returns the number of instances of the candidate class that were deleted, specifically not including the number of dependent and embedded instances. Dirty instances

javax.jdo.Transaction

are unchanged and the instances revert to transient. Additionally, dirty instances transition to hollow

Transaction.setRestoreValues(restoreValues) - JDO Method

instances are unchanged and the instances revert to transient. Additionally, dirty instances transition

DirtyLifecycleListener.preDirty(event) - JDO Method

JDO Method in javax.jdo.listener.DirtyLifecycleListener void preDirty (    InstanceLifecycleEvent  event ) Invoked whenever a persistent instance is first made dirty , during an operation that modifies the value of a persistent or transactional field. Called before the value is changed. Since: JDO 2.0

DirtyLifecycleListener.postDirty(event) - JDO Method

JDO Method in javax.jdo.listener.DirtyLifecycleListener void postDirty (    InstanceLifecycleEvent  event ) Invoked whenever a persistent instance is first made dirty , during an operation that modifies the value of a persistent or transactional field. Called after the value is changed. Since: JDO 2.0

javax.jdo.listener.InstanceLifecycleEvent

Since: JDO 2.0 DELETE Since: JDO 2.0 DETACH Since: JDO 2.0 DIRTY Since: JDO 2.0 LOAD Since: JDO 2.0 STORE

PersistenceCapable.jdoIsDirty() - JDO Method

JDO Method in javax.jdo.spi.PersistenceCapable boolean jdoIsDirty () Tests whether this object is dirty . Instances that have been modified, deleted, or newly made persistent in the current transaction return true. Transient instances return false. Return: true if this instance has been modified in

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.makeDirty(pc,fieldName) - JDO Method

JDO Method in javax.jdo.spi.StateManager void makeDirty (   PersistenceCapable pc,    String fieldName ) Mark the associated PersistenceCapable field dirty . The StateManager will make a copy of the field so it can be restored if needed later, and then mark