public final class DoChangeLog extends DataObject implements ChangeLogger
Modifier and Type | Field and Description |
---|---|
static AbstractAttribute[] |
attributes |
static java.lang.String |
DELETE_ID |
static java.lang.String |
FREE_SQL_ID |
static Index[] |
indices |
static java.lang.String |
INSERT_ID |
static java.lang.String |
tableName |
static java.lang.String |
UPDATE_ID |
static char |
VALUE_SEPARATOR |
changeLogger, columnNames, columnType, htColumnType, INSERTMODE, maxFieldSize, original, UPDATEMODE
Constructor and Description |
---|
DoChangeLog() |
DoChangeLog(java.sql.Connection connection) |
DoChangeLog(DataObjectConstructionDetails dataObjectConstructionDetails) |
Modifier and Type | Method and Description |
---|---|
void |
deleteAll() |
void |
deleteAllExeptAusleiheAndVormerkung() |
protected void |
discardStatements()
Discard prepared statements, e.g. to force new creation due to underlying connection has been closed.
|
AbstractAttribute[] |
getAttributes()
Returns the table attribute.
|
protected java.lang.String |
getColChangePart(java.lang.String colName,
java.lang.String newColValue) |
Index[] |
getIndices()
Returns the table indices.
|
java.lang.String |
getTableName()
Returns the table name.
|
void |
log(DataObject dataObject) |
void |
logDeletion(DataObject dataObject)
Logs current deletion of a data object.
|
void |
logFreeSQLStatement(DataObject dataObject,
java.lang.String sql) |
boolean |
needsMoreFieldsThanIdentier(DataObject dataObject)
Returns true if the change logger needs more fields than identifier fields to do
its job for the specified data object.
|
addDataChangeListener, addDataSelectionListener, alertBadUniqueKey, allocateNewIdentifier, checkRecoverConnection, closeIfExists, closePreparedStatementsForWhereCondition, closeQuery, commitIfNotAutoCommit, contains, contains, contains, contains, contains, contains, count, count, count, count, count, count, countThrowException, delete, delete, deleteFreeConditioned, deleteFreeConditioned, deleteFreeConditionedAndCount, ensureMetaDataIsAvailableForAllColumns, finalize, fireDataChanged, free, getBoolean, getBoolean, getBytes, getColumnCount, getColumnLabel, getColumnLength, getColumnName, getColumnName, getColumnScale, getColumnType, getColumnType, getColumnType, getColumnType, getConnection, getDate, getDate, getDate, getDateFormattedWithShortYear, getDeletionHindrance, getDescription, getDescription, getDouble, getDouble, getEntityId, getFailedQueryExpression, getFloat, getGlobalWhereCondition, getGlobalWhereCondition, getIdentifier, getIdentifyTemplate, getIdentifyValueInt, getIdentifyWhereCondition, getIdManager, getInt, getInt, getIntAsStringZeroSuppressed, getKeyExtendedFieldSelection, getLastException, getLoadException, getLong, getmaxRow, getMode, getNbrOfFittingItems, getNbrOfFittingItems, getNbrOfFittingItems, getNbrOfFittingItems, getNbrOfFittingItems, getNbrOfFittingItems, getObject, getOriginalOf, getQueryException, getRecordingDate, getRecordingUser, getRowCount, getSqlCompareString, getSqlCompareString, getText, getText, getTextNoMatterWhatTypeOfColumn, getTime, getTimestamp, getUniqueKeyName, getWorkedOnBoolean, getWorkedOnDate, getWorkedOnDouble, getWorkedOnInt, getWorkedOnOf, getWorkedOnText, getWorkedOnText, getWorkedOnTime, getWorkedOnTimestamp, insert, isAvailable, isAvailable, isAvailable, isColumnContained, isColumnToUseForGlobalSearch, isDeletionAllowed, isKnownAsBoolean, isMemo, isModified, isModifiedColumn, isQueryFindingRecords, isQueryFindingRecords, load, load, load, load, load, load, load, loadColumns, loadFirst, logDebug, logError, logError, logError, logInfo, newRow, newRowWithNextIdentifierAllocation, nextColumn, nextRow, openQuery, openQueryThrowException, register, removeDataChangeListener, removeDataSelectionListener, resetColumnPointer, rollbackIfNotAutoCommit, save, save, save, searchGlobal, searchGlobal, select, select, select, select, select, select, select, select, select, select, select, select, select, select, selectForStreaming, setBoolean, setChangeLog, setChangeLogger, setColumnNameOfRecordingDate, setConnection, setDate, setDate, setDate, setDouble, setDouble, setDouble, setFloat, setIdentifier, setIdentityValue, setIdentityValue, setIdentityValue, setIdInclOriginal, setIdManager, setInt, setInt, setLong, setNoLogging, setObject, setReadBigDecimalAsInt, setRecordingUser, setRecordingUser, setSilentUpdate, setText, setText, setTime, setTimestamp, sqlExceptionConsequences, sqlSecure, unifyColumnName, unifyColumnNameForHashMapKey, unifyTableName, update, updateIdentifier, updateOrInsert, updateOrInsert
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getForeignKeys
public static final java.lang.String tableName
public static final AbstractAttribute[] attributes
public static final Index[] indices
public static final java.lang.String FREE_SQL_ID
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 DoChangeLog()
public DoChangeLog(DataObjectConstructionDetails dataObjectConstructionDetails)
public DoChangeLog(java.sql.Connection connection)
public java.lang.String getTableName()
EntityInfo
getTableName
in interface EntityInfo
public AbstractAttribute[] getAttributes()
EntityInfo
getAttributes
in interface EntityInfo
public Index[] getIndices()
EntityInfo
getIndices
in interface EntityInfo
public boolean needsMoreFieldsThanIdentier(DataObject dataObject)
ChangeLogger
needsMoreFieldsThanIdentier
in interface ChangeLogger
dataObject
- the data object whose changes are to logpublic void log(DataObject dataObject)
log
in interface ChangeLogger
public void logDeletion(DataObject dataObject)
ChangeLogger
logDeletion
in interface ChangeLogger
dataObject
- the data object, whose deletions are to be loggedpublic void logFreeSQLStatement(DataObject dataObject, java.lang.String sql)
logFreeSQLStatement
in interface ChangeLogger
protected java.lang.String getColChangePart(java.lang.String colName, java.lang.String newColValue)
public void deleteAllExeptAusleiheAndVormerkung()
public void deleteAll()
protected void discardStatements()
DataObject
discardStatements
in class DataObject
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de