com.ibm.etill.framework.payapi
Class LongValidationItem

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

public class LongValidationItem
extends ParameterValidationItem
implements PaymentAPIConstants

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

See Also:
ParameterValidationItem, ParameterTable

 
Constructor Summary
LongValidationItem(String parameterName, short returnCode, boolean nullValuesAllowed, Long minValue, Long maxValue)
          Constructor Initialize this LongValidationItem with the name of the parameter, the API failure return code, whether to allow null values, the minimum allowable Long value and the maximum allowable Long value.
 
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

LongValidationItem

public LongValidationItem(String parameterName,
                          short returnCode,
                          boolean nullValuesAllowed,
                          Long minValue,
                          Long maxValue)
Constructor Initialize this LongValidationItem with the name of the parameter, the API failure return code, whether to allow null values, the minimum allowable Long value and the maximum allowable Long value.
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
minValue - Long object that represents the minimum allowable value
maxValue - Long object that represents the maximum allowable value