|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FileTransaction
This interface defines the common business logic for a proxy, that would implement the transaction behaviour within one transaction.
| 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. |
| Method Detail |
|---|
void init(TransactionContext transaction)
FileTransactionResource class, right
after, the implementing class is instantiated.
transaction - the current transaction context.
void mark(int operation,
java.io.File file)
throws java.io.IOException
operation - 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_REMOVEvoid commit()
void rollback()
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||