Examples of initialiseForDetached()


Examples of org.datanucleus.StateManager.initialiseForDetached()

                AbstractClassMetaData acmd = om.getMetaDataManager()
                                                    .getMetaDataForClass(entity.getClass(), om.getClassLoaderResolver());
                Object id = ForceQueryUtils.getIdFromObject(pc, acmd);
                if (id != null) {
                    if (sm instanceof ForceJPAStateManagerImpl) {
                            sm.initialiseForDetached(pc, id, sm.getVersion(pc));
                            entity = sm.getObject();
                    }
                }
            }
        }
View Full Code Here

Examples of org.datanucleus.StateManager.initialiseForDetached()

     */
    public static StateManager newStateManagerForDetached(ObjectManager om, Object pc, Object id, Object version)
    {
        Initialization stateManagerInitialization = new Initialization(om,pc.getClass());
        StateManager sm = om.getApiAdapter().newStateManager(om, stateManagerInitialization.getClassMetaData());
        sm.initialiseForDetached(pc, id, version);
        return sm;
    }

    /**
     * Constructor for creating SM instances to manage persistable objects that are not persistent yet
View Full Code Here

Examples of org.jpox.StateManager.initialiseForDetached()

     */
    public static StateManager newStateManagerForDetached(ObjectManager om, Object pc, Object id, Object version)
    {
        Initialization stateManagerInitialization = new Initialization(om,pc.getClass());
        StateManager sm = om.getApiAdapter().newStateManager(om, stateManagerInitialization.getClassMetaData());
        sm.initialiseForDetached(pc, id, version);
        return sm;
    }

    /**
     * Constructor for creating SM instances to manage persistable objects that are not persistent yet
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.