1 56 package org.objectstyle.cayenne; 57 58 import java.io.Serializable ; 59 import java.util.Collection ; 60 import java.util.List ; 61 62 import org.objectstyle.cayenne.graph.GraphDiff; 63 import org.objectstyle.cayenne.query.QueryExecutionPlan; 64 65 72 public interface ObjectContext extends Serializable { 73 74 78 Collection newObjects(); 79 80 84 Collection deletedObjects(); 85 86 90 Collection modifiedObjects(); 91 92 95 Collection uncommittedObjects(); 96 97 100 Persistent newObject(Class persistentClass); 101 102 105 void deleteObject(Persistent object); 106 107 111 void objectWillRead(Persistent object, String property); 112 113 117 void objectWillWrite( 118 Persistent object, 119 String property, 120 Object oldValue, 121 Object newValue); 122 123 131 GraphDiff commit(); 132 133 136 List performSelectQuery(QueryExecutionPlan queryPlan); 137 138 141 int[] performUpdateQuery(QueryExecutionPlan queryPlan); 142 143 146 QueryResponse performGenericQuery(QueryExecutionPlan queryPlan); 147 } | Popular Tags |