Class QueryStringInteraction

java.lang.Object
org.eclipse.persistence.internal.databaseaccess.DatasourceCall
All Implemented Interfaces:
Serializable, Cloneable, org.eclipse.persistence.internal.databaseaccess.QueryStringCall, Call

public class QueryStringInteraction extends MappedInteraction implements org.eclipse.persistence.internal.databaseaccess.QueryStringCall
Defines the specification for a call to a JCA interaction that uses a query string. This can be used for generic query translation support (i.e. VSAM, BETRIEVE, ADA, etc.) Arguments are defined in the query string through #<field-name> (i.e. #EMP_ID) Translates the query string from the query arguments. Builds the input and output records.
See Also:
Author:
James
  • Field Details

    • queryString

      protected String queryString
  • Constructor Details

    • QueryStringInteraction

      public QueryStringInteraction()
      Default constructor.
    • QueryStringInteraction

      public QueryStringInteraction(String queryString)
      Construct interaction with the query string.
  • Method Details

    • getQueryString

      public String getQueryString()
      PUBLIC: Return the query string.
      Specified by:
      getQueryString in interface org.eclipse.persistence.internal.databaseaccess.QueryStringCall
      Overrides:
      getQueryString in class org.eclipse.persistence.internal.databaseaccess.DatasourceCall
    • setQueryString

      public void setQueryString(String queryString)
      PUBLIC: Set the query string.
      Specified by:
      setQueryString in interface org.eclipse.persistence.internal.databaseaccess.QueryStringCall
      Overrides:
      setQueryString in class org.eclipse.persistence.internal.databaseaccess.DatasourceCall
    • translate

      public void translate(org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, org.eclipse.persistence.internal.sessions.AbstractRecord modifyRow, org.eclipse.persistence.internal.sessions.AbstractSession session)
      Allow the call to translate the query arguments.
      Specified by:
      translate in interface org.eclipse.persistence.internal.databaseaccess.QueryStringCall
      Overrides:
      translate in class EISInteraction
    • prepare

      public void prepare(org.eclipse.persistence.internal.sessions.AbstractSession session)
      Translate the custom query markers.
      Specified by:
      prepare in interface org.eclipse.persistence.internal.databaseaccess.QueryStringCall
      Overrides:
      prepare in class EISInteraction
    • getLogString

      public String getLogString(org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
      Return the string for logging purposes.
      Specified by:
      getLogString in interface Call
      Overrides:
      getLogString in class EISInteraction
    • isQueryStringCall

      public boolean isQueryStringCall()
      Description copied from interface: org.eclipse.persistence.internal.databaseaccess.QueryStringCall
      Should return true.
      Specified by:
      isQueryStringCall in interface org.eclipse.persistence.internal.databaseaccess.QueryStringCall
      Overrides:
      isQueryStringCall in class org.eclipse.persistence.internal.databaseaccess.DatasourceCall