public abstract class ChangeLogStd
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DELETE_ID |
static java.lang.String |
INSERT_ID |
static java.lang.String |
UPDATE_ID |
static char |
VALUE_SEPARATOR |
Constructor and Description |
---|
ChangeLogStd(java.lang.String loggingFilePath)
Creates a new change log.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
protected java.lang.String |
getColChangePart(java.lang.String colName,
java.lang.String oldColValue,
java.lang.String newColValue) |
void |
log(DataObject dataObject)
Logs current changes of a data object.
|
void |
logDeletion(DataObject dataObject)
Logs current deletion of a data object.
|
void |
logDeletion(java.lang.String tableName,
java.lang.String sql)
Logs current deletion of a data object.
|
public static final java.lang.String INSERT_ID
public static final java.lang.String UPDATE_ID
public static final java.lang.String DELETE_ID
public static final char VALUE_SEPARATOR
public ChangeLogStd(java.lang.String loggingFilePath)
public void log(DataObject dataObject)
dataObject
- the data object, whose changes are to be loggedpublic void logDeletion(DataObject dataObject)
dataObject
- the data object, whose deletions are to be loggedpublic void logDeletion(java.lang.String tableName, java.lang.String sql)
tableName
- the name of the tablesql
- the SQL used for deletionprotected java.lang.String getColChangePart(java.lang.String colName, java.lang.String oldColValue, java.lang.String newColValue)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de