Class XMLFileTransaction
java.lang.Object
org.eclipse.persistence.internal.eis.adapters.xmlfile.XMLFileTransaction
- All Implemented Interfaces:
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 Summary
Modifier and TypeFieldDescriptionprotected XMLFileConnection
protected Map
<String, EISDOMRecord> protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
Record that a transaction has begun.void
commit()
Write each of the transactional DOM records back to their files.boolean
Return if currently within a transaction.retrieveDOMRecord
(File file) Return the transactional copy of the file's DOM record.void
rollback()
Throw away each of the DOM records in the transactional cache.
-
Field Details
-
isInTransaction
protected boolean isInTransaction -
domFiles
-
connection
-
-
Constructor Details
-
XMLFileTransaction
Default constructor.
-
-
Method Details
-
begin
public void begin()Record that a transaction has begun.- Specified by:
begin
in interfaceLocalTransaction
-
isInTransaction
public boolean isInTransaction()Return if currently within a transaction. -
commit
Write each of the transactional DOM records back to their files.- Specified by:
commit
in interfaceLocalTransaction
- Throws:
ResourceException
-
rollback
public void rollback()Throw away each of the DOM records in the transactional cache.- Specified by:
rollback
in interfaceLocalTransaction
-
retrieveDOMRecord
Return the transactional copy of the file's DOM record. This will be written on commit.- Throws:
Exception
-