1 56 57 package org.objectstyle.cayenne.dba; 58 59 import java.util.List ; 60 61 import org.objectstyle.cayenne.access.DataNode; 62 import org.objectstyle.cayenne.map.DbEntity; 63 64 69 public interface PkGenerator { 70 71 78 void createAutoPk(DataNode node, List dbEntities) throws Exception ; 79 80 85 List createAutoPkStatements(List dbEntities); 86 87 95 void dropAutoPk(DataNode node, List dbEntities) throws Exception ; 96 97 101 List dropAutoPkStatements(List dbEntities); 102 103 108 Object generatePkForDbEntity(DataNode dataNode, DbEntity ent) throws Exception ; 109 110 116 String generatePkForDbEntityString(DbEntity ent); 117 118 122 void reset(); 123 } | Popular Tags |