Class XMLFileInteraction
java.lang.Object
org.eclipse.persistence.internal.eis.adapters.xmlfile.XMLFileInteraction
- All Implemented Interfaces:
Interaction
Interaction to XML file JCA adapter.
Executes the interaction spec against the file and DOM.
- Since:
- OracleAS TopLink 10g (10.0.3)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected XMLFileConnectionStore the connection the interaction was created from. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DatabaseFieldINTERNAL: All values are printed as ? to allow for parameter binding or translation during the execute of the call.voidvoidclose()execute(InteractionSpec spec, Record input) Execute the interaction spec.booleanexecute(InteractionSpec spec, Record input, Record output) Execute the interaction and set the output into the output record.executeDelete(XMLFileInteractionSpec spec, File file) Execute the delete operation.executeInsert(XMLFileInteractionSpec spec, File file, EISDOMRecord input) Execute the insert operation.executeRead(XMLFileInteractionSpec spec, File file) Execute the read operation.executeUpdate(XMLFileInteractionSpec spec, File file, EISDOMRecord input) Execute the update operation.
-
Field Details
-
connection
Store the connection the interaction was created from.
-
-
Constructor Details
-
XMLFileInteraction
Default constructor.
-
-
Method Details
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarningsin interfaceInteraction
-
close
public void close()- Specified by:
closein interfaceInteraction
-
execute
Execute the interaction spec. The spec define the type of CRUD operation and the file/DOM to perform it on. The spec may also contain and XQuery/XPath to evaluate against the DOM. The input is used for insert/update to contain the data (DOM) to insert into the file.- Specified by:
executein interfaceInteraction- Throws:
ResourceException
-
executeRead
Execute the read operation.- Throws:
Exception
-
executeInsert
public Record executeInsert(XMLFileInteractionSpec spec, File file, EISDOMRecord input) throws Exception Execute the insert operation.- Throws:
Exception
-
executeUpdate
public Record executeUpdate(XMLFileInteractionSpec spec, File file, EISDOMRecord input) throws Exception Execute the update operation.- Throws:
Exception
-
executeDelete
Execute the delete operation.- Throws:
Exception
-
execute
Execute the interaction and set the output into the output record. Return true or false if the execute returned data (similar to row-count).- Specified by:
executein interfaceInteraction- Throws:
ResourceException
-
getConnection
- Specified by:
getConnectionin interfaceInteraction
-
getWarnings
- Specified by:
getWarningsin interfaceInteraction
-
buildField
INTERNAL: All values are printed as ? to allow for parameter binding or translation during the execute of the call.
-