001 package railo.runtime.db.driver.state; 002 003 import java.sql.CallableStatement; 004 import java.sql.PreparedStatement; 005 import java.sql.Statement; 006 007 import railo.runtime.db.driver.CallableStatementProxy; 008 import railo.runtime.db.driver.ConnectionProxy; 009 import railo.runtime.db.driver.Factory; 010 import railo.runtime.db.driver.PreparedStatementProxy; 011 import railo.runtime.db.driver.StatementProxy; 012 013 public class StateFactory implements Factory { 014 015 @Override 016 public StatementProxy createStatementProxy(ConnectionProxy conn, Statement stat) { 017 return new StateStatement(conn,stat); 018 } 019 020 @Override 021 public PreparedStatementProxy createPreparedStatementProxy(ConnectionProxy conn, PreparedStatement stat, String sql) { 022 return new StatePreparedStatement(conn, stat,sql); 023 } 024 025 @Override 026 public CallableStatementProxy createCallableStatementProxy(ConnectionProxy conn, CallableStatement stat, String sql) { 027 return new StateCallableStatement(conn, stat,sql); 028 } 029 030 }