コード例 #1
1
  public Collection executeStoredProcedure(
      String sProcedureName, Vector parameters, boolean ValueObjectCollectionFlage)
      throws FrameworkDAOException {

    Collection coll = null;

    try {

      if (ValueObjectCollectionFlage) {
        coll = getConnection().executeStoredProcedure(sProcedureName, parameters, this);
      } else {
        coll = getConnection().executeStoredProcedure(sProcedureName, parameters);
      }
    } catch (Exception exc) {
      throw new FrameworkDAOException(
          "S_Framework_Entry_UIDAO:executeStoredProcedure() - " + exc, exc);
    }

    // Now check the enumeration and if there is none then log it in the base object
    if (coll.size() <= 0) {
      printMessage("S_Framework_Entry_UIDAO:executeStoredProcedure() - Collection is empty.");
    }

    return (coll);
  }
コード例 #2
0
  public Collection executeStoredProcedure(String sProcedureName, Vector parameters)
      throws FrameworkDAOException {
    // Initialize values
    Collection coll = null;
    // Vector args = parameters;

    try {
      // String sSQL = sql;
      coll = getConnection().executeStoredProcedure(sProcedureName, parameters);
    } catch (Exception exc) {
      throw new FrameworkDAOException(
          "S_Framework_Entry_UIDAO:executeStoredProcedure() - " + exc, exc);
    }

    // Now check the enumeration and if there is none then log it in the base object
    if (coll.size() <= 0) {
      printMessage("S_Framework_Entry_UIDAO:executeStoredProcedure() - Collection is empty.");
    }

    return (coll);
  }
コード例 #3
0
  /**
   * returns a Collection of all S_Framework_Entry_UI Entity Beans
   *
   * @exception FrameworkDAOException
   */
  public Collection getS_Framework_Entry_UIsInSelectSql(String sSelect, Vector parameters)
      throws FrameworkDAOException {
    // Initialize values
    Collection coll = null;
    Vector args = parameters;
    String sSQL = sSelect;

    try {
      coll = getConnection().executeSelectStatement(sSQL, args, this);
    } catch (Exception exc) {
      throw new FrameworkDAOException(
          "S_Framework_Entry_UIDAO:getS_Framework_Entry_UIsInSelectSql() - " + exc, exc);
    }

    // Now check the enumeration and if there is none then log it in the base object
    if (coll.size() <= 0) {
      printMessage(
          "S_Framework_Entry_UIDAO:getS_Framework_Entry_UIsInSelectSql() - Collection is empty.");
    }

    return (coll);
  }