1 17 18 package org.sape.carbon.services.sql; 19 20 import java.sql.CallableStatement ; 21 import java.sql.Connection ; 22 import java.sql.PreparedStatement ; 23 24 import org.sape.carbon.core.component.FunctionalInterface; 25 35 36 public interface StatementFactory extends FunctionalInterface { 37 38 48 PreparedStatement createPreparedStatement(String sqlQueryName) 49 throws StatementFactoryException; 50 51 64 PreparedStatement createPreparedStatement(String sqlQueryName, 65 Connection connection) throws StatementFactoryException; 66 67 77 CallableStatement createCallableStatement(String sqlQueryName) 78 throws StatementFactoryException; 79 80 93 CallableStatement createCallableStatement(String sqlQueryName, 94 Connection connection) throws StatementFactoryException; 95 96 } 97 | Popular Tags |