Class QueryStringInteraction

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    Serialized Form
    Author:
    James
    Since:
    OracleAS TopLink 10g (10.0.3)
    • Field Detail

      • queryString

        protected java.lang.String queryString
    • Constructor Detail

      • QueryStringInteraction

        public QueryStringInteraction()
        Default constructor.
      • QueryStringInteraction

        public QueryStringInteraction​(java.lang.String queryString)
        Construct interaction with the query string.
    • Method Detail

      • getQueryString

        public java.lang.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​(java.lang.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 java.lang.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()
        Specified by:
        isQueryStringCall in interface org.eclipse.persistence.internal.databaseaccess.QueryStringCall
        Overrides:
        isQueryStringCall in class org.eclipse.persistence.internal.databaseaccess.DatasourceCall