Package net.sf.isolation.logging

Examples of net.sf.isolation.logging.IsoLog


  }

  public <T> T handle(Connection connection, Class<T> resultType,
      String query, List<IsoSQLParameter> parameters, Object data)
      throws SQLException {
    IsoLog log = context.getInstance(IsoLog.class);
    log.debug(query);
    CallableStatement statement = connection.prepareCall(query);
    try {
      context.getInstance(IsoCallableStatementHandler.class)
          .setParameters(statement, data);
      statement.execute();
      return context.getInstance(IsoCallableStatementResult.class)
          .result(statement, resultType);
    } finally {
      try {
        statement.close();
      } catch (SQLException exception) {
        log.error(exception);
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.isolation.logging.IsoLog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.