com.adhi.adhij
Class ValueObject

java.lang.Object
  extended by com.adhi.adhij.ValueObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public abstract class ValueObject
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

The value objects holds the attributes of a business object. Value objects are always contained within a business object. Value objects are passed into a data access object for database operation. These are passed to the clients of business objects and services when they need information or state about a business object.

Author:
DKRISHNA
See Also:
Serialized Form

Constructor Summary
ValueObject()
           
 
Method Summary
 java.lang.Object clone(ValueObject vo)
          returns the cloned value object
 int compareTo(java.lang.Object obj)
          the compareto method for object comparison
 boolean equals(java.lang.Object arg0)
           
 long getId()
          returns the object id
 short getMode()
          returns the mode
 java.lang.String getName()
          returns the object name
 void setId(long l)
          sets the object id
 void setMode(short s)
          sets the mode
 void setName(java.lang.String string)
          sets the object name
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueObject

public ValueObject()
Method Detail

getMode

public short getMode()
returns the mode

Returns:
the mode

setMode

public void setMode(short s)
sets the mode

Parameters:
s - the mode

getId

public long getId()
returns the object id

Returns:
the object id

getName

public java.lang.String getName()
returns the object name

Returns:
the object name

setId

public void setId(long l)
sets the object id

Parameters:
l - the object id

setName

public void setName(java.lang.String string)
sets the object name

Parameters:
string - the object name

equals

public boolean equals(java.lang.Object arg0)
Overrides:
equals in class java.lang.Object

clone

public java.lang.Object clone(ValueObject vo)
returns the cloned value object

Parameters:
vo - the cloned value object
Returns:
the cloned value object

compareTo

public int compareTo(java.lang.Object obj)
the compareto method for object comparison

Specified by:
compareTo in interface java.lang.Comparable