org.rapla.entities
Interface Entity
- All Superinterfaces:
- RaplaObject
- All Known Subinterfaces:
- Allocatable, Appointment, Category, DynamicType, Period, Preferences, Reservation, User
public interface Entity
- extends RaplaObject
Method Summary |
boolean |
isIdentical(Entity id2)
To identities are identical, if they represent
the same object. |
boolean |
isPersistant()
returns if the instance of the entity is persisant and the cache or just a local copy. |
ENTITY_ARRAY
static final Entity[] ENTITY_ARRAY
isIdentical
boolean isIdentical(Entity id2)
- To identities are identical, if they represent
the same object.
isPersistant
boolean isPersistant()
- returns if the instance of the entity is persisant and the cache or just a local copy.
Persistant objects are usably not editable and are updated in a multiuser system.
Persistant instances with the same id should therefore have the same content and
persistant1.isIdentical(persistant2)
implies persistant1 == persistant2
.
A non persistant instance has never the same reference as the persistant entity with the same id.
persistant1.isIdentical(nonPersitant1)
implies persistant1 != nonPersistant2
.
Copyright © 2000-2006 Rapla Team. All Rights Reseserved.