public interface EntityLog
LoggedEntity
and
LoggedAttribute
entities.Modifier and Type | Method and Description |
---|---|
void |
flush(java.lang.String storeName)
Flush records accumulated by invocations of
registerCreate(Object) 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(java.lang.Object entity)
Logs creation of an entity which is configured for manual logging (LoggedEntity.auto == false).
|
void |
registerCreate(java.lang.Object entity,
boolean auto)
Logs creation of an entity which is configured for auto or manual logging
(depending on the
auto parameter). |
void |
registerDelete(java.lang.Object entity)
Logs deletion of an entity which is configured for manual logging (LoggedEntity.auto == false).
|
void |
registerDelete(java.lang.Object entity,
boolean auto)
Logs deletion of an entity which is configured for auto or manual logging
(depending on the
auto parameter). |
void |
registerModify(java.lang.Object entity)
Logs modification of an entity which is configured for manual logging (LoggedEntity.auto == false).
|
void |
registerModify(java.lang.Object entity,
boolean auto)
Logs modification of an entity which is configured for auto or manual logging
(depending on the
auto parameter). |
void |
registerModify(java.lang.Object entity,
boolean auto,
io.jmix.core.event.AttributeChanges changes)
Logs modification of an entity which is configured for auto or manual logging
(depending on the
auto parameter). |
void |
setEnabled(boolean enabled) |
boolean isEnabled()
void setEnabled(boolean enabled)
void registerCreate(java.lang.Object entity)
void registerCreate(java.lang.Object entity, boolean auto)
auto
parameter).void registerModify(java.lang.Object entity)
void registerModify(java.lang.Object entity, boolean auto)
auto
parameter).void registerModify(java.lang.Object entity, boolean auto, @Nullable io.jmix.core.event.AttributeChanges changes)
auto
parameter).changes
- attribute changes provided by callervoid registerDelete(java.lang.Object entity)
void registerDelete(java.lang.Object 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(java.lang.String storeName)
registerCreate(Object)
and other registration methods
to the database.