Caché Collections
Caché classes primarily use two different types of collections. The Java type of the corresponding projection property can be controlled through the property's JAVATYPE parameter. The following table describes the Caché collection types and lists their recommended Java projection types:
Collection Type | Details | Recommended Projection Type |
---|---|---|
Array |
|
java.util.Map |
List |
|
java.util.List |
Set the Java projection type for a Caché property using the property's JAVATYPE parameter. Set the parameter to the recommended projection type either through the Studio Inspector or directly in the property declaration. Here the projection type for PhoneNumbers has been set to java.util.Map:
Relationship PhoneNumbers As JavaTutorial.PhoneNumber
(JAVATYPE = "java.util.Map")
[ Cardinality = children, Inverse = Contact ];
To learn more about Caché collections, read the chapter “Working with Collections” in Using Caché Objects.