com.softwareag.tamino.db.api.command
Class TCommandItemPair

java.lang.Object
  extended by com.softwareag.tamino.db.api.command.TCommandItemPair

public class TCommandItemPair
extends java.lang.Object

TCommandItemPair is a tuple for holding a key/value pair within a Tamino command statement. The key can either represent a Tamino command or command parameter and the value directly referrs to its appropiate key.

Version:
$Revision: 1.6 $
Author:
Marcus Schreyer

Constructor Summary
TCommandItemPair(TCommandItem key, TCommandItem value)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 TCommandItem getKey()
          Gets the TCommandItem key instance.
 TCommandItem getValue()
          Gets the TCommandItem value instance.
 java.lang.String toString()
          Returns the string representation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TCommandItemPair

public TCommandItemPair(TCommandItem key,
                        TCommandItem value)
Constructor. Takes the item key/value pair.

Method Detail

getKey

public TCommandItem getKey()
Gets the TCommandItem key instance.


getValue

public TCommandItem getValue()
Gets the TCommandItem value instance.


equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. Overrides the Object.equals method. This comparison is only based on the command parameter key!

Overrides:
equals in class java.lang.Object
Parameters:
obj - - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

toString

public java.lang.String toString()
Returns the string representation.

Overrides:
toString in class java.lang.Object


Copyright (c) 2013 Software AG. All Rights Reserved.