com.ibm.etill.framework.payapi
Class TimestampValidationItem

java.lang.Object
  |
  +--com.ibm.etill.framework.payapi.ParameterValidationItem
        |
        +--com.ibm.etill.framework.payapi.TimestampValidationItem
All Implemented Interfaces:
FrameworkReturnCodes, com.ibm.etill.framework.payapi.validation.IParameterValidator, PaymentAPIConstants

public class TimestampValidationItem
extends ParameterValidationItem
implements PaymentAPIConstants

The TimestampValidationItem object is used to check that a parameter's value is a valid Timestamp parameter and insert that parameter and it's value into a given ParameterTable if the verification passed.

The passed in String parameter is converted to a long (using ISO8859_1 encoding) and then converted into a java Timestamp object.

See Also:
ParameterValidationItem, ParameterTable

 
Constructor Summary
TimestampValidationItem(String parameterName, short returnCode, boolean nullValuesAllowed)
          Constructor Initialize this TimestampValidationItem with the name of the parameter, the API failure return code, and whether to allow null values.
 
Methods inherited from class com.ibm.etill.framework.payapi.ParameterValidationItem
getAliasKey, validateAndInsert, validateAndInsert, validateAndInsert
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampValidationItem

public TimestampValidationItem(String parameterName,
                               short returnCode,
                               boolean nullValuesAllowed)
Constructor Initialize this TimestampValidationItem with the name of the parameter, the API failure return code, and whether to allow null values.
Parameters:
parameterName - name given to identify this parameter
returnCode - The return code to return in the API response if parameter fails validation.
nullValuesAllowed - true to allow null values; false otherwise