com.ibm.commerce.promotion.facade.server.transform.validation.commands

Class PromotionElementNVPValidationCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.TargetableCommandImpl
      • com.ibm.websphere.command.CacheableCommandImpl
        • com.ibm.commerce.promotion.facade.server.transform.validation.commands.PromotionElementNVPValidationCmdImpl
  • All Implemented Interfaces:
    PromotionElementNVPValidationCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
    Direct Known Subclasses:
    PromotionElementNVPNumberValidationCmdImpl


    public class PromotionElementNVPValidationCmdImpl
    extends com.ibm.websphere.command.CacheableCommandImpl
    implements PromotionElementNVPValidationCmd
    This command checks a NVP value and throws exception if the value is null or an empty string.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright notice field.
      • Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl

        LOCAL
      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean isReadyToCallExecute()
      This method checks if name and value are null or not.
      void performExecute()
      This method checks a NVP value and throws exception if the value is null or an empty string.
      void reset()
      This method sets name and value to empty strings.
      void setName(java.lang.String sName)
      Sets the name of the value to be validated.
      void setValue(java.lang.String sValue)
      Sets the value to be validated.
      • Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl

        execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
      • Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl

        getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.websphere.command.Command

        execute
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PromotionElementNVPValidationCmdImpl

        public PromotionElementNVPValidationCmdImpl()
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method checks if name and value are null or not.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Specified by:
        isReadyToCallExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Returns:
        The boolean value true will be returned if the name and value are not null
        See Also:
        Command.isReadyToCallExecute()
      • reset

        public void reset()
        This method sets name and value to empty strings.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class com.ibm.websphere.command.CacheableCommandImpl
        See Also:
        Command.reset()
      • setName

        public void setName(java.lang.String sName)
        Sets the name of the value to be validated.
        Specified by:
        setName in interface PromotionElementNVPValidationCmd
        Parameters:
        sName - The name of the value to be validated.
      • setValue

        public void setValue(java.lang.String sValue)
        Sets the value to be validated.
        Specified by:
        setValue in interface PromotionElementNVPValidationCmd
        Parameters:
        sValue - The value to be validated.
      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method checks a NVP value and throws exception if the value is null or an empty string.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Throws:
        java.lang.Exception
        See Also:
        TargetableCommand.performExecute()