Uses of Class
org.tentackle.dbms.ModificationLog
Packages that use ModificationLog
Package
Description
Low-level persistence layer implementation.
Low-level persistence layer remoting.
-
Uses of ModificationLog in org.tentackle.dbms
Subclasses with type arguments of type ModificationLog in org.tentackle.dbmsModifier and TypeClassDescriptionclassLogging for object modifications.
Modifications of PDOs can be logged to a so-called modification log.
Such modlogs can be used for asynchronous database coupling, higher level replication, etc...Fields in org.tentackle.dbms with type parameters of type ModificationLogModifier and TypeFieldDescriptionstatic final DbObjectClassVariables<ModificationLog> ModificationLog.CLASSVARIABLESVariables common to all instances ofModificationLog.Methods in org.tentackle.dbms that return ModificationLogModifier and TypeMethodDescriptionDefaultModificationLogFactory.createModificationLog()DefaultModificationLogFactory.createModificationLog(Db db) DefaultModificationLogFactory.createModificationLog(Db db, ModificationType modType) DefaultModificationLogFactory.createModificationLog(ModificationLoggable object, ModificationType modType) DefaultModificationLogFactory.createModificationLog(ModificationLog template, ModificationType modType) ModificationLogFactory.createModificationLog()Creates a modlog.ModificationLogFactory.createModificationLog(Db db) Creates an empty modification log for a given session.
Useful for reading the log or as an TRIP-proxy.ModificationLogFactory.createModificationLog(Db db, ModificationType modType) Creates a modification log for a given session and modification type.ModificationLogFactory.createModificationLog(ModificationLoggable object, ModificationType modType) Creates a modification log from an object.ModificationLogFactory.createModificationLog(ModificationLog template, ModificationType modType) Creates a modlog from another modlog, but a different type.default ModificationLogModificationLoggable.createModificationLog(ModificationType modType) Creates aModificationLog.ModificationLog.readFromResultSetWrapper(ResultSetWrapper rs) ModificationLog.selectFirstUnprocessed()Selects the next record to process.
This is the first unprocessed modlog with the lowest ID.ModificationLog.selectFirstUnprocessedGreater(long id) Selects the next record to process greater than a given id.ModificationLog.selectGreaterId(long id) Selects the first modlog with an ID greater than given ID.ModificationLog.selectLastProcessed()Selects the last processed modlog.
This is the last processed modlog with the highest ID.Methods in org.tentackle.dbms that return types with arguments of type ModificationLogModifier and TypeMethodDescriptionModificationLog.getClassVariables()Returns theModificationLogs of the current transaction.
Upon return, the list of logs is cleared.ModificationLog.selectByObject(int objectClassId, long objectId) Gets the modlogs pending for a given object.List<? extends ModificationLog> ModificationLog.selectByTxId(long txId) Selects the transaction.ModificationLog.selectByUserAndType(long userId, ModificationType modType) Selects all logs pending for a given user and type.ModificationLog.selectUpTo(Timestamp processed) Selects all modlogs that are unprocessed or modified up to a given timestamp.
Used to replay modlogs after a crash.Methods in org.tentackle.dbms with parameters of type ModificationLogModifier and TypeMethodDescriptionDefaultModificationLogFactory.createModificationLog(ModificationLog template, ModificationType modType) ModificationLogFactory.createModificationLog(ModificationLog template, ModificationType modType) Creates a modlog from another modlog, but a different type.protected voidModificationLog.handleMissingObject(ModificationLog modlog, Session toSession) Handles the case when an object to replay is not found.voidPushes aModificationLogto the list of modlogs for the current transaction.voidModificationLog.replay(ModificationLog modlog, Session toDb, boolean lenient) Applies a modification to another db.
The method is not static to allow overriding (e.g. to extend with more transaction types).voidModificationLog.replayDelete(ModificationLog modlog, AbstractDbObject<?> object, boolean lenient) Replay a delete.voidModificationLog.replayFinishModification(ModificationLog modlog, AbstractDbObject<?> object) Perform postprocessing for replay.voidModificationLog.replayInitModification(ModificationLog modlog, AbstractDbObject<?> object) Perform preprocessing for replay.voidModificationLog.replayInsert(ModificationLog modlog, AbstractDbObject<?> object, boolean lenient) Replay an insert.voidModificationLog.replayUpdate(ModificationLog modlog, AbstractDbObject<?> object, boolean lenient) Replay an update.Method parameters in org.tentackle.dbms with type arguments of type ModificationLogModifier and TypeMethodDescriptionModificationLog.replay(ModificationLog.ReplayState state, List<? extends ModificationLog> modList, boolean copyLog, boolean lenient, Db toDb) Replays a list of modlogs within a single transaction.
It will also create new txId if the modlogs are copied.Constructors in org.tentackle.dbms with parameters of type ModificationLogModifierConstructorDescriptionModificationLog(ModificationLog template, ModificationType modType) Creates a modlog from another modlog, but a different type. -
Uses of ModificationLog in org.tentackle.dbms.trip
Subclasses with type arguments of type ModificationLog in org.tentackle.dbms.tripSubinterfaces with type arguments of type ModificationLog in org.tentackle.dbms.tripMethods in org.tentackle.dbms.trip that return ModificationLogModifier and TypeMethodDescriptionModificationLogRemoteDelegate.selectFirstUnprocessed()ModificationLogRemoteDelegateImpl.selectFirstUnprocessed()ModificationLogRemoteDelegate.selectFirstUnprocessedGreater(long id) ModificationLogRemoteDelegateImpl.selectFirstUnprocessedGreater(long id) ModificationLogRemoteDelegate.selectGreaterId(long id) ModificationLogRemoteDelegateImpl.selectGreaterId(long id) ModificationLogRemoteDelegate.selectLastProcessed()ModificationLogRemoteDelegateImpl.selectLastProcessed()Methods in org.tentackle.dbms.trip that return types with arguments of type ModificationLogModifier and TypeMethodDescriptionDbRemoteDelegate.popModificationLogsOfTransaction()DbRemoteDelegateImpl.popModificationLogsOfTransaction()ModificationLogRemoteDelegate.selectByObject(int objectClassId, long objectId) ModificationLogRemoteDelegateImpl.selectByObject(int objectClassId, long objectId) List<? extends ModificationLog> ModificationLogRemoteDelegate.selectByTxId(long txId) List<? extends ModificationLog> ModificationLogRemoteDelegateImpl.selectByTxId(long txId) ModificationLogRemoteDelegate.selectByUserAndType(long userId, ModificationType modType) ModificationLogRemoteDelegateImpl.selectByUserAndType(long userId, ModificationType modType) ModificationLogRemoteDelegate.selectUpTo(Timestamp processed) ModificationLogRemoteDelegateImpl.selectUpTo(Timestamp processed) Methods in org.tentackle.dbms.trip with parameters of type ModificationLogModifier and TypeMethodDescriptionvoidModificationLogRemoteDelegate.updateDiagnostics(Timestamp processed, String comment, ModificationLog obj) voidModificationLogRemoteDelegateImpl.updateDiagnostics(Timestamp processed, String comment, ModificationLog obj) voidModificationLogRemoteDelegate.updateProcessed(Timestamp processed, ModificationLog obj) voidModificationLogRemoteDelegateImpl.updateProcessed(Timestamp processed, ModificationLog obj) Constructor parameters in org.tentackle.dbms.trip with type arguments of type ModificationLogModifierConstructorDescriptionModificationLogRemoteDelegateImpl(RemoteDbSessionImpl session, Class<ModificationLog> clazz)