|
Version 4.10.0 | ||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
ConvertParam | Convert request parameters into common 'building block' objects. |
ConvertParamError | Instructs WEB4J how to respond to any errors found during parsing of raw user input into 'base' types such as Integer, Date, and so on. |
MessageList | List of AppResponseMessage objects to be shown to the user. |
Validator | Validate a field in a Model Object. |
Class Summary | |
---|---|
AppResponseMessage | Informative message presented to the end user. |
Check | Returns commonly needed Validator objects. |
Code | An item in a code table. |
ConvertParamImpl | Default implementation of ConvertParam . |
DateTime | Building block class for an immutable date-time, with no time zone. |
Decimal | Represent an immutable number, using a natural, compact syntax. |
Id | Building block class for identifiers. |
MessageListImpl | General implementation of MessageList . |
ModelFromRequest | Parse a set of request parameters into a Model Object. |
ModelUtil | Collected utilities for overriding Object.toString() , Object.equals(java.lang.Object) ,
and Object.hashCode() , and implementing Comparable . |
Enum Summary | |
---|---|
DateTime.DayOverflow | Policy for treating 'day-of-the-month overflow' conditions encountered during some date calculations. |
DateTime.Unit | The seven parts of a DateTime object. |
ModelUtil.NullsGo | Define hows null items are treated in a comparison. |
Exception Summary | |
---|---|
AppException | Base class for most exceptions defined by WEB4J. |
BadRequestException | Thrown by ApplicationFirewall
when a problem with an incoming HTTP request is detected. |
ModelCtorException | Thrown when a Model Object (MO) cannot be constructed because of invalid constructor arguments. |
Tools for building business domain Model Objects (MOs).
The important things about Model Objects in WEB4J are :
ModelCtorException
if any problems occur
These items can be added to Model Objects, if desired, but they are never used by WEB4J :
Check
class, which provides commonly needed implementions of the Validator
interface.
When a problem occurs, an error message is added to ModelCtorException
, for
later presentation to the user.
It is highly recommended that all Model Objects override equals, hashCode, and
toString. (ModelUtil
can help you implement these methods.)
Thus, a Model Object must allow for all possible input when creating objects from both these sources.
WEB4J has two main tools for this task :
ModelFromRequest
, for building Model Objects from underlying request parameters
Db
, for building Model Objects from an underlying ResultSet
Both of these tools are simple to use because they use effective ordering conventions for data.
|
Version 4.10.0 | ||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |