About detach

forum_thread

Error during cascaded merge

Hello! I have a new problem with ObjectDB 2.5.5_02. This issue appeared after the upgrade from 2.5.5. I get the following exception: ... = result. get ( 0 ) ; em. detach ( unit ) ; unit. getChannelConfigurationSets ...

 
api-jdo

isDirty(pc)

Tests whether the parameter instance is dirty.(Method of javax.jdo.spi.StateInterrogation)

 
forum_thread

Is it possible to commit only specific elements?

Hello, As stated above, I would like to know if it is possible to commit only specific elements, or at least update a single table, disregarding the other entities loaded in the persistency context? I have a complex hierarchy of intertwined objects. Currently I am clearing my persistency context, retrieving only the needed ones, creating new ones (which I want to commit), detaching the ones I've previously retrieved and finally committing. My context is big data and performance is an issue.      ... activity to multiple threads. Another option is to detach specific objects from the persistence context (which you want to discard ...

 
api-jdo

javax.jdo.listener.AttachCallback

This interface is used to notify instances of attach events.(Interface of JDO)

 
api-jdo

setCopyOnAttach(flag)

Sets the copyOnAttach setting.(Method of javax.jdo.PersistenceManager)

 
api-jdo

postAttach(event)

This method is called after a detached instance is attached, via the javax.jdo.PersistenceManager.makePersistent method.(Method of javax.jdo.listener.AttachLifecycleListener)

 
api-jdo

getDetachedInstance()

Returns the detached instance involved in the event.(Method of javax.jdo.listener.InstanceLifecycleEvent)

 
api-jdo

makeTransientAll(useFetchPlan, pcs)

Make instances transient, removing them from management by this PersistenceManager.(Method of javax.jdo.PersistenceManager)

 
api-jdo

makeTransientAll(pcs, useFetchPlan)

Make instances transient, removing them from management by this PersistenceManager.(Method of javax.jdo.PersistenceManager)

 
api-jdo

makeTransientAll(pcs, useFetchPlan)

Make instances transient, removing them from management by this PersistenceManager.(Method of javax.jdo.PersistenceManager)