JavaScript is disabled on your browser.
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.persist.core.api.entity.Entity
Entity.State
Method Summary
All Methods Instance Methods Abstract Methods
void
Mark an entity as deleted.
Methods inherited from interface ch.tocco.nice2.persist.core.api.entity.Entity
delete , getAutoFieldsDisabled , getBool , getChangedFields , getContext , getDate , getDateTime , getDecimal , getDouble , getFloat , getInt , getKey , getLogger , getLong , getManager , getModel , getOldValue , getRelatedEntity , getRelatedEntityOrNull , getShort , getState , getString , getTime , getTouchedFields , getTouchedRelations , getValue , getValue , getValue , getValue , getValue , getValue , getValueMap , hasKey , isFieldChanged , isFieldTouched , isUpdatable , joinTx , requireBool , requireDate , requireDateTime , requireDecimal , requireDouble , requireFloat , requireInt , requireKey , requireLong , requireShort , requireString , requireTime , requireValue , requireValue , requireValue , requireValue , requireValue , requireValue , resolve , setAutoFieldsDisabled , setValue , validate , validate
Method Details
markDeleted
void markDeleted ()
Mark an entity as deleted.
This can be used when an entity is deleted directly using a SQL or HQL query to synchronize the state
of the entity with the database. This will cause that
Entity.getState()
will return
Entity.State.PHANTOM
.
This is mainly used internally. Normally
Entity.delete()
should be used.