1 56 package org.objectstyle.cayenne.access; 57 58 import java.io.Serializable ; 59 60 import org.objectstyle.cayenne.ObjectContext; 61 import org.objectstyle.cayenne.graph.GraphChangeHandler; 62 import org.objectstyle.cayenne.query.QueryExecutionPlan; 63 64 72 public interface PersistenceContext extends Serializable { 73 74 79 void commitChangesInContext(ObjectContext context, GraphChangeHandler commitChangeCallback); 80 81 86 void performQuery(QueryExecutionPlan query, OperationObserver observer); 87 88 95 void performQuery( 96 QueryExecutionPlan query, 97 OperationObserver observer, 98 Transaction transaction); 99 } 100 | Popular Tags |