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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()StringgetIdPrefix()ObjectgetOriginalPersistentState()ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.booleanisDeleted()booleanisInserted()booleanisUpdated()voidsetDeleted(boolean deleted)voidsetId(String id)voidsetInserted(boolean inserted)voidsetOriginalPersistentState(Object persistentState)voidsetUpdated(boolean updated)
-
-
-
Method Detail
-
getId
String getId()
-
setId
void setId(String id)
-
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
void setOriginalPersistentState(Object persistentState)
-
-