public class TraceData
extends sirius.db.mixing.Composite
Modifier and Type | Field and Description |
---|---|
static sirius.db.mixing.Mapping |
CHANGED_AT
Stores the timestamp when the associated entity was last changed.
|
static sirius.db.mixing.Mapping |
CHANGED_BY
Stores the username of the user which last changed the associated entity.
|
static sirius.db.mixing.Mapping |
CHANGED_IN
Stores the system string (
TaskContext.getSystemString() where the associated entity was last changed. |
static sirius.db.mixing.Mapping |
CREATED_AT
Stores the timstamp when the associated entity was created.
|
static sirius.db.mixing.Mapping |
CREATED_BY
Stores the username of the user which created the assoicated entity.
|
static sirius.db.mixing.Mapping |
CREATED_IN
Stores the system string (
TaskContext.getSystemString() where the associated entity was created. |
Constructor and Description |
---|
TraceData() |
Modifier and Type | Method and Description |
---|---|
LocalDateTime |
getChangedAt() |
String |
getChangedBy() |
String |
getChangedIn() |
LocalDateTime |
getCreatedAt() |
String |
getCreatedBy() |
String |
getCreatedIn() |
boolean |
isSilent()
Determines if change tracking is currently disabled.
|
void |
setSilent(boolean silent)
Can be used to disable or re-enable change tracking.
|
protected void |
update() |
public static final sirius.db.mixing.Mapping CREATED_BY
public static final sirius.db.mixing.Mapping CREATED_AT
public static final sirius.db.mixing.Mapping CREATED_IN
TaskContext.getSystemString()
where the associated entity was created.public static final sirius.db.mixing.Mapping CHANGED_BY
public static final sirius.db.mixing.Mapping CHANGED_AT
public static final sirius.db.mixing.Mapping CHANGED_IN
TaskContext.getSystemString()
where the associated entity was last changed.protected void update()
public boolean isSilent()
public void setSilent(boolean silent)
Some changes, performed by the system, should not update the tracing information. A login of a user (which might increment its login counter) would be an example, where change tracking should be disabled.
silent
- true if change tracking for the current entity instance should be disabled or
false to re-enablepublic String getCreatedBy()
public LocalDateTime getCreatedAt()
public String getCreatedIn()
public String getChangedBy()
public LocalDateTime getChangedAt()
public String getChangedIn()
Copyright © 2018. All rights reserved.