Class XMLFileInteractionSpec
java.lang.Object
org.eclipse.persistence.internal.eis.adapters.xmlfile.XMLFileInteractionSpec
- All Implemented Interfaces:
InteractionSpec
,Serializable
Interaction spec for XML file JCA adapter.
Supports CRUD access to an XML file based on XPath and XQuery.
Also supports in-memory DOM access.
- Since:
- OracleAS TopLink 10g (10.0.3)
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
protected Element
protected String
static final int
Type constants for defining interaction type.protected int
protected NamespaceResolver
static final int
static final int
protected String
protected String
Fields inherited from interface jakarta.resource.cci.InteractionSpec
SYNC_RECEIVE, SYNC_SEND, SYNC_SEND_RECEIVE
-
Constructor Summary
ConstructorDescriptionDefault constructor.XMLFileInteractionSpec
(NamespaceResolver namespaceResolver) -
Method Summary
Modifier and TypeMethodDescriptiongetDOM()
Return the XML DOM element to be accessed directly.Return the name of file to be accessed.int
Return the CRUD interaction type of the interaction.Return the namespaceResolver to be used to resolve any namespace prefixes in the XPath.getXPath()
Return the path to the element within the document to be accessed.Return the query to the element within the document to be accessed.void
Set the XML DOM element to be accessed directly.void
setFileName
(String fileName) Set the name of file to be accessed.void
setInteractionType
(int interactionType) Set the CRUD interaction type of the interaction.void
setNamespaceResolver
(NamespaceResolver namespaceResolver) Return the namespaceResolver to be used to resolve any namespace prefixes in the XPath.void
Set the path to the element within the document to be accessed.void
Set the query to the element within the document to be accessed.toString()
-
Field Details
-
namespaceResolver
-
xPath
-
xQuery
-
interactionType
protected int interactionType -
fileName
-
dom
-
INSERT
public static final int INSERTType constants for defining interaction type.- See Also:
-
READ
public static final int READ- See Also:
-
UPDATE
public static final int UPDATE- See Also:
-
DELETE
public static final int DELETE- See Also:
-
-
Constructor Details
-
XMLFileInteractionSpec
public XMLFileInteractionSpec()Default constructor. -
XMLFileInteractionSpec
-
-
Method Details
-
getXPath
Return the path to the element within the document to be accessed. -
getNamespaceResolver
Return the namespaceResolver to be used to resolve any namespace prefixes in the XPath. -
setNamespaceResolver
Return the namespaceResolver to be used to resolve any namespace prefixes in the XPath. -
setXPath
Set the path to the element within the document to be accessed. -
getXQuery
Return the query to the element within the document to be accessed. -
setXQuery
Set the query to the element within the document to be accessed. -
getInteractionType
public int getInteractionType()Return the CRUD interaction type of the interaction. -
setInteractionType
public void setInteractionType(int interactionType) Set the CRUD interaction type of the interaction. -
getFileName
Return the name of file to be accessed. -
setFileName
Set the name of file to be accessed. -
getDOM
Return the XML DOM element to be accessed directly. This can be used for in-memory DOM access. -
setDOM
Set the XML DOM element to be accessed directly. This can be used for in-memory DOM access. -
toString
-