Examples of currentSnapshot()


Examples of org.apache.cayenne.access.DataContext.currentSnapshot()

        if (object.getPersistenceState() != PersistenceState.NEW) {
            snapshot = context.getObjectStore().getSnapshot(object.getObjectId());
        }

        if (snapshot == null) {
            snapshot = context.currentSnapshot(object);
        }

        ObjectId id = snapshot.createTargetObjectId(targetEntityName, finalRel);
        return (id != null) ? (DataObject) context.localObject(id, null) : null;
    }
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.