net.sourceforge.domian.entity
Interface Entity

All Known Subinterfaces:
TransientEntity
All Known Implementing Classes:
AbstractEntity, AbstractLoggingUUIDEntity, AbstractRandomIntegerEntity, AbstractRandomLongEntity, AbstractUUIDEntity, EntityPersistenceMetaData

public interface Entity

Interface for all entity objects.

Since:
0.4
Author:
Eirik Torske

Method Summary
 java.io.Serializable getEntityId()
          An entity object should at all time have a final, unique, non-null entity ID.
 java.lang.Long getTimeOfCreation()
          An entity object always originates from one specific moment in time.
 

Method Detail

getTimeOfCreation

java.lang.Long getTimeOfCreation()
An entity object always originates from one specific moment in time.

Returns:
the time of creation of this entity, in milliseconds after 01.01.1970

getEntityId

java.io.Serializable getEntityId()
An entity object should at all time have a final, unique, non-null entity ID.

Returns:
the entity ID


Copyright © 2006-2010. All Rights Reserved.