1 16 17 package org.apache.cocoon.components.modules.database; 18 19 import java.sql.Connection ; 20 import java.sql.Statement ; 21 import java.sql.SQLException ; 22 import java.util.Map ; 23 import org.apache.avalon.framework.component.Component; 24 import org.apache.avalon.framework.configuration.Configuration; 25 import org.apache.avalon.framework.configuration.ConfigurationException; 26 27 34 public interface AutoIncrementModule extends Component { 35 36 String ROLE = AutoIncrementModule.class.getName(); 37 38 39 50 Object getPostValue( Configuration tableConf, Configuration columnConf, Configuration modeConf, 51 Connection conn, Statement stmt, Map objectModel ) throws SQLException , ConfigurationException; 52 53 54 61 boolean includeInQuery( ); 62 63 64 71 boolean includeAsValue( ); 72 73 74 87 Object getPreValue( Configuration tableConf, Configuration columnConf, Configuration modeConf, 88 Connection conn, Map objectModel ) throws SQLException , ConfigurationException; 89 90 91 101 String getSubquery( Configuration tableConf, Configuration columnConf, Configuration modeConf ) throws ConfigurationException; 102 103 } 104 | Popular Tags |