public abstract class ComplexScheduledOrderProperty
extends java.lang.Object
remapValueFromScheduledOrder
and remapValueFromUserInputFields
to facilitate the mapping.
remapValueFromUserInputFields
is called when the fields
on the user interface(JHTML) need to be mapped to the property in the repository.
The method normally gets called before it is about to create, update
and delete an item (ScheduledOrder) in the repository. remapValueFromScheduledOrder
is called when the property in the repository needs to be mapped to the fields on the
user interface(JHTML). The method is normally called before it is about to access the detail
scheduledOrder data. It also provides the method verifyUserInputFields
to verify the validity
of the user inputs. All these methods are abstarct and left for the subclasses to implement.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Constructor and Description |
---|
ComplexScheduledOrderProperty() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getComplexScheduledOrderPropertyValue()
This method returns the value of the property that this class represents from the
scheduled order repository.
|
ScheduledOrderHandler |
getFormHandler()
returns the property FormHandler
|
java.lang.String |
getScheduledOrderPropertyName()
returns the property ScheduledOrderPropertyName
|
java.lang.Object |
getUserInputField(java.lang.String pUserInputFieldName)
Get the user input value based on the input field name
|
java.lang.String[] |
getUserInputFieldNames()
returns the property UserInputFieldNames.
|
java.util.Map |
getUserInputFields()
returns the property UserInputFields
|
abstract void |
initializeUserInputFields()
This method initializes all the user input fields that this property represents
|
abstract void |
remapValueFromScheduledOrder(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method maps the property that this class represents in the repository
to the user inputs.
|
abstract void |
remapValueFromUserInputFields(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method maps the user inputs to the property that this class represents
in the repository.
|
void |
setFormHandler(ScheduledOrderHandler pFormHandler)
set the property FormHandler
|
void |
setScheduledOrderPropertyName(java.lang.String pScheduledOrderPropertyName)
set the property ScheduledOrderPropertyName
|
void |
setUserInputField(java.lang.String pUserInputFieldName,
java.lang.Object pUserInputFieldValue)
Set the user input into the UserInputPropertyNames property
|
void |
setUserInputFieldNames(java.lang.String[] pUserInputFieldNames)
set the property UserInputFieldNames
|
void |
setUserInputFields(java.util.Map pUserInputFields)
set the property UserInputFields
|
abstract void |
verifyUserInputFields(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method verifies all the values of the user inputs.
|
public void setFormHandler(ScheduledOrderHandler pFormHandler)
pFormHandler
- the value to set for property FormHandlerpublic ScheduledOrderHandler getFormHandler()
public void setScheduledOrderPropertyName(java.lang.String pScheduledOrderPropertyName)
pScheduledOrderPropertyName
- the value to set for property ScheduledOrderPropertyNamepublic java.lang.String getScheduledOrderPropertyName()
public void setUserInputFields(java.util.Map pUserInputFields)
pUserInputFields
- the value to set for property UserInputFieldspublic java.util.Map getUserInputFields()
public void setUserInputFieldNames(java.lang.String[] pUserInputFieldNames)
pUserInputFieldNames
- the value to set for property UserInputFieldNamespublic java.lang.String[] getUserInputFieldNames()
public void setUserInputField(java.lang.String pUserInputFieldName, java.lang.Object pUserInputFieldValue)
pUserInputFieldName
- The field namepUserInputFieldValue
- The field valuepublic java.lang.Object getUserInputField(java.lang.String pUserInputFieldName)
pUserInputFieldName
- The user input field namepublic abstract void verifyUserInputFields(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the servlet's requestpResponse
- the servlet's responsepublic abstract void remapValueFromScheduledOrder(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the servlet's requestpResponse
- the servlet's responsepublic abstract void remapValueFromUserInputFields(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the servlet's requestpResponse
- the servlet's responsepublic abstract void initializeUserInputFields()
public java.lang.Object getComplexScheduledOrderPropertyValue()