Fluwiz Documentation

Developer Reference

Tuple

package com.zitlab.palmyra.api2db.pojo

class - Tuple

List of methods available in the Tuple object.

Method Description
Object getId() Get the primary key of the record (for single key, it will return the value, for multiple keys - return java.util.HashMap
void setId(Object obj) set the primary key
Object getAttribute(String key) Get the value of the given attribute name
void setAttribute(String key, Object value) add the name and attribute value to the tuple
Object getRefAttribute (String key) Get the value of the attribute from the parent tuple
void setRefAttribute(String key, Object value) Set the name and attribute value to the parent tuple
Tuple getReference(String key) Get the parent tuple as defined by the key
void setReference(String key, Tuple value) set the key and parent tuple
List<Tuple> getChildren(String key) get the children referrenced by the key
void setChildren(String key, List<Tuple> value) set the key and List of Childrens
String getPreferredKey() get the index to be used for query operations
void setPreferredKey(String key) set the index to be used for query operations (shall be specificed by json structure also)