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
Modifier and TypeFieldDescriptionprotected XMLFileConnection
Store the connection the interaction was created from. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DatabaseField
INTERNAL: All values are printed as ? to allow for parameter binding or translation during the execute of the call.void
void
close()
execute
(InteractionSpec spec, Record input) Execute the interaction spec.boolean
execute
(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:
clearWarnings
in interfaceInteraction
-
close
public void close()- Specified by:
close
in 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:
execute
in 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:
execute
in interfaceInteraction
- Throws:
ResourceException
-
getConnection
- Specified by:
getConnection
in interfaceInteraction
-
getWarnings
- Specified by:
getWarnings
in interfaceInteraction
-
buildField
INTERNAL: All values are printed as ? to allow for parameter binding or translation during the execute of the call.
-