public class InteractiveTransaction extends Transaction
consultant| Modifier | Constructor and Description |
|---|---|
protected |
InteractiveTransaction(UserTransactionInfo uti,
String key,
String id,
boolean commitOnClose,
long timeOut,
File reportFile,
Consultant consultant)
Creates new InteractiveTransaction.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
consult(TmpObject originalObject,
List<TmpObject> mergeResults)
Handles sitiuations where more then one similar objects are found to
merge with.
|
protected boolean |
handleDuplicates(TmpObject tempObj,
List<TmpObject> similarObjects,
ObjectMerger merger)
Handles sitiuations where more then one similar objects are found to
merge with.
|
accessObject, appendReportBuffer, caculateMerge, commit, createObject, createRelation, createTransaction, createTransaction, delete, deleteObject, dropIfRequested, equalRelations, getAccessObject, getKey, getMergedObject, getObjectContexts, getRelations, getTmpObjects, leave, markDeleteObject, merge, mergeObjects, openObject, openTransaction, run, start, stillExists, stopprotected InteractiveTransaction(UserTransactionInfo uti, String key, String id, boolean commitOnClose, long timeOut, File reportFile, Consultant consultant)
timeOut - if the transactions is not finished after the timeout
(in seconds) the transaction is cancelled.uti - transaction info for current user.key - TransactionManager key for this transaction.id - TransactionHandler id for this transactions.commitOnClose - - The user-specified commit-on-close setting.
True if this transaction is to be committed
when the user leaves it's context, false otherwise.reportFile - The file to use as duplicates file.consultant - The intermediate import object. Used to set and get status from and set and get objects to and from.protected boolean handleDuplicates(TmpObject tempObj, List<TmpObject> similarObjects, ObjectMerger merger) throws TransactionHandlerException
handleDuplicates in class TransactiontempObj - the original objectsimilarObjects - the similar objectsmerger - the mergerTransactionHandlerException - When a failure occurred.int consult(TmpObject originalObject, List<TmpObject> mergeResults) throws TransactionHandlerException
tempObj1 - the original objectmergeResults - the mergeResultsTransactionHandlerException - If the situation could not be handled.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}