> List of tutorials for developing a Fat-Client

Code for the Business Object containing a set of 'Project' Business Objects - Fat-Client-Development

* For this document and all references (links) please obey the hints and regulations concerning copyright, disclaimer and trademarks.

  • The owner of this web-site (www.javascout.biz) is not responsible for the content of web-sites linked within this document or other documents of www.javascout.biz.

  • If this document or other documents of this web-site (www.javascout.biz) infringes your rights or you think that rights of others (third parties) are infringed, please inform the author.
    An e-mail can be sent by clicking onto the 'hungry mailbox' in the upper right corner.

Last revision of this document:
2007-01-11

This is document contains the code for Class JS_ErrDB_Project_Set_BO.
For easy 'cut and paste' ;-)

package js_errdb.bo;

import js_base.bo.JSBS_BO_Set;

/**
 
*
 * @author
kurt@javascout.biz
 * @date 2007-01-11
 *
 * @description
 *  Set of Business Objects of reflecting 'Project's.
 *
 *  For variables an user-key please refer to the class JS_ErrDB_Project_BO
.
 
*
 * @change-log
 * when         who               why
 * --------------------------------------------------------
 *
 */

public class JS_ErrDB_Project_Set_BO extends JSBS_BO_Set {
/*
 * --------------------
 * Method to copy the values from another object into this object. */
    public void getJS_ErrDB_Project_Set_BO(JS_ErrDB_Project_Set_BO parmJS_ErrDB_Project_Set_BO) {
/*
 * Define variables for the Size and the Index of the vector
 * that holds the objects that have to be transferred into this object. */
      int locintVectorSize = parmJS_ErrDB_Project_Set_BO.vecRecordSet.size();
      int locintVectorIndex;
/* Empty the vector of this class before new elements are added. */
      this.vecRecordSet.removeAllElements();
/* Use a for-loop to handle each element of the vector. */
      for (locintVectorIndex = 0; locintVectorIndex < locintVectorSize; locintVectorIndex++) {
/* Get the element out of the vector and
 * transfer it into the structure for a single Business Object. */
        JS_ErrDB_Project_BO locstructJS_ErrDB_Project_BO =
          (JS_ErrDB_Project_BO) parmJS_ErrDB_Project_Set_BO.vecRecordSet.elementAt(locintVectorIndex);

/* 'Copy' the data of the structure into a new constructed structure. */
        JS_ErrDB_Project_BO locstructJS_ErrDB_Project_BO_New = new JS_ErrDB_Project_BO();
          locstructJS_ErrDB_Project_BO_New.getJS_ErrDB_Project_BO(locstructJS_ErrDB_Project_BO);

/* Add the new structure to the vector of this object. */
        this.vecRecordSet.addElement(locstructJS_ErrDB_Project_BO_New);
      };

/* Take over the StatusCode and the explanatory message. */
      StatusCode = parmJS_ErrDB_Project_Set_BO.StatusCode;
      StatusMsg = parmJS_ErrDB_Project_Set_BO.StatusMsg;
    }

}