1 4 package org.roller.business; 5 6 import java.io.Serializable ; 7 8 import org.roller.RollerException; 9 import org.roller.pojos.PersistentObject; 10 import org.roller.pojos.UserData; 11 12 21 public interface PersistenceStrategy extends Serializable 22 { 23 27 public PersistentObject store(PersistentObject data) 28 throws RollerException; 29 30 35 public PersistentObject load( 36 String id, Class cls) throws RollerException; 37 38 41 public void remove(PersistentObject po) 42 throws RollerException; 43 44 47 public void remove(String id, Class cls) 48 throws RollerException; 49 50 53 public void begin(UserData user) throws RollerException; 54 55 58 public void setUser(UserData user) throws RollerException; 59 public UserData getUser() throws RollerException; 60 61 64 public void commit() throws RollerException; 65 66 69 public void rollback() throws RollerException; 70 71 75 public void release() throws RollerException; 76 } 77 | Popular Tags |