Examples of onObject()


Examples of org.apache.isis.runtimes.dflt.runtime.persistence.objectstore.transaction.PersistenceCommand.onObject()

        ObjectAdapter[] retrievedInstance = store.getInstances(new PersistenceQueryFindByTitle(specification, "changed"));
        assertEquals(0, retrievedInstance.length);

        ((TestProxyAdapter) object).setupTitleString("changed title");
        final PersistenceCommand command = store.createSaveObjectCommand(object);
        assertEquals(object, command.onObject());
        store.execute(Collections.<PersistenceCommand> singletonList(command));

        resetIdentityMap();

        retrievedInstance = store.getInstances(new PersistenceQueryFindByTitle(specification, "changed"));
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.objectstore.transaction.PersistenceCommand.onObject()

        assertNotSame(object, retrievedInstance[0]);
    }

    public void testRemoveInstance() throws Exception {
        final PersistenceCommand command = store.createDestroyObjectCommand(object);
        assertEquals(object, command.onObject());
        store.execute(Collections.<PersistenceCommand> singletonList(command));

        resetIdentityMap();

        final ObjectSpecification specification = object.getSpecification();
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.objectstore.transaction.PersistenceCommand.onObject()

        IsisContext.getPersistenceSession().testReset();
    }

    protected void addObjectToStore(final ObjectAdapter object) {
        final PersistenceCommand command = store.createCreateObjectCommand(object);
        assertEquals(object, command.onObject());
        store.execute(Collections.<PersistenceCommand> singletonList(command));
    }

}
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.objectstore.transaction.PersistenceCommand.onObject()

            store.getInstances(new PersistenceQueryFindByTitle(specification, "changed"));
        assertEquals(0, retrievedInstance.length);

        ((TestProxyAdapter) object).setupTitleString("changed title");
        final PersistenceCommand command = store.createSaveObjectCommand(object);
        assertEquals(object, command.onObject());
        store.execute(Collections.<PersistenceCommand> singletonList(command));

        resetIdentityMap();

        retrievedInstance = store.getInstances(new PersistenceQueryFindByTitle(specification, "changed"));
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.objectstore.transaction.PersistenceCommand.onObject()

        assertNotSame(object, retrievedInstance[0]);
    }

    public void testRemoveInstance() throws Exception {
        final PersistenceCommand command = store.createDestroyObjectCommand(object);
        assertEquals(object, command.onObject());
        store.execute(Collections.<PersistenceCommand> singletonList(command));

        resetIdentityMap();

        final ObjectSpecification specification = object.getSpecification();
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.