Ejemplo n.º 1
0
  /**
   * This method will generate the in clause of Query.
   *
   * @return String:
   * @throws DAOException database exception.
   */
  public String buildSql() throws DAOException {
    for (Object obj : colValueArray) {
      DAOUtility.checkforInvalidData(obj);
    }
    StringBuffer strBuff = new StringBuffer(DAOConstants.TRAILING_SPACES);

    strBuff = new StringBuffer(DAOConstants.TRAILING_SPACES);

    String sourceObject = DAOUtility.getInstance().parseClassName(sourceObjectName);

    strBuff
        .append(sourceObject)
        .append(DAOConstants.DOT_OPERATOR)
        .append(columnName)
        .append(DAOConstants.TRAILING_SPACES)
        .append(DAOConstants.IN_CONDITION)
        .append(DAOConstants.TRAILING_SPACES);

    updateInclause(strBuff);

    return strBuff.toString();
  }
Ejemplo n.º 2
0
  public List executeCrieteriaQuery(
      String className, List<ColumnValueBean> fetchMode, List<ColumnValueBean> expressions)
      throws DAOException {

    try {

      return new ArrayList();

    } catch (HibernateException hiberExp) {
      throw DAOUtility.getInstance()
          .getDAOException(
              hiberExp, "db.retrieve.data.error", "HibernateDAOImpl.java " + className);
    }
  }