1 package org.apache.torque.om; 2 3 21 22 import java.sql.Connection ; 23 24 31 public interface Persistent 32 { 33 38 ObjectKey getPrimaryKey(); 39 40 46 void setPrimaryKey(ObjectKey primaryKey) throws Exception ; 47 48 55 void setPrimaryKey(String primaryKey) throws Exception ; 56 57 63 boolean isModified(); 64 65 72 boolean isNew(); 73 74 80 void setNew(boolean b); 81 82 87 void setModified(boolean m); 88 89 94 void save() throws Exception ; 95 96 103 void save(String dbName) throws Exception ; 104 105 115 void save(Connection con) throws Exception ; 116 } 117 | Popular Tags |