sm.setObjectId(oid); return sm;
sm.setObjectId(oid); return sm;
ClassMapping meta = (ClassMapping)sm.getMetaData(); if (hasGeneratedKey(meta)) { sm.setObjectId(ApplicationIds.create( sm.getPersistenceCapable(), meta));
ClassMapping meta = (ClassMapping)sm.getMetaData(); if (hasGeneratedKey(meta)) { sm.setObjectId(ApplicationIds.create( sm.getPersistenceCapable(), meta));
sm.setObjectId(oid); return sm;
sm.setObjectId(oid); return sm;
ClassMapping meta = (ClassMapping)sm.getMetaData(); if (hasGeneratedKey(meta)) { sm.setObjectId(ApplicationIds.create( sm.getPersistenceCapable(), meta));
ClassMapping meta = (ClassMapping)sm.getMetaData(); if (hasGeneratedKey(meta)) { sm.setObjectId(ApplicationIds.create( sm.getPersistenceCapable(), meta));
sm.setObjectId(oid); return sm;
sm.setObjectId(oid); sm.initialize(sm.getMetaData().getDescribedType(), state);
sm.setObjectId(oid); sm.initialize(sm.getMetaData().getDescribedType(), state);
sm.setObjectId(oid); sm.initialize(sm.getMetaData().getDescribedType(), state);
sm.setObjectId(oid); sm.initialize(sm.getMetaData().getDescribedType(), state);
/** * If not already cached, create an empty copy of the given state * manager in the given state. */ OpenJPAStateManager copy(OpenJPAStateManager copy, PCState state) { beginOperation(true); try { assertOpen(); Object oid = copy.fetchObjectId(); Class type = copy.getManagedInstance().getClass(); if (oid == null) throw new InternalException(); // cached instance? StateManagerImpl sm = null; if (!copy.isEmbedded()) sm = getStateManagerImplById(oid, true); if (sm == null) { MetaDataRepository repos = _conf. getMetaDataRepositoryInstance(); ClassMetaData meta = repos.getMetaData(type, _loader, true); // construct a new state manager with all info known sm = new StateManagerImpl(oid, meta, this); sm.setObjectId(oid); sm.initialize(sm.getMetaData().getDescribedType(), state); } return sm; } finally { endOperation(); } }