No Automatic Import Class Space Policy Server Class Space Policy

15-6 Oracle Complex Event Processing CQL Language Reference ■ Section 15.1.4.1, Java Datatype String and Oracle CQL Datatype CHAR ■ Section 15.1.4.2, Literals ■ Section 15.1.4.3, Arrays ■ Section 15.1.4.4, Collections For more information on Oracle CQL native datatypes and their implicit and explicit datatype conversion, see Section 2.2, Datatypes .

15.1.4.1 Java Datatype String and Oracle CQL Datatype CHAR

Oracle CQL datatype CHAR is mapped to java.lang.String and java.lang.String is mapped to Oracle CQL datatype CHAR. This means you can access java.lang.String member fields and methods for an attribute defined as Oracle CQL CHAR. For example, if a1 is declared as type Oracle CQL CHAR, then you can write a query like this: query id=q1[CDATA[ select a1.substring1,2 ]]query

15.1.4.2 Literals

You cannot access member fields and methods on literals, even Oracle CQL CHAR literals. For example, the following query is not allowed: query id=q1-forbidden[CDATA[ select hello.substring1,2 ]]query

15.1.4.3 Arrays

Java arrays are converted to Oracle CQL data cartridge arrays, and Oracle CQL data cartridge arrays are converted to Java arrays. This applies to both complex types and simple types. You can use the data cartridge TABLE clause to access the multiple rows returned by a data cartridge function in the FROM clause of an Oracle CQL query. For more information, see: ■ array_type on page 7-2 ■ Section 18.2.7, Function TABLE Query ■ Section 15.1.4.4, Collections

15.1.4.4 Collections

Typically, the Oracle Java data cartridge converts an instance that implements the java.util.Collection interface to an Oracle CQL complex type. An Oracle CQL query can iterate through the members of the java.util.Collection. You can use the data cartridge TABLE clause to access the multiple rows returned by a data cartridge function in the FROM clause of an Oracle CQL query. For more information, see: ■ complex_type on page 7-7 ■ Section 18.2.7, Function TABLE Query