public class FileTransactionEntry
extends java.lang.Object
Constructor and Description |
---|
FileTransactionEntry(java.lang.String newFile,
java.lang.String oldFile) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
The transaction is aborted.
|
void |
commit()
The transaction is committed.
|
void |
delete()
Delete the old file, which means the oldFile will be moved to
the saved area.
|
java.lang.String |
getNewFile() |
java.lang.String |
getOldFile() |
void |
move()
Save the file, which means the oldFile is moved to the saved area.
|
void |
save()
Save the file, which means the oldFile is moved to the saved area.
|
void |
setNewFile(java.lang.String newFile) |
void |
setOldFile(java.lang.String oldFile) |
public FileTransactionEntry(java.lang.String newFile, java.lang.String oldFile)
public java.lang.String getNewFile()
public void setNewFile(java.lang.String newFile)
public java.lang.String getOldFile()
public void setOldFile(java.lang.String oldFile)
public void abort()
public void commit()
public void delete()
public void save() throws java.io.IOException
java.io.IOException
- io exception when files are copied.public void move() throws java.io.IOException
java.io.IOException
- io exception when files are copied.