| Package | Description |
|---|---|
| org.tentackle.persist |
Persistence layer implementation.
|
| Modifier and Type | Method and Description |
|---|---|
ModificationLog |
DefaultModificationLogFactory.createModificationLog() |
ModificationLog |
ModificationLogFactory.createModificationLog()
Creates a modlog.
|
<P extends AbstractDbObject<P>> |
DefaultModificationLogFactory.createModificationLog(AbstractDbObject<P> object,
char modType) |
<P extends AbstractDbObject<P>> |
ModificationLogFactory.createModificationLog(AbstractDbObject<P> object,
char modType)
Creates a modification log from an object.
|
ModificationLog |
AbstractDbObject.createModificationLog(char modType)
Creates a
ModificationLog. |
ModificationLog |
DefaultModificationLogFactory.createModificationLog(Db db) |
ModificationLog |
ModificationLogFactory.createModificationLog(Db db)
Creates an empty modification log for a given db.
|
ModificationLog |
DefaultModificationLogFactory.createModificationLog(Db db,
char modType) |
ModificationLog |
ModificationLogFactory.createModificationLog(Db db,
char modType)
Creates a modification log for a given db and modification type.
|
ModificationLog |
DefaultModificationLogFactory.createModificationLog(ModificationLog template,
char modType) |
ModificationLog |
ModificationLogFactory.createModificationLog(ModificationLog template,
char modType)
Creates a modlog from another modlog, but a different type.
|
ModificationLog |
AbstractDbObject.getModificationLog()
Gets the modification log if object is being replayed.
|
ModificationLog |
ModificationLog.readFromResultSetWrapper(ResultSetWrapper rs) |
ModificationLog |
ModificationLog.selectFirstUnprocessed()
Selects the next record to process.
This is the first unprocessed modlog with the lowest ID. |
ModificationLog |
ModificationLog.selectFirstUnprocessedGreater(long id)
Selects the next record to process greater than a given id.
|
ModificationLog |
ModificationLog.selectGreaterId(long id)
Selects the first modlog with an ID greater than given ID.
|
ModificationLog |
ModificationLog.selectLastProcessed()
Selects the last processed modlog.
This is the last processed modlog with the highest ID. |
| Modifier and Type | Method and Description |
|---|---|
DbObjectClassVariables<ModificationLog> |
ModificationLog.getClassVariables() |
List<ModificationLog> |
Db.popModificationLogsOfTransaction()
Returns the
ModificationLogs of the current transaction. |
List<ModificationLog> |
ModificationLog.selectByObject(int objectClassId,
long objectId)
Gets the modlogs for a given object.
|
List<? extends ModificationLog> |
ModificationLog.selectByTxId(long txId)
Selects the transaction.
|
List<ModificationLog> |
ModificationLog.selectByUserAndType(String user,
char modType)
Selects all logs for a given user and type.
|
List<ModificationLog> |
ModificationLog.selectUpTo(org.tentackle.common.Timestamp processed)
Selects all modlogs that are unprocessed or modified up to a given timestamp.
Used to replay modlogs after a crash. |
| Modifier and Type | Method and Description |
|---|---|
ModificationLog |
DefaultModificationLogFactory.createModificationLog(ModificationLog template,
char modType) |
ModificationLog |
ModificationLogFactory.createModificationLog(ModificationLog template,
char modType)
Creates a modlog from another modlog, but a different type.
|
protected void |
ModificationLog.handleMissingObject(ModificationLog modlog,
Db toDb)
Handles the case when an object to replay is not found.
|
void |
Db.pushModificationLogOfTransaction(ModificationLog log)
Pushes a
ModificationLog to the list of modlogs of the current transaction. |
void |
ModificationLog.replay(ModificationLog modlog,
Db toDb)
Applies a modification to another db.
The method is not static to allow overriding (e.g. |
void |
ModificationLog.replayDelete(ModificationLog modlog,
AbstractDbObject<?> object)
Replay a delete.
|
void |
ModificationLog.replayFinishModification(ModificationLog modlog,
AbstractDbObject<?> object)
Perform postprocessing for replay.
|
void |
ModificationLog.replayInitModification(ModificationLog modlog,
AbstractDbObject<?> object)
Perform preprocessing for replay.
|
void |
ModificationLog.replayInsert(ModificationLog modlog,
AbstractDbObject<?> object)
Replay an insert.
|
void |
ModificationLog.replayUpdate(ModificationLog modlog,
AbstractDbObject<?> object)
Replay an update.
|
void |
AbstractDbObject.setModificationLog(ModificationLog modlog)
Sets a (transient) reference to a modification log.
Used to keep the original user and timestamp when an object gets replayed in another server instance. |
| Modifier and Type | Method and Description |
|---|---|
ModificationLog.ReplayState |
ModificationLog.replay(ModificationLog.ReplayState state,
List<? extends ModificationLog> modList,
boolean copyLog,
Db toDb)
Replays a list of modlogs within a single transaction.
It will also create new txId if the modlogs are copied. |
| Constructor and Description |
|---|
ModificationLog(ModificationLog template,
char modType)
Creates a modlog from another modlog, but a different type.
|
Copyright © 2016 Krake Softwaretechnik. All rights reserved.