|
Last
revision of this document: |
This
is document contains the code for Class JS_ProjAssist_Project_BO.
For
easy 'cut and paste' ;-)
package
js_projassist.bo;
import
js_base.bo.*;
/**
*
* @author kurt@javascout.biz
*
@date 2006-06-22
*
* @description
*
Business Object for the 'Project'.
*
* Please see the description at the
variables-declaration.
*
* User-Key: ProjectCode & LanguageCode.
*
* @change-log
*
when who why
*
--------------------------------------------------------
*
*/
public
class JS_ProjAssist_Project_BO
extends
JSBS_BO
{
/*
*
Project-Code; that is a shortcut for the Project. */
public
String
ProjectCode =
"";
/*
*
Language-Code; that is the ISO-CODE for the language the
Error-Messages are in. */
public
String
LanguageCode
=
"";
/*
*
Directory where the file with the language-specific error-messages is
* written out when the file with the XML-structure is
generated. */
public
String
TargetDirectory
=
"";
/*
* --------------------
*
Method to copy the values from another object into this object.
*/
public
void getJS_ProjAssist_Project_BO
(
JS_ProjAssist_Project_BO
parmJS_ProjAssist_Project_BO
) {
/*
* Use
the method of the super-class to copy the Common
Attributes,
* StatusCode and StatusMsg.
*/
super.getJSBS_BO(parmJS_ProjAssist_Project_BO
);
ProjectCode
=
parmJS_ProjAssist_Project_BO
.ProjectCode;
LanguageCode
= parmJS_ProjAssist_Project_BO
.LanguageCode;
TargetDirectory
= parmJS_ProjAssist_Project_BO
.TargetDirectory;
}
/*
* --------------------
*
Method to compare two Business Objects and check if
* at
least one of the Business Attributes is different. */
public
boolean isDifferent(
JS_ProjAssist_Project_BO
parmJS_ProjAssist_Project_BO
) {
if
(this.ProjectCode.compareTo(parmJS_ProjAssist_Project_BO
.ProjectCode)
!=
0) return
true;
if
(this.LanguageCode.compareTo(parmJS_ProjAssist_Project_BO
.LanguageCode)
!=
0) return
true;
if
(this.TargetDirectory.compareTo(parmJS_ProjAssist_Project_BO
.TargetDirectory)
!=
0) return
true;
return
false;
}
}