> List of tutorials

Table of contents for this tutorial

Fat-Client-Development - Minimal structure for parameters

* 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:
2006-06-29

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

package js_base.structures;
 
import java.util.*;
/**
 
*
 * @author
kurt@javascout.biz
 * @date 2006-06-29
 *
 * @description
 *  Minimum Set of parameters
 *  needed for the methods responsible for database-operations
 *  The values of this class are a subset of JSBS_UniversalParameters
 *  to reduce the amount of data transferred between the Fat-Client and the
 *  methods for database-operations on the Java-Application-Server (JAS).
 
*
 * @change-log
 * when         who               why
 * --------------------------------------------------------
 *
 */

public class JSBS_MinimalParameters {
/*
 * Name of the user; the one he or she is registered at the user-table of the application */
    public String strUserName = "";
/*

 * Work-Date of the client.
 * This date can be different from the actual date on the Server
 * as it might be necessary to perform business-operations for the future or the past */

    
public GregorianCalendar calWorkDate;

/*
 * Language the user has chosen.
 * This variableinfluences the language of the content of Combo-Boxes or List-Boxes
 * if the content was prepared on the Server-side */

    
public String strLanguageCode = "";

/*
 * Preferred currency; this is the one chosen for display.
 * (only needed if the application should work with multi-currency) */

    
public String strPreferredCurrency = "";

/*
 * -------------------------------
 * Constructor of the class */
    public JSBS_MinimalParameters(JSBS_UniversalParameters parmJSBS_UniversalParameters) {
/*
 * Fill the values of this class from the UniversalParameters */
      
this
.strUserName = parmJSBS_UniversalParameters.strUserName ;

      this.calWorkDate = parmJSBS_UniversalParameters.calWorkDate ;
      this.strLanguageCode = parmJSBS_UniversalParameters.strLanguageCode ;
      this.strPreferredCurrency = parmJSBS_UniversalParameters.strPreferredCurrency ;
    }

}