|
Letzte
Bearbeitung dieses Dokuments: |
Code
Erklärungen
und Anwendungsbeispiele
Verwandte
Dokumentation
package
js_base.bo;/*
*
de:
* Package mit den Klassen für die Serialization
eine Objekts dieser Klasse.
* Serialization ist notwendig um
die Werte des Objektes zwischen einem Java
* Application
Server (JAS) und einem Heavyweight-Client übertragen zu
können.
* en:
* Package with the
classes to serialize an object of this class.
*
Serialization is neccessary to exchange the values of the object
between a
* Java Application Server (JAS) and a
Heavyweight-Client. */import
java.io.Serializable;
/**
*
* @author kurt[at]javascout(dot)biz
* @date
2013-02-05
*
* @description
* de:
*
Business Object (BO) für die 'PDFP'
* (Physical Device
Fingerprint / Eindeutige Identifizierung eines Endgerätes). *
en:
* Business Object (BO) for the 'PDFP'
*
(Physical Device Fingerprint / Unique identification of a user
equipment).
*
* de:
* Die Werte dieses BO
halten die eindeutige Identifizierung des Endgerätes über
* den 'Hostname' bzw. alternativ die TCP/IP-Adresse.
*
Weiters enthält dieses BO Attribute die von einem
Anwendungsprogramm individuell
* verwendet werden können.
*
* Die jeweiligen Werte werden individuell für jedes
Endgerät abgespeichert.
*
* Für weitere
Informationen sehen Sie bitte bei den Beschreibungen bei den
Deklarationen
* der Variablen nach.
*
*
Anwender-bekannter-Schlüssel: Hostname.
*
*
en: * The
values of this BO keep the unique identification of a user
equipment.
* The identification is done by the 'hostname' or
the TCP/IP-address if the hostname can not
* be
determined.
* Furthermore, this BO contains attributes that
can be individually used by an application
*
program.
*
* The values are kept individually
for each user equipment.
*
* Please see the
description at the variables-declaration.
*
*
User-Key: Hostname.
*
* @change-log
*
when who why
*
--------------------------------------------------------
*
*/public
class JSBS_PDFP_BO
extends
JSBS_BO implements Serializable
{/*
*
de:
* Identifikation dieses BO als Parameter; unter diesem
'ParameterName' wird dieses BO
* eindeutig zur DB-Tabelle
'Parameter' zugeordnet. *
en:
* Parameter-Identifier; under this 'ParameterName' this
BO is mapped to the DB-table
* 'Parameter'.
*/ protected
static final String
CONST_PARAMETER_NAME
=
"PDFP";/*
*
de:
* Eindeutige Identifikation des Endgerätes.
*
Der Hostname ist bei einer korrekten Netzwerkinstallation innerhalb
eines Netzwerkes
* nur an ein Endgerät vergeben.
*
Ist der Hostname nicht ermittelbar kann alternativ die TCPIP_Address
als eindeutige
* Identifikation verwendet werden.
*
en: *
Unique identification of the user equipment.
* The Hostname
is assigned to only one user equipment if the the installation of
the
* network was performed correctly.
* If
the Hostname can not be derived, the TCPIP_Address can be used as
unique
* identification alternatively. */ public
String
Hostname
=
"";/*
*
de:
* TCP/IP-Adresse des Endgerätes.
*
Alternative eindeutige Identifizierung des Endgerätes wenn der
Hostname nicht ermittelt
* werden kann.
* en: *
TCP/IP-address of the user equipment.
* Alternative unique
identification of the user equipment if the hostname can not be
derived. */ public
String
TCPIP_Address
=
"";/*
*
de: Mehrfach verwendbare Variable. *
en: Multiple useable variables. */ public
String
Value06
=
""; public
String
Value07
=
""; public
String
Value08
=
""; public
String
Value09
=
""; public
String
Value10
=
""; public
String
Value11
=
""; public
String
Value12
=
""; public
String
Value13
=
""; public
String
Value14
=
""; public
String
Value15
=
""; public
String
Value16
=
""; public
String
Value17
=
""; public
String
Value18
=
""; public
String
Value19
=
""; public
String
Value20
=
"";/*
* --------------------
*
de: METHODE zum Kopieren der Werte eines anderen Objekts in dieses
Objekt. *
en: METHOD to copy the values from another object into this object.
*/
public
void copyFromJSBS_PDFP_BO
(JSBS_PDFP_BO parmJSBS_PDFP_BO) {/*
*
de:
* Methode der Superklasse verwenden um die Allgemeinen
Attribute (Common Attributes),
* StatusCode und StatusMsg zu
kopieren.
* en: * Use
the method of the super-class to copy the Common
Attributes,
* StatusCode and StatusMsg.
*/ super.getJSBS_BO(parmJSBS_PDFP_BO);
Hostname
=
parmJSBS_PDFP_BO.Hostname;
TCPIP_Address
=
parmJSBS_PDFP_BO.TCPIP_Address;
Value06
=
parmJSBS_PDFP_BO.Value06;
Value07
=
parmJSBS_PDFP_BO.Value07;
Value08
=
parmJSBS_PDFP_BO.Value08;
Value09
=
parmJSBS_PDFP_BO.Value09;
Value10
=
parmJSBS_PDFP_BO.Value10;
Value11
=
parmJSBS_PDFP_BO.Value11;
Value12
=
parmJSBS_PDFP_BO.Value12;
Value13
=
parmJSBS_PDFP_BO.Value13;
Value14
=
parmJSBS_PDFP_BO.Value14;
Value15
=
parmJSBS_PDFP_BO.Value15;
Value16
=
parmJSBS_PDFP_BO.Value16;
Value17
=
parmJSBS_PDFP_BO.Value17;
Value18
=
parmJSBS_PDFP_BO.Value18;
Value19
=
parmJSBS_PDFP_BO.Value19;
Value20
=
parmJSBS_PDFP_BO.Value20;
}
/*
* --------------------
*
de:
* METHODE zum Vergleichen von zwei Business Objects und
zum Prüfen
* ob mindestens einer der geschäftsbezogenen
Werte unterschiedlich ist.
* en: *
METHOD to compare two Business Objects and check if
* at
least one of the Business Values is different. */
public
boolean isDifferent(JSBS_PDFP_BO
parmJSBS_PDFP_BO) {/*
* de:
* Vergleich
zweier Werte der Klasse 'String';
* Zuerst prüfen,
ob eine der beiden Variablen 'null' ist.
* en:
* Comparison
of two values of class 'String';
* verify first if one
of both varialbe is 'null'. */
if
((this.Hostname
==
null)
|| (parmJSBS_PDFP_BO.Hostname
==
null))
{/*
* de:
* Prüfen,
ob beide Variablen 'null' sind; dann ist der Vergleich
'erfüllt'.
* en:
* Verify if both
variables are 'null'; this means the comparison is 'fulfilled'.
*/
if
((this.Hostname
==
null)
&& (parmJSBS_PDFP_BO.Hostname
==
null))
{/*
* de:
* Beide
Variablen sind 'null' - damit ist der Vergleich
'erfüllt'.
* en:
* Both variables
are 'null' – this means the comparison is 'fulfilled'.
*/
} else
{/*
* de:
* Logischerweise
kann jetzt nur eine der beiden Variablen 'null' sein;
* damit
gelten die beiden Variablen als 'verschieden.
* en:
* Logically, now only one of both variables can be
'null'; this means
* both variables are 'different'.
*/
return
true;
}
} else
{/*
* de:
* Keine
der beiden Variablen ist 'null';
* damit können
die Werte der Variablen verglichen werden.
* en:
* None
of both variables is 'null';
* this allows to compare
the values of both variables. */
if
(this.Hostname.compareTo(
parmJSBS_PDFP_BO.Hostname)
!= 0) return
true;
}/* ----------
*/
if
((this.TCPIP_Address
==
null)
|| (parmJSBS_PDFP_BO.TCPIP_Address
==
null))
{
if
((this.TCPIP_Address
==
null)
&& (parmJSBS_PDFP_BO.TCPIP_Address
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.TCPIP_Address.compareTo(
parmJSBS_PDFP_BO.TCPIP_Address)
!= 0) return
true;
}/* ----------
*/
if
((this.Value06
==
null)
|| (parmJSBS_PDFP_BO.Value06
==
null))
{
if
((this.Value06
==
null)
&& (parmJSBS_PDFP_BO.Value06
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value06.compareTo(
parmJSBS_PDFP_BO.Value06)
!= 0) return
true;
}/* ----------
*/
if
((this.Value07
==
null)
|| (parmJSBS_PDFP_BO.Value07
==
null))
{
if
((this.Value07
==
null)
&& (parmJSBS_PDFP_BO.Value07
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value07.compareTo(
parmJSBS_PDFP_BO.Value07)
!= 0) return
true;
}/* ----------
*/
if
((this.Value08
==
null)
|| (parmJSBS_PDFP_BO.Value08
==
null))
{
if
((this.Value08
==
null)
&& (parmJSBS_PDFP_BO.Value08
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value08.compareTo(
parmJSBS_PDFP_BO.Value08)
!= 0) return
true;
}/* ----------
*/
if
((this.Value09
==
null)
|| (parmJSBS_PDFP_BO.Value09
==
null))
{
if
((this.Value09
==
null)
&& (parmJSBS_PDFP_BO.Value09
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value09.compareTo(
parmJSBS_PDFP_BO.Value09)
!= 0) return
true;
}/* ----------
*/
if
((this.Value10
==
null)
|| (parmJSBS_PDFP_BO.Value10
==
null))
{
if
((this.Value10
==
null)
&& (parmJSBS_PDFP_BO.Value10
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value10.compareTo(
parmJSBS_PDFP_BO.Value10)
!= 0) return
true;
}/* ----------
*/
if
((this.Value11
==
null)
|| (parmJSBS_PDFP_BO.Value11
==
null))
{
if
((this.Value11
==
null)
&& (parmJSBS_PDFP_BO.Value11
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value11.compareTo(
parmJSBS_PDFP_BO.Value11)
!= 0) return
true;
}/* ----------
*/
if
((this.Value12
==
null)
|| (parmJSBS_PDFP_BO.Value12
==
null))
{
if
((this.Value12
==
null)
&& (parmJSBS_PDFP_BO.Value12
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value12.compareTo(
parmJSBS_PDFP_BO.Value12)
!= 0) return
true;
}/* ----------
*/
if
((this.Value13
==
null)
|| (parmJSBS_PDFP_BO.Value13
==
null))
{
if
((this.Value13
==
null)
&& (parmJSBS_PDFP_BO.Value13
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value13.compareTo(
parmJSBS_PDFP_BO.Value13)
!= 0) return
true;
}/* ----------
*/
if
((this.Value14
==
null)
|| (parmJSBS_PDFP_BO.Value14
==
null))
{
if
((this.Value14
==
null)
&& (parmJSBS_PDFP_BO.Value14
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value14.compareTo(
parmJSBS_PDFP_BO.Value14)
!= 0) return
true;
}/* ----------
*/
if
((this.Value15
==
null)
|| (parmJSBS_PDFP_BO.Value15
==
null))
{
if
((this.Value15
==
null)
&& (parmJSBS_PDFP_BO.Value15
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value15.compareTo(
parmJSBS_PDFP_BO.Value15)
!= 0) return
true;
}/* ----------
*/
if
((this.Value16
==
null)
|| (parmJSBS_PDFP_BO.Value16
==
null))
{
if
((this.Value16
==
null)
&& (parmJSBS_PDFP_BO.Value16
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value16.compareTo(
parmJSBS_PDFP_BO.Value16)
!= 0) return
true;
}/* ----------
*/
if
((this.Value17
==
null)
|| (parmJSBS_PDFP_BO.Value17
==
null))
{
if
((this.Value17
==
null)
&& (parmJSBS_PDFP_BO.Value17
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value17.compareTo(
parmJSBS_PDFP_BO.Value17)
!= 0) return
true;
}/* ----------
*/
if
((this.Value18
==
null)
|| (parmJSBS_PDFP_BO.Value18
==
null))
{
if
((this.Value18
==
null)
&& (parmJSBS_PDFP_BO.Value18
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value18.compareTo(
parmJSBS_PDFP_BO.Value18)
!= 0) return
true;
}/* ----------
*/
if
((this.Value19
==
null)
|| (parmJSBS_PDFP_BO.Value19
==
null))
{
if
((this.Value19
==
null)
&& (parmJSBS_PDFP_BO.Value19
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value19.compareTo(
parmJSBS_PDFP_BO.Value19)
!= 0) return
true;
}/* ----------
*/
if
((this.Value20
==
null)
|| (parmJSBS_PDFP_BO.Value20
==
null))
{
if
((this.Value20
==
null)
&& (parmJSBS_PDFP_BO.Value20
==
null))
{
} else
{
return
true;
}
} else
{
if
(this.Value20.compareTo(
parmJSBS_PDFP_BO.Value20)
!= 0) return
true;
}/*
de: Keine Unterschiede gefunden.
* en: No difference found.
*/ return
false;
}
}
xxx
|
Dokument |
Inhalt |
|
Dieser
Leitfaden enthält die notwendigen Tätigkeiten für
die Entwicklung eines StartFrame (auch als Command-Center
bekannt). |