ro.nextreports.engine.queryexec
Class IdName

Package class diagram package IdName
java.lang.Object
  extended by ro.nextreports.engine.queryexec.IdName
All Implemented Interfaces:
java.io.Serializable

public class IdName
extends java.lang.Object
implements java.io.Serializable

This class is a pair of two objects : an id of the parameter that is used inside the query and a name of the parameter that is shown to the user at runtime selection

See Also:
Serialized Form

Constructor Summary
IdName()
          Create an IdName object
 
Method Summary
 boolean equals(java.lang.Object o)
          Equals
 java.io.Serializable getId()
          Get Id
 java.io.Serializable getName()
          Get Name
 int hashCode()
          Hash code value for this idname object
 void setId(java.io.Serializable id)
          Set Id
 void setName(java.io.Serializable name)
          Set name
 java.lang.String toString()
          Tostring method
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdName

public IdName()
Create an IdName object

Method Detail

getId

public java.io.Serializable getId()
Get Id

Returns:
Id

setId

public void setId(java.io.Serializable id)
Set Id

Parameters:
id - id

getName

public java.io.Serializable getName()
Get Name

Returns:
name

setName

public void setName(java.io.Serializable name)
Set name

Parameters:
name - name

equals

public boolean equals(java.lang.Object o)
Equals

Overrides:
equals in class java.lang.Object
Parameters:
o - idname object
Returns:
true if current idname object equals parameter idname object, false otherwise

hashCode

public int hashCode()
Hash code value for this idname object

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this idname object

toString

public java.lang.String toString()
Tostring method

Overrides:
toString in class java.lang.Object
Returns:
current object as a string