IndexDefinition :: keyDefinition - Key definition
The property returns the key definition for the index. When the index is not valid or does not define a key (unordered collection), the function throws an exception. In order to avoid unnecessary exceptions, hasKey() might be called before.
... fragment ( property &person ) {
IndexDefinition id(person.propertyDefinition().indexDefinition(0));
if ( id.hasKey() )
Application::output(id.keyDefinition().name);
else
Application::output("person collection is not ordered");
}
Return value: Type definition ( odaba::TypeDefinition )
Type definition refers to a type descriptor for a complex data type (structure), view or enumeration.