My Oracle Support Banner

How to Use Coherence COHQL Extended Language Features? (Doc ID 2906679.1)

Last updated on NOVEMBER 02, 2023

Applies to:

Oracle Coherence - Version and later
Information in this document applies to any platform.


The extended language mode allows object literals in update and insert statements. This enables:

• elements between '[' and']' denote an ArrayList.
• elements between '{' and'}' denote a HashSet.
• elements between '{' and'}' with key/value pairs separated by ':' denote a HashMap.

A literal HashMap preceded by a class name is processed by calling a zero argument constructor, and then followed by each key pair being turned into a setter and invoked with the value. To enable extended language, use the -e option. For information about using this option, see Using Command-Line Tool Arguments. Alternatively, you can use the CohQL command EXTENDED LANGUAGE ON. 


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.