|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.order.scheduled.ComplexScheduledOrderProperty atg.commerce.order.scheduled.DateProperty
public class DateProperty
This class represents the date(startDate,endDate) property in the scheduledOrder item descriptor. The date property will be a java.sql.Timestamp type. The property is mapped to the fields on the user interface which are specific for this property such as the year, month, date, hour, minute, AM or PM fields. It takes in those field values and construct a Timestamp object, and vice versa.
atg.b2bcommerce.order.scheduled.ComplexScheduledOrderProperty
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
DateProperty()
|
Method Summary | |
---|---|
protected java.sql.Timestamp |
createDate(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method creates a Timestamp date from the user inputs. |
protected void |
initializeAmPmInputField()
This method initializes the user input values for the AMPM input. |
protected void |
initializeDayInputField()
This method initializes the user input values for the date input. |
protected void |
initializeHourInputField()
This method initializes the user input values for the hour input. |
protected void |
initializeMinuteInputField()
This method initializes the user input values for the minute input. |
protected void |
initializeModeInputField()
This method initializes the user input values for the MODE input. |
protected void |
initializeMonthInputField()
This method initializes the user input values for the month input. |
protected void |
initializeSecondInputField()
This method initializes the user input values for the second input. |
protected void |
initializeUserInputField(java.lang.String pUserInputFieldName)
This method initializes the user input values for a particular user input. |
void |
initializeUserInputFields()
This method initializes all the user inputs. |
protected void |
initializeYearInputField()
This method initializes the user input values for the year input. |
protected void |
parseDayField(java.sql.Timestamp ts,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method parses the date property of a Timestamp value. |
protected void |
parseDEHourField(java.sql.Timestamp ts,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method parses the hour property of a Timestamp value when the user's locale is de_DE. |
protected void |
parseField(java.sql.Timestamp ts,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method parses a Timestamp value. |
protected void |
parseHourField(java.sql.Timestamp ts,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method parses the hour property of a Timestamp value. |
protected void |
parseMinuteField(java.sql.Timestamp ts,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method parses the minute property of a Timestamp value. |
protected void |
parseMonthField(java.sql.Timestamp ts,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method parses the month property of a Timestamp value. |
protected void |
parseNullField(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method parses a null Timestamp value in case that the user does not have a date property value. |
protected void |
parseOtherHourField(java.sql.Timestamp ts,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method parses the hour property of a Timestamp value when the user's locale is other than en_US and de_DE. |
protected void |
parseSecondField(java.sql.Timestamp ts,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method parses the second property of a Timestamp value. |
protected void |
parseUSHourField(java.sql.Timestamp ts,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method parses the hour property of a Timestamp value when the user's locale is en_US. |
protected void |
parseYearField(java.sql.Timestamp ts,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method parses the year property of a Timestamp value. |
void |
remapValueFromScheduledOrder(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method maps the date property that this class represents in the scheduleOrder repository to the user inputs. |
void |
remapValueFromUserInputFields(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method maps the user inputs to the date property that this class represents in the scheduledOrder repository. |
protected void |
setDayField(java.util.Calendar c,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method sets the day property for a Calendar date. |
protected void |
setDEHourField(java.util.Calendar c,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method sets the hour property for a Calendar date, when the user's locale is de_DE It is a helper method for createDate method. |
protected void |
setHourField(java.util.Calendar c,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method sets the hour property for a Calendar date, depending on the current user's locale It is a helper method for createDate method. |
protected void |
setMinuteField(java.util.Calendar c,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method sets the minute property for a Calendar date. |
protected void |
setMonthField(java.util.Calendar c,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method sets the month property for a Calendar date. |
protected void |
setOtherHourField(java.util.Calendar c,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method sets the hour property for a Calendar date, when the user's locale is other than en_US and de_DE It is a helper method for createDate method. |
protected void |
setSecondField(java.util.Calendar c,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method sets the second property for a Calendar date. |
protected void |
setUSHourField(java.util.Calendar c,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method sets the hour property for a Calendar date, when the user's locale is en_US It is a helper method for createDate method. |
protected void |
setYearField(java.util.Calendar c,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method sets the year property for a Calendar date. |
protected void |
verifyDayInputField(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method verifies the day input field. |
protected void |
verifyHourInputField(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method verifies the hour input field. |
protected void |
verifyMinuteInputField(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method verifies the minute input field. |
protected void |
verifyModeInputField(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method verifies the mode of the date property. |
protected void |
verifyMonthInputField(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method verifies the month input field. |
protected void |
verifySecondInputField(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method verifies the second input field. |
void |
verifyUserInputFields(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method verifies the values of the user input. |
protected void |
verifyYearInputField(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method verifies the year input field. |
Methods inherited from class atg.commerce.order.scheduled.ComplexScheduledOrderProperty |
---|
getComplexScheduledOrderPropertyValue, getFormHandler, getScheduledOrderPropertyName, getUserInputField, getUserInputFieldNames, getUserInputFields, setFormHandler, setScheduledOrderPropertyName, setUserInputField, setUserInputFieldNames, setUserInputFields |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public DateProperty()
Method Detail |
---|
public void verifyUserInputFields(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
verifyUserInputFields
in class ComplexScheduledOrderProperty
pRequest
- the servlet's requestpResponse
- the servlet's responseprotected void verifyModeInputField(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the servlet's requestpResponse
- the servlet's responseprotected void verifyYearInputField(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the servlet's requestpResponse
- the servlet's responseprotected void verifyMonthInputField(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the servlet's requestpResponse
- the servlet's responseprotected void verifyDayInputField(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the servlet's requestpResponse
- the servlet's responseprotected void verifyHourInputField(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the servlet's requestpResponse
- the servlet's responseprotected void verifyMinuteInputField(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the servlet's requestpResponse
- the servlet's responseprotected void verifySecondInputField(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the servlet's requestpResponse
- the servlet's responsepublic void remapValueFromScheduledOrder(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
remapValueFromScheduledOrder
in class ComplexScheduledOrderProperty
pRequest
- the servlet's requestpResponse
- the servlet's responseprotected void parseNullField(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
protected void parseField(java.sql.Timestamp ts, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
remapValueFromScheduledOrder
to remap the property value
to the user inputs.
ts
- a Timestamp valueprotected void parseYearField(java.sql.Timestamp ts, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
ParseField
method.
ts
- a Timestamp valueprotected void parseMonthField(java.sql.Timestamp ts, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
ParseField
method.
ts
- a Timestamp valueprotected void parseDayField(java.sql.Timestamp ts, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
ParseField
method.
ts
- a Timestamp valueprotected void parseHourField(java.sql.Timestamp ts, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
ParseField
method.
ts
- a Timestamp valueprotected void parseUSHourField(java.sql.Timestamp ts, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
ts
- a Timestamp valueprotected void parseDEHourField(java.sql.Timestamp ts, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
ts
- a Timestamp valueprotected void parseOtherHourField(java.sql.Timestamp ts, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
ts
- a Timestamp valueprotected void parseMinuteField(java.sql.Timestamp ts, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
ParseField
method.
ts
- a Timestamp valueprotected void parseSecondField(java.sql.Timestamp ts, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
ParseField
method.
ts
- a Timestamp valuepublic void remapValueFromUserInputFields(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
remapValueFromUserInputFields
in class ComplexScheduledOrderProperty
pRequest
- the servlet's requestpResponse
- the servlet's responseprotected java.sql.Timestamp createDate(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
protected void setYearField(java.util.Calendar c, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
createDate
method.
c
- a Calendar dateprotected void setMonthField(java.util.Calendar c, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
createDate
method.
c
- a Calendar dateprotected void setDayField(java.util.Calendar c, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
createDate
method.
c
- a Calendar dateprotected void setHourField(java.util.Calendar c, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
createDate
method.
c
- a Calendar dateprotected void setUSHourField(java.util.Calendar c, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
createDate
method.
c
- a Calendar dateprotected void setDEHourField(java.util.Calendar c, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
createDate
method.
c
- a Calendar dateprotected void setOtherHourField(java.util.Calendar c, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
createDate
method.
c
- a Calendar dateprotected void setMinuteField(java.util.Calendar c, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
createDate
method.
c
- a Calendar dateprotected void setSecondField(java.util.Calendar c, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
createDate
method.
c
- a Calendar datepublic void initializeUserInputFields()
initializeUserInputFields
in class ComplexScheduledOrderProperty
protected void initializeUserInputField(java.lang.String pUserInputFieldName)
pUserInputFieldName
- the user input field nameprotected void initializeYearInputField()
protected void initializeMonthInputField()
protected void initializeDayInputField()
protected void initializeHourInputField()
protected void initializeMinuteInputField()
protected void initializeSecondInputField()
protected void initializeAmPmInputField()
protected void initializeModeInputField()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |