com.groiss.org
Interface LogEntry


public interface LogEntry

A log entryy written when an instance of HasLog is inserted, updated or deleted.


Field Summary
static int DELETE
          Identifies change as delete.
static int INSERT
          Identifies change as insert.
static int UPDATE
          Identifies change as update.
 
Method Summary
 User getAgent()
          Returns the user who made the change.
 int getChangeMode()
          Returns the changeMode of this log.
 java.lang.String getClassName()
          Get the class of the changed object.
 java.lang.String getLoggedName()
          Get the name of the changed object.
 Persistent getLoggedObject()
          Get the changed object.
 java.util.Date getWhen()
          Get the time when the change was made.
 

Field Detail

INSERT

static final int INSERT
Identifies change as insert.

See Also:
Constant Field Values

UPDATE

static final int UPDATE
Identifies change as update.

See Also:
Constant Field Values

DELETE

static final int DELETE
Identifies change as delete.

See Also:
Constant Field Values
Method Detail

getAgent

User getAgent()
Returns the user who made the change.

Returns:
a User object

getChangeMode

int getChangeMode()
Returns the changeMode of this log.

Returns:
either INSERT, UPDATE or DELETE

getWhen

java.util.Date getWhen()
Get the time when the change was made.

Returns:
a Date object

getClassName

java.lang.String getClassName()
Get the class of the changed object.

Returns:
the class name

getLoggedName

java.lang.String getLoggedName()
Get the name of the changed object.

Returns:
the object name

getLoggedObject

Persistent getLoggedObject()
Get the changed object.

Returns:
the changed object


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.