1 package org.apache.ojb.otm; 2 3 17 18 import org.apache.ojb.broker.Identity; 19 import org.apache.ojb.otm.lock.LockingException; 20 import org.apache.ojb.otm.states.State; 21 22 import java.util.Collection ; 23 24 34 public interface EditingContext 35 { 36 37 48 public void insert (Identity oid, Object userObject, int lock) 49 throws LockingException; 50 51 59 public void remove (Identity oid); 60 61 68 public Object lookup (Identity oid) 69 throws LockingException; 70 71 77 State lookupState(Identity oid) 78 throws LockingException; 79 80 void setState(Identity oid, State state); 81 82 Collection getAllObjectsInContext(); 83 84 87 public void refresh(Identity oid, Object object); 88 } 89 | Popular Tags |