|
Last
revision of this document: |
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;
}
}