1 package net.sourceforge.jdbclogger.oracle10g; 2 18 import java.sql.Connection ; 19 import java.sql.SQLException ; 20 import java.util.Properties ; 21 22 import net.sourceforge.jdbclogger.core.AbstractWrapperDriver; 23 import net.sourceforge.jdbclogger.core.NumberParameterFormatterImpl; 24 import oracle.jdbc.driver.OracleConnection; 25 26 30 public class JdbcLoggerOracleDriver extends AbstractWrapperDriver 31 { 32 34 public JdbcLoggerOracleDriver() { 35 super(); 36 37 formatters.add(new JdbcLoggerOracleDateParameterFormatterImpl()); 38 formatters.add(new NumberParameterFormatterImpl()); 39 } 40 41 public Connection connect(String s, Properties properties) throws SQLException { 42 return new JdbcLoggerOracleConnectionWrapper((OracleConnection) getDriver().connect(s, properties), formatters); 43 } 44 } 45 | Popular Tags |