dist1.acb.common.transport
Class Id

java.lang.Object
  extended bydist1.acb.common.transport.Id
All Implemented Interfaces:
java.io.Serializable

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

Id for requests and corresponded responses

Version:
$Revision: 1.7 $
Author:
Alexander Stasiv
See Also:
Serialized Form

Method Summary
static Id createStartId()
          Returns new Id object with 'start ID'
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 java.lang.Integer getId()
          Getter for attribute id
 int getIntValue()
          Returns integer value of the ID.
 Id getNext()
          Returns Id object that is next Id after the current
 boolean isNext(Id id)
          Checks if the provided id is exactly next Id after the current
 void setId(java.lang.Integer id)
          Setter for attribute id
 java.lang.String toString()
          Returns string with description of the object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createStartId

public static Id createStartId()
Returns new Id object with 'start ID'

Returns:
New Id objcet

setId

public void setId(java.lang.Integer id)
Setter for attribute id

Parameters:
id - A new value

getId

public java.lang.Integer getId()
Getter for attribute id

Returns:
A current value

getIntValue

public int getIntValue()
Returns integer value of the ID. (It is back door for using in DBExplorer only!)

Returns:
Description

getNext

public Id getNext()
Returns Id object that is next Id after the current

Returns:
New Id object

isNext

public boolean isNext(Id id)
Checks if the provided id is exactly next Id after the current

Parameters:
id - An Id object
Returns:
true if the provided id is exactly next Id after current; false otherwise

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

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 string with description of the object

Returns:
Description


Copyright © 2004 Phoenix Team (CMU/AIT). All Rights Reserved.