java.lang.Object
org.eclipse.persistence.internal.eis.adapters.xmlfile.XMLFileTransaction
All Implemented Interfaces:
LocalTransaction

public class XMLFileTransaction extends Object implements LocalTransaction
Transaction to XML file JCA adapter. Transaction are supported to a limited degree through writing the doms to the file system on commit.
Since:
OracleAS TopLink 10g (10.0.3)
  • Field Details

  • Constructor Details

    • XMLFileTransaction

      public XMLFileTransaction(XMLFileConnection connection)
      Default constructor.
  • Method Details

    • begin

      public void begin()
      Record that a transaction has begun.
      Specified by:
      begin in interface LocalTransaction
    • isInTransaction

      public boolean isInTransaction()
      Return if currently within a transaction.
    • commit

      public void commit() throws ResourceException
      Write each of the transactional DOM records back to their files.
      Specified by:
      commit in interface LocalTransaction
      Throws:
      ResourceException
    • rollback

      public void rollback()
      Throw away each of the DOM records in the transactional cache.
      Specified by:
      rollback in interface LocalTransaction
    • retrieveDOMRecord

      public EISDOMRecord retrieveDOMRecord(File file) throws Exception
      Return the transactional copy of the file's DOM record. This will be written on commit.
      Throws:
      Exception