2004.04.29


com.jdc.app.mvc
Class Model

java.lang.Object
  |
  +--jdc.java.lang.Object
        |
        +--com.jdc.app.mvc.Model
Direct Known Subclasses:
HttpModel

public abstract class Model
extends Object

Model processes the user request, i.e. it is the Model in a Model-View-Controller (MVC) framework. Handles to the following implicit objects are provided to simpify usage by classes extending this class: session - The current user session object. user - The current user profile object

Version:
1.0
Author:
Jay Damon
See Also:
Serialized Form

Field Summary
protected  CurrencyHelper currency
          A Currency helper object.
protected  Locale locale
          The current Locale object.
protected  Application.Logger log
          An application logger object.
protected  DecimalHelper number
          A Number helper object.
protected  StringHelper string
          A String helper object.
protected  TimestampHelper timestamp
          A Timestamp helper object.
static String USER
          The identifier for the user object in the session.
static String VIEW
          The identifier for the view object in the request.
 
Constructor Summary
protected Model()
          Constructs a new Model object.
protected Model(Locale locale)
          Constructs a new Model object for the specified Locale.
 
Method Summary
 Locale getLocale()
          Returns the current Locale object.
 void setLocale(Locale locale)
          Sets (overrides) the current Locale to the specified user Locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER

public static final String USER
The identifier for the user object in the session.

See Also:
Constant Field Values

VIEW

public static final String VIEW
The identifier for the view object in the request.

See Also:
Constant Field Values

locale

protected Locale locale
The current Locale object.


string

protected final StringHelper string
A String helper object.


number

protected final DecimalHelper number
A Number helper object.


currency

protected final CurrencyHelper currency
A Currency helper object.


timestamp

protected final TimestampHelper timestamp
A Timestamp helper object.


log

protected final Application.Logger log
An application logger object.

Constructor Detail

Model

protected Model()
Constructs a new Model object.


Model

protected Model(Locale locale)
Constructs a new Model object for the specified Locale.

Method Detail

getLocale

public Locale getLocale()
Returns the current Locale object.

Returns:
The current Locale object.

setLocale

public void setLocale(Locale locale)
Sets (overrides) the current Locale to the specified user Locale.


2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.