org.openwms.core.domain
Interface DomainObject<ID extends Serializable>

Type Parameters:
ID - Type of technical key class
All Known Implementing Classes:
AbstractPreference, ApplicationPreference, Email, Grant, I18n, Location, LocationGroup, LocationType, Message, Module, ModulePreference, Role, RolePreference, SecurityObject, SystemUser, TransportOrder, TransportUnit, TransportUnitType, TypePlacingRule, TypeStackingRule, UnitError, User, UserPassword, UserPreference

public interface DomainObject<ID extends Serializable>

A DomainObject, implementation classes offer basic functionality characteristic to all persisted domain objects.

Each domain object:

Since:
0.1
Version:
$Revision: 1505 $
Author:
Heiko Scherrer

Method Summary
 ID getId()
          Return the technical key value.
 long getVersion()
          Return the value of the optimistic locking field.
 boolean isNew()
          Check whether the instance is a transient or persisted one.
 

Method Detail

isNew

boolean isNew()
Check whether the instance is a transient or persisted one.

Returns:
true if transient (not persisted before), otherwise false

getVersion

long getVersion()
Return the value of the optimistic locking field.

Returns:
the version number

getId

ID getId()
Return the technical key value.

Returns:
The technical, unique key


Copyright © 2005-2011 openwms.org. All Rights Reserved.