Package org.fto.jthink.exception

Examples of org.fto.jthink.exception.JThinkRuntimeException


    SimpleDateFormat sdf = new SimpleDateFormat(formatStr);
    try {
      return sdf.parse(dateTimeStr);
    } catch (ParseException e) {
      throw new JThinkRuntimeException(e);     
    }
  }
View Full Code Here


    if (dateTimeStr != null && formatStr != null && locale != null && dateTimeStr.trim().length() > 0 && formatStr.trim().length() > 0) {
      SimpleDateFormat sdf = new SimpleDateFormat(formatStr, locale);
      try {
        return sdf.parse(dateTimeStr);
      } catch (ParseException e) {
        throw new JThinkRuntimeException(e);   
      }
    }else{
      throw new IllegalArgumentException("参数dateTimeStr、formatStr、locale不能是null或空格串!");
    }
View Full Code Here

      SimpleDateFormat sdf = new SimpleDateFormat(formatStr[i]);
      try {
        return sdf.parse(dateTimeStr);
      } catch (ParseException e) {}
    }
    throw new JThinkRuntimeException("日期格式不正确!");   
  }
View Full Code Here

                                              Condition condition,
                                              String groupby, String orderby,
                                              int startIndex, int rowLen
                                              ){
    if(startIndex<0){
      throw new JThinkRuntimeException("startIndex不能小于0!");
    }
    if(rowLen<0){
      throw new JThinkRuntimeException("rowLen不能小于0!");
    }

//    SQL columnSQL = null;
//    StringBuffered columnSQLStatement = null;
//    int columnSQLStatementSize = 0;
View Full Code Here

      SimpleDateFormat sdf = new SimpleDateFormat(formatStr[i], locale);
      try {
        return sdf.parse(dateTimeStr);
      } catch (ParseException e) {}
    }
    throw new JThinkRuntimeException("日期格式不正确!");
  }
View Full Code Here



  public void setTimeout(int seconds) {
    if(seconds<0){
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_SYS_RUNTIME, "不被支持的值,只允许大于等于0的值!");
    }
    this.timeout = seconds;
  }
View Full Code Here

    return maxrows;
  }

  public void setMaxrows(int maxrows) {
    if(maxrows<0){
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_SYS_RUNTIME, "不被支持的值,只允许大于等于0的值!");
    }
    this.maxrows = maxrows;
  }
View Full Code Here

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

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

    try {
      if (cstmt != null) {
        cstmt.close();
      }
    } catch (SQLException ex) {
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_DB_CLOSE_PSTMT_FAILURE,
          ex);
    }
  }
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.