com.ibm.commerce.contract.facade.server.commands

Class FetchContractCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.TargetableCommandImpl
      • com.ibm.websphere.command.CacheableCommandImpl
        • com.ibm.commerce.contract.facade.server.commands.FetchContractCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.contract.facade.server.commands.FetchContractCmd, 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


    public class FetchContractCmdImpl
    extends com.ibm.websphere.command.CacheableCommandImpl
    implements com.ibm.commerce.contract.facade.server.commands.FetchContractCmd
    The default implementation of the fetch Contract command. This implementation returns an empty list of contract.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl

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

        serialVersionUID
    • Constructor Summary

      Constructors 
      Constructor and Description
      FetchContractCmdImpl()
      Creates an instance of the fetch Contract command.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.List getContracts()
      This method returns a list of Contracts that result because of the fetch operation.
      ShowType getShow()
      This method returns the show verb response that represent the results of the fetch operation.
      boolean isReadyToCallExecute()
      This method returns whether the command has the get verb specified so it is ready to execute.
      void performExecute()
      This method executes the get expression.
      void reset()
      This method resets the instance variables so the command can be reused.
      void setGet(GetType getVerb)
      This method sets the get expression for the fetch operation.
      • 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
    • Constructor Detail

      • FetchContractCmdImpl

        public FetchContractCmdImpl()
        Creates an instance of the fetch Contract command.
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method returns whether the command has the get verb specified so it is ready to execute.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Specified by:
        isReadyToCallExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Returns:
        Whether the command can execute or not.
        See Also:
        Command.isReadyToCallExecute()
      • reset

        public void reset()
        This method resets the instance variables so the command can be reused.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class com.ibm.websphere.command.CacheableCommandImpl
        See Also:
        Command.reset()
      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method executes the get expression. This implementation returns an empty show response and list.
        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()
      • getShow

        public ShowType getShow()
        This method returns the show verb response that represent the results of the fetch operation.
        Specified by:
        getShow in interface com.ibm.commerce.contract.facade.server.commands.FetchContractCmd
        Returns:
        The show verb response.
        See Also:
        FetchContractCmd.getShow()
      • getContracts

        public java.util.List getContracts()
        This method returns a list of Contracts that result because of the fetch operation.
        Specified by:
        getContracts in interface com.ibm.commerce.contract.facade.server.commands.FetchContractCmd
        Returns:
        A list of Contracts that match the expression.
        See Also:
        FetchContractCmd.getContracts()
      • setGet

        public void setGet(GetType getVerb)
        This method sets the get expression for the fetch operation. This get expression can also include the paging information to base the results to show.
        Specified by:
        setGet in interface com.ibm.commerce.contract.facade.server.commands.FetchContractCmd
        Parameters:
        getVerb - The get expression.
        See Also:
        FetchContractCmd.setGet(com.ibm.commerce.oagis9.datatypes.GetType)