Interface Entity
- All Known Subinterfaces:
ByteArrayEntity,PropertyEntity
- All Known Implementing Classes:
AbstractEntity,AbstractEntityNoRevision,ByteArrayEntityImpl,PropertyEntityImpl
public interface Entity
- Author:
- Tom Baeyens, Joram Barrez, Tijs Rademakers
-
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns a representation of the object, as would be stored in the database.booleanbooleanbooleanvoidsetDeleted(boolean deleted) voidvoidsetInserted(boolean inserted) voidsetOriginalPersistentState(Object persistentState) voidsetUpdated(boolean updated)
-
Method Details
-
getId
String getId() -
setId
-
getIdPrefix
String getIdPrefix() -
isInserted
boolean isInserted() -
setInserted
void setInserted(boolean inserted) -
isUpdated
boolean isUpdated() -
setUpdated
void setUpdated(boolean updated) -
isDeleted
boolean isDeleted() -
setDeleted
void setDeleted(boolean deleted) -
getPersistentState
Object getPersistentState()Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded. -
getOriginalPersistentState
Object getOriginalPersistentState() -
setOriginalPersistentState
-