My pages
Projects
Communities
java.net
java.net
>
Wiki
>
Javapedia
>
JavaBeans
>
ValueObject
As the new Java.net infrastructure contains project-level wikis, this main wiki will be shut down in the near future. For wiki page export and general wiki questions please contact the site admin at
communitymanager@java.net
.
Home
|
Help
|
Changes
|
Index
|
Search
| Go
Value Object
Meaning 1:
equals
and
hashCode
based on field values
The
equals
and
hashCode
methods use field values instead of the default behaviour of using the object's memory address. There are many examples of
Value Objects
in the standard library, e.g.
Integer
and
String
.
Note
:
Value Objects
are often also
Immutable Objects
.
Meaning 2: data-centric classes
Value Object
(VO) is an informal term used to describe data-centric classes which model a given problem domain. In the case of a database backend, a
Value Object
will map roughly to a record in a database table. The fields of the VO will map to the various columns in the table.
Synonyms : Data transfer object (DTO), Persistent Object, Storable.
Also see
Pattern Enforcing Compiler (PEC™): A compiler that can enforce the value pattern amongst other patterns
ImmutableObject
Discussion about
ValueObject
Hmm...There might be two ideas here, not one. Value Objects are not necessarily related to a persistence mechanism.
--
JohnOHanley
- 23 Jul 2003
Topic
ValueObject
. {
Edit
|
Ref-By
|
Printable
|
Diffs
r4
<
r3
<
r2
<
r1
|
More
}
java.net
RSS
Revision r4 - 2004-07-20 - 08:16:00 - hlovatt
Parents:
JavaBeans