|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mbs.services.transaction.file.FileTransactionPlain
public class FileTransactionPlain
This is implementation of FileTransaction proxy in plain java. Please notice, that this class is not thread-safe.
| Constructor Summary | |
|---|---|
FileTransactionPlain()
|
|
| Method Summary | |
|---|---|
void |
commit()
Commits the changes. |
void |
init(TransactionContext transaction)
This method is called by the FileTransactionResource class, right
after, the implementing class is instantiated. |
void |
mark(int operation,
java.io.File file)
Marks a file, that operation is being performed on it. |
void |
rollback()
Rolls back the changes, restoring the old contents and removed files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileTransactionPlain()
| Method Detail |
|---|
public void mark(int operation,
java.io.File file)
throws java.io.IOException
mark in interface FileTransactionoperation - the operation that will be performed on the file.file - the file itself.
java.io.IOException - on I/O errorFileTransactionResource.FILE_CREATE,
FileTransactionResource.FILE_CREATE_TEMP,
FileTransactionResource.FILE_MODIFY,
FileTransactionResource.FILE_REMOVEpublic final void commit()
FileTransaction
commit in interface FileTransactionpublic final void rollback()
FileTransaction
rollback in interface FileTransactionpublic void init(TransactionContext transaction)
FileTransactionFileTransactionResource class, right
after, the implementing class is instantiated.
init in interface FileTransactiontransaction - the current transaction context.FileTransaction.init(org.mbs.services.transaction.TransactionContext)
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||