|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.adhi.adhij.ValueObject
public abstract class ValueObject
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.
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 |
---|
public ValueObject()
Method Detail |
---|
public short getMode()
public void setMode(short s)
s
- the modepublic long getId()
public java.lang.String getName()
public void setId(long l)
l
- the object idpublic void setName(java.lang.String string)
string
- the object namepublic boolean equals(java.lang.Object arg0)
equals
in class java.lang.Object
public java.lang.Object clone(ValueObject vo)
vo
- the cloned value object
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |