public interface EntityLogAPI
LoggedEntity
and
LoggedAttribute
entities.
See also EntityLogConfig
configuration interface.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flush records accumulated by invocations of
registerCreate(Entity) and other registration methods
to the database. |
void |
invalidateCache()
Invalidates configuration cache.
|
boolean |
isEnabled() |
boolean |
isLoggingForCurrentThread() |
void |
processLoggingForCurrentThread(boolean enabled)
Disables/enables entity logging for current thread.
|
void |
registerCreate(Entity entity)
Logs creation of an entity which is configured for manual logging (LoggedEntity.auto == false).
|
void |
registerCreate(Entity entity,
boolean auto)
Logs creation of an entity which is configured for auto or manual logging
(depending on the
auto parameter). |
void |
registerDelete(Entity entity)
Logs deletion of an entity which is configured for manual logging (LoggedEntity.auto == false).
|
void |
registerDelete(Entity entity,
boolean auto)
Logs deletion of an entity which is configured for auto or manual logging
(depending on the
auto parameter). |
void |
registerModify(Entity entity)
Logs modification of an entity which is configured for manual logging (LoggedEntity.auto == false).
|
void |
registerModify(Entity entity,
boolean auto)
Logs modification of an entity which is configured for auto or manual logging
(depending on the
auto parameter). |
void |
registerModify(Entity entity,
boolean auto,
EntityAttributeChanges changes)
Logs modification of an entity which is configured for auto or manual logging
(depending on the
auto parameter). |
void |
setEnabled(boolean enabled) |
static final java.lang.String NAME
boolean isEnabled()
void setEnabled(boolean enabled)
void registerCreate(Entity entity)
void registerCreate(Entity entity, boolean auto)
auto
parameter).void registerModify(Entity entity)
void registerModify(Entity entity, boolean auto)
auto
parameter).void registerModify(Entity entity, boolean auto, @Nullable EntityAttributeChanges changes)
auto
parameter).changes
- attribute changes provided by callervoid registerDelete(Entity entity)
void registerDelete(Entity entity, boolean auto)
auto
parameter).void invalidateCache()
void processLoggingForCurrentThread(boolean enabled)
enabled
- entity logging disabled if false, enabled otherwise.boolean isLoggingForCurrentThread()
processLoggingForCurrentThread(boolean)
void flush()
registerCreate(Entity)
and other registration methods
to the database.