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
FieldsModifier and TypeFieldDescriptionprotected XMLFileConnectionprotected Map<String, EISDOMRecord> protected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()Record that a transaction has begun.voidcommit()Write each of the transactional DOM records back to their files.booleanReturn if currently within a transaction.retrieveDOMRecord(File file) Return the transactional copy of the file's DOM record.voidrollback()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:
beginin 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:
commitin interfaceLocalTransaction- Throws:
ResourceException
-
rollback
public void rollback()Throw away each of the DOM records in the transactional cache.- Specified by:
rollbackin interfaceLocalTransaction
-
retrieveDOMRecord
Return the transactional copy of the file's DOM record. This will be written on commit.- Throws:
Exception
-