Hi ,
I want to understand why isDetached is using find. I thought it would be as
simple as reading a boolean variable which is set if detach is caaled on
that particular entity.  Furthermore i am not getting the comment below: 

         // not a part of Query result load. Look into the slices till found
        List<SliceStoreManager> targets = getTargets(fetch);
        for (SliceStoreManager slice : targets) {
            if (slice.initialize(sm, state, fetch, edata)) {
                assignSlice(sm, slice.getName());
                return true;
            }
        }
    
Stack:
            DistributedJDBCStoreManager.initialize(OpenJPAStateManager,
PCState, FetchConfiguration, Object) line: 399   
           
ROPStoreManager(DelegatingStoreManager).initialize(OpenJPAStateManager,
PCState, FetchConfiguration, Object) line: 111   
            ROPStoreManager.initialize(OpenJPAStateManager, PCState,
FetchConfiguration, Object) line: 57   
            DistributedBrokerImpl(BrokerImpl).initialize(StateManagerImpl,
boolean, FetchConfiguration, Object) line: 996   
            DistributedBrokerImpl(BrokerImpl).find(Object,
FetchConfiguration, BitSet, Object, int, FindCallbacks) line: 954   
            DistributedBrokerImpl(BrokerImpl).find(Object,
FetchConfiguration, BitSet, Object, int) line: 876   
            DistributedBrokerImpl(BrokerImpl).isDetached(Object) line: 4405   
            SingleFieldManager.persist(OpCallbacks) line: 257   
            StateManagerImpl.cascadePersist(OpCallbacks) line: 2962   
            DistributedBrokerImpl(BrokerImpl).persist(Object, Object,
boolean, OpCallbacks) line: 2561   
            DistributedBrokerImpl.persist(Object, Object, boolean,
OpCallbacks) line: 96   
            DistributedBrokerImpl(BrokerImpl).persist(Object, OpCallbacks)
line: 2383   
            DelegatingBroker.persist(Object, OpCallbacks) line: 1039   
            EntityManagerImpl.persist(Object) line: 681   
            Main.main(String[]) line: 52    
-- 
View this message in context: 
http://n2.nabble.com/how-isDetached%28object%29-works--tp3034237p3034237.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to