@Status(stage=TEST, unitTests=ABSENT) public interface ValueObjectInterface extends Serializable
| Modifier and Type | Method and Description |
|---|---|
ValueObjectInterface |
copyFrom(ValueObjectInterface source)
Copies the content of the supplied source into this ValueObject.
|
Long |
getObjectId()
Gets the Object ID of this ValueObject.
|
Integer |
getVersion()
Gets the version of this ValueObject.
|
void |
validate()
Validates the state of the data in this ValueObject.
|
Long getObjectId()
Integer getVersion()
ValueObjectInterface copyFrom(ValueObjectInterface source) throws InvalidStateException
source - The source to copy data from.InvalidStateException - When the supplied source is in an invalid
state and therefore can not be copied.NullPointerException - When the supplied source is null.void validate()
throws InvalidStateException
InvalidStateException - In case the data in this ValueObject is not
in a valid state.
Copyright © 2008–2017. All rights reserved.