Class OracleNoSQLInteraction

  • All Implemented Interfaces:
    jakarta.resource.cci.Interaction

    public class OracleNoSQLInteraction
    extends Object
    implements jakarta.resource.cci.Interaction
    Interaction to Oracle NoSQL JCA adapter.
    Since:
    EclipseLink 2.4
    Author:
    James
    • Field Detail

      • connection

        protected OracleNoSQLConnection connection
        Store the connection the interaction was created from.
    • Constructor Detail

      • OracleNoSQLInteraction

        public OracleNoSQLInteraction​(OracleNoSQLConnection connection)
        Default constructor.
    • Method Detail

      • clearWarnings

        public void clearWarnings()
        Specified by:
        clearWarnings in interface jakarta.resource.cci.Interaction
      • close

        public void close()
        Specified by:
        close in interface jakarta.resource.cci.Interaction
      • execute

        public boolean execute​(jakarta.resource.cci.InteractionSpec spec,
                               jakarta.resource.cci.Record input,
                               jakarta.resource.cci.Record output)
                        throws jakarta.resource.ResourceException
        Output records are not supported/required.
        Specified by:
        execute in interface jakarta.resource.cci.Interaction
        Throws:
        jakarta.resource.ResourceException
      • execute

        public jakarta.resource.cci.Record execute​(jakarta.resource.cci.InteractionSpec spec,
                                                   jakarta.resource.cci.Record record)
                                            throws jakarta.resource.ResourceException
        Execute the interaction and return output record. The spec is either GET, PUT or DELETE interaction.
        Specified by:
        execute in interface jakarta.resource.cci.Interaction
        Throws:
        jakarta.resource.ResourceException
      • getConnection

        public jakarta.resource.cci.Connection getConnection()
        Specified by:
        getConnection in interface jakarta.resource.cci.Interaction
      • getWarnings

        public jakarta.resource.cci.ResourceWarning getWarnings()
        Specified by:
        getWarnings in interface jakarta.resource.cci.Interaction
      • createMajorKey

        protected List<String> createMajorKey​(Object key)
        Convert the key into a proper key list. NoSQL uses a List of key values for major keys, this allows for a special key syntax to be used, or a list. "[<key1>,<key2>,..]"
      • putValues

        protected void putValues​(Object element,
                                 List<String> majorKeys,
                                 List<String> minorKeys,
                                 OracleNoSQLInteractionSpec spec,
                                 List<oracle.kv.Operation> operations)
        Put the value at the major and minor keys. If a nested record, then put each nested value as minor keys.
      • createValue

        protected oracle.kv.Value createValue​(Object data)
        Create the NoSQL Value from the data's bytes.
      • convertBytes

        protected Object convertBytes​(byte[] bytes)
        Allow processing of the raw bytes.