|
Index of Basic knowledge for developing Fat-Clients with Java |
|
Last
revision of this document: |
This
is document contains the code for Class JSBS_BO.
For easy 'cut and
paste' ;-)
For
an overview of the idea of Business Objects please refer to Using
Business Objects to handle data-storage and -retrieval .
For
an explanation how the variables in this object contribute to produce
a change-history, please refer to Common
Attributes for all database-tables .
package
js_base.bo;
import
java.sql.*;
import
js_base.dba.JSBS_DBA;
/**
*
* @author kurt@javascout.biz
*
@date 2006-06-22
*
* @description
*
Base-Class for Business Objects.
* This
class can be inherited by Business Objects designed for a specific
project.
*
* Preface:
* Usually a
Business Object is associated with a leading
database-table.
* E.g.: a Business Object with an
'Invoice' is associated with
* the
database-table 'InvoiceHeader'.
* Therefore, the
variables ObjectID, DataSetID, CreatedBy, CreatedAt,
* ChangedBy,
ChangedAt, ValidFrom and ValidTill
* contain the
values from the associated record of the leading database-table.
*
* The
differentiation between ObjectID and DataSetId allows to document the
change of
* attributes in
database-records.
* ObjectID contains a
'surrogate' that was the unique key (primary key) of the
database-record
* at the time when a Business
Object with a new 'user-key' was initially inserted.
* DataSetID
contains the 'surrogate' of the database-record with the actually
valid values.
*
* The 'user-key' is a
unique identifier which can be seen by a user.
* It
has to be defined within the Business Objects designed for a specific
application
* and usually consists of one or more
task-specific variables.
*
* @change-log
*
when who why
*
--------------------------------------------------------
*
*/
public
class JSBS_BO
{
/*
*
VARIABLES
* ------------------- */
/*
*
ObjectID – see description at 'Preface' in the initial comment.
*/