Package net.sf.isolation.logging

Examples of net.sf.isolation.logging.IsoLog.debug()


  public Map<String, Object> execute(String name,
      Map<String, Object> parameters) {
    IsoLog log = context.getLog();
    assert name != null : "name is null";
    assert name.length() > 0 : "name is \"\"";
    log.debug("Execute: {0}", name);
    IsoSPExpression sp = sps.get(name);
    if (sp == null) {
      throw new NoSuchElementException(name);
    }
    Connection connection = getConnection();
View Full Code Here


    try {
      String sql = sp.getSql();
      if (sql == null) {
        throw new IllegalStateException("sql is null");
      }
      log.debug("Sql: {0}", sql);
      CallableStatement statement = connection.prepareCall(sql);
      IsoSPExpressionParameterInformation[] parametersInformation = sp
          .getParametersInformation();
      if (parametersInformation != null
          && parametersInformation.length > 0 && parameters != null) {
View Full Code Here

  public Map<String, Object> execute(String name, Object bean) {
    IsoLog log = context.getLog();
    assert name != null : "name is null";
    assert name.length() > 0 : "name is \"\"";
    log.debug("Execute: {0}", name);
    IsoSPExpression sp = sps.get(name);
    if (sp == null) {
      throw new NoSuchElementException(name);
    }
    Connection connection = getConnection();
View Full Code Here

    try {
      String sql = sp.getSql();
      if (sql == null) {
        throw new IllegalStateException("sql is null");
      }
      log.debug("Sql: {0}", sql);
      CallableStatement statement = connection.prepareCall(sql);
      IsoSPExpressionParameterInformation[] parametersInformation = sp
          .getParametersInformation();
      if (parametersInformation != null
          && parametersInformation.length > 0 && bean != null) {
View Full Code Here

          .getInstance(IsoReflectionManager.class);
      IsoBeanPropertyManager propertyManager = context
          .getInstance(IsoBeanPropertyManager.class);
      IsoColumnTypeConverter columnTypeConverter = context
          .getInstance(IsoColumnTypeConverter.class);
      log.debug("Processing: {0}", klass);
      List<Object> list = new ArrayList<Object>();
      ResultSetMetaData metaData = resultSet.getMetaData();
      int columnCount = metaData.getColumnCount();
      String[] columnNames = new String[columnCount];
      for (int i = 0; i < columnCount; i++) {
View Full Code Here

          propertyManager.setProperty(bean, type,
              columnInfo.getName(), value);
        }
        list.add(bean);
      }
      log.debug("List size: {0}", Integer.valueOf(list.size()));
      @SuppressWarnings("unchecked")
      T resultList = (T) list;
      return resultList;
    } else {
      throw new IllegalArgumentException(resultType.getName());
View Full Code Here

  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);
    PreparedStatement statement = connection.prepareStatement(query);
    try {
      context.getInstance(IsoPreparedStatementParameterSetter.class)
          .setParameters(statement, parameters, data);
      ResultSet resultSet = statement.executeQuery();
View Full Code Here

  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();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.