1 package org.apache.torque.oid; 2 3 21 22 import java.sql.Connection ; 23 import java.math.BigDecimal ; 24 25 36 public interface IdGenerator 37 { 38 49 int getIdAsInt(Connection connection, Object keyInfo) 50 throws Exception ; 51 52 60 long getIdAsLong(Connection connection, Object keyInfo) 61 throws Exception ; 62 63 71 BigDecimal getIdAsBigDecimal(Connection connection, Object keyInfo) 72 throws Exception ; 73 74 82 String getIdAsString(Connection connection, Object keyInfo) 83 throws Exception ; 84 85 90 boolean isPriorToInsert(); 91 92 97 boolean isPostInsert(); 98 99 105 boolean isConnectionRequired(); 106 } 107 | Popular Tags |