1 2 12 package com.versant.core.jdbc; 13 14 import com.versant.core.jdbc.metadata.JdbcTable; 15 16 import java.sql.Connection ; 17 import java.sql.SQLException ; 18 import java.sql.Statement ; 19 import java.util.HashSet ; 20 21 25 public interface JdbcKeyGenerator { 26 27 35 public void addKeyGenTables(HashSet set, JdbcMetaDataBuilder mdb); 36 37 42 public boolean isPostInsertGenerator(); 43 44 57 public void init(String className, JdbcTable classTable, 58 Connection con) throws SQLException ; 59 60 66 public boolean isRequiresOwnConnection(); 67 68 88 public void generatePrimaryKeyPre(String className, 89 JdbcTable classTable, int newObjectCount, Object [] data, 90 Connection con) throws SQLException ; 91 92 98 public String getPostInsertSQLSuffix(JdbcTable classTable); 99 100 114 public void generatePrimaryKeyPost(String className, 115 JdbcTable classTable, Object [] data, 116 Connection con, Statement stat) throws SQLException ; 117 118 } 119 | Popular Tags |