Class Command

java.lang.Object
overit.geocall.da.Command
All Implemented Interfaces:
Serializable

public class Command extends Object implements Serializable
Class used to define a custom command to be used within a DAO. It is defined by indicating a name, a Command.Type and defining if it is a command that operates on the basis of the primary key.
See Also:
  • Field Details

    • _name

      protected String _name
    • _type

      protected Command.Type _type
    • _forPk

      protected boolean _forPk
  • Constructor Details

    • Command

      public Command(String name, Command.Type t, boolean forPk)
      Creates a new Command instance
      Parameters:
      name - The string that represents the name of the command
      t - The type of the command, one of the elements of the enumeration Command.Type
      forPk - boolean that determines if the command is a command that works on the primary key
  • Method Details

    • getType

      public Command.Type getType()
      Returns the type of this command
      Returns:
      One of the elements of the enumeration Command.Type
    • getName

      public String getName()
      Returns the name of this command
      Returns:
      The string that represents the name
    • isForPk

      public boolean isForPk()
      Check if the command is a command that works on the primary key
      Returns:
      true if the command is a command that works on the primary key, false otherwise
    • toString

      public String toString()
      Returns the name of this command
      Overrides:
      toString in class Object
      Returns:
      The string that represents the name