Class OracleNoSQLInteraction
- java.lang.Object
-
- org.eclipse.persistence.internal.nosql.adapters.nosql.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 Summary
Fields Modifier and Type Field Description protected OracleNoSQLConnectionconnectionStore the connection the interaction was created from.
-
Constructor Summary
Constructors Constructor Description OracleNoSQLInteraction(OracleNoSQLConnection connection)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearWarnings()voidclose()protected ObjectconvertBytes(byte[] bytes)Allow processing of the raw bytes.protected List<String>createMajorKey(Object key)Convert the key into a proper key list.protected oracle.kv.ValuecreateValue(Object data)Create the NoSQL Value from the data's bytes.jakarta.resource.cci.Recordexecute(jakarta.resource.cci.InteractionSpec spec, jakarta.resource.cci.Record record)Execute the interaction and return output record.booleanexecute(jakarta.resource.cci.InteractionSpec spec, jakarta.resource.cci.Record input, jakarta.resource.cci.Record output)Output records are not supported/required.jakarta.resource.cci.ConnectiongetConnection()jakarta.resource.cci.ResourceWarninggetWarnings()protected voidputValues(Object element, List<String> majorKeys, List<String> minorKeys, OracleNoSQLInteractionSpec spec, List<oracle.kv.Operation> operations)Put the value at the major and minor keys.
-
-
-
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:
clearWarningsin interfacejakarta.resource.cci.Interaction
-
close
public void close()
- Specified by:
closein interfacejakarta.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.ResourceExceptionOutput records are not supported/required.- Specified by:
executein interfacejakarta.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.ResourceExceptionExecute the interaction and return output record. The spec is either GET, PUT or DELETE interaction.- Specified by:
executein interfacejakarta.resource.cci.Interaction- Throws:
jakarta.resource.ResourceException
-
getConnection
public jakarta.resource.cci.Connection getConnection()
- Specified by:
getConnectionin interfacejakarta.resource.cci.Interaction
-
getWarnings
public jakarta.resource.cci.ResourceWarning getWarnings()
- Specified by:
getWarningsin interfacejakarta.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.
-
-