Support for POJOs

TeaOperation supports Plain Old Java Object (POJO) as parameters and return types.

To enable POJO support, you must enable the enable_class_generation property on EnterpriseAdministrator as follows:
import tibco.tea 
tea =tibco.tea.EnterpriseAdministrator(config={'enable_class_generation':True})
The property is, by default, set to false, so ensure that you set this to true if you want the Python scripts to support POJO objects. POJO support comes with some supported scenarios and limitations.

Supported Scenarios

The following java objects are supported as a parameter or a return type:
  1. A POJO
  2. Array of POJO
  3. List of POJOs
  4. Map of POJOs
  5. Nested POJOs
  6. A list of POJOs passed as a parameter to a Map is supported as a return type.
  7. If you have classes with same names in different packages, underscore separated fully qualified names are used to distinguish them. For example, if there is a class by the name, TeaAgent in com.tibco.tea.agentA, and com.tibco.tea.agent.agentB, the class in package agentA is identified by using com_tibco_tea_agent_agentA_TeaAgent and the class in agentB is identified by using com_tibco_tea_agent_agentB_TeaAgent.
    Fully Qualified Name in Java Fully Qualified Name in Python
    com.tibco.tea.agent.agentA.TeaAgent com_tibco_tea_agent_agentA_TeaAgent
    com.tibco.tea.agent.agentB.TeaAgent com_tibco_tea_agent_agentB_TeaAgent