Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.ideimpl.webupdate.task
Class DeleteFile

java.lang.Object
  extended by oracle.ideimpl.webupdate.task.AtomicTask
      extended by oracle.ideimpl.webupdate.task.DeleteFile

public class DeleteFile
extends AtomicTask

Atomically delete a file. The file will be moved out of the way in perform() and actually physically deleted in commit().


Constructor Summary
DeleteFile(java.io.File file)
           
 
Method Summary
 void commit(TaskContext tc)
          Commit this task.
 void perform(TaskContext tc)
          Perform this task.
 void rollback(TaskContext tc)
          Roll this task back.
 
Methods inherited from class oracle.ideimpl.webupdate.task.AtomicTask
getProperties, pause
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteFile

public DeleteFile(java.io.File file)
Method Detail

perform

public void perform(TaskContext tc)
             throws TaskFailedException
Perform this task.

Specified by:
perform in class AtomicTask
Throws:
TaskFailedException

rollback

public void rollback(TaskContext tc)
              throws TaskFailedException
Roll this task back.

Specified by:
rollback in class AtomicTask
Throws:
TaskFailedException

commit

public void commit(TaskContext tc)
            throws TaskFailedException
Commit this task. This may be used if the work carried out in perform() creates backups or other temporary changes which must be committed only if all tasks in a set are successful.

Overrides:
commit in class AtomicTask
Throws:
TaskFailedException

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.