Package org.fto.jthink.exception

Examples of org.fto.jthink.exception.JThinkRuntimeException


    try {
      if (resultset != null) {
        resultset.close();
      }
    } catch (SQLException ex) {
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_DB_CLOSE_RS_FAILURE, ex);
    }
  }
View Full Code Here


        stmt.addBatch(sql);
      }
      return stmt.executeBatch();
     
    } catch (SQLException ex) {
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_DB_EXEC_SQL_EXCEPTION,
          ex);
    } finally {
      releaseResultSet(rs);
      releaseStatement(stmt);
    }
View Full Code Here

//        }
      } else {
        return null;
      }
    } catch (SQLException ex) {
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_DB_EXEC_SQL_EXCEPTION,
          "执行SQL失败!", ex);
    } finally {
      releaseResultSet(rs);
      releaseStatement(pstmt);
    }
View Full Code Here

//        }
      } else {
        return new Integer(pstmt.getUpdateCount());
      }
    } catch (SQLException ex) {
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_DB_EXEC_SQL_EXCEPTION,
          ex);
    } finally {
      releaseResultSet(rs);
      releaseStatement(pstmt);
    }
View Full Code Here

    try {
      executeCommand(sql, SQL.UPDATE);
      pstmt = prepareStatement(sql);
      return pstmt.executeUpdate();
    } catch (SQLException ex) {
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_DB_EXEC_SQL_EXCEPTION,
          "执行SQL失败!", ex);
    } finally {
      releaseResultSet(rs);
      releaseStatement(pstmt);
    }
View Full Code Here

          pstmt.setObject(i + 1, values[i]);
        }
      }
      return pstmt.executeUpdate();
    } catch (SQLException ex) {
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_DB_EXEC_SQL_EXCEPTION,
          ex);
    } finally {
      releaseResultSet(rs);
      releaseStatement(pstmt);
    }
View Full Code Here

//        return getResultMaker().create(rs);
//      }else{
        return getResultMaker().create(rs, doClazz);
//      }
    } catch (SQLException ex) {
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_DB_EXEC_SQL_EXCEPTION,
          ex);
    } finally {
      releaseResultSet(rs);
      releaseStatement(pstmt);
    }
View Full Code Here

//      }else{
        return getResultMaker().create(rs, doClazz);
//      }
     
    } catch (SQLException ex) {
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_DB_EXEC_SQL_EXCEPTION,
          ex);
    } finally {
      releaseResultSet(rs);
      releaseStatement(pstmt);
    }
View Full Code Here

//        }
      } else {
        return new Integer(cstmt.getUpdateCount());
      }
    } catch (SQLException ex) {
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_DB_EXEC_SQL_EXCEPTION,
          ex);
    } finally {
      releaseResultSet(rs);
      releaseStatement(cstmt);
    }
View Full Code Here

          return executeStoredProcedure(sql.getSQLString(), sql.getValues(), doClazz);
        }
      case SQL.UNDEFINED_SP:
        return executeStoredProcedure(sql.getSQLString(), sql.getValues(), doClazz);
    }
    throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_DB_EXEC_SQL_EXCEPTION, "错误的SQL类型!");
  }
View Full Code Here

TOP

Related Classes of org.fto.jthink.exception.JThinkRuntimeException

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.