The DataLoader2 interface is used to extract data which has a flat tabular structure as opposed to data with an inherent hierarchy. It is the simplest way to extract tabular data, without requiring any Data Helper class as it only deals with primitive data types. The DataLoader2 interface defines the following four methods:
1. public String[] getRequests()
2. public ObjectMetaData getRequestOutput(String request)
![]() |
View a 2-minute demonstration of InetSoft's easy, agile, and robust BI software. |
3. public ObjectMetaData getRequestParameter(String request)
4. public Object execute(String request, VariableTable params, XSelection columns, XNodePath condition) throws ConditionNotSupportedException
![]() |
View live interactive examples in InetSoft's dashboard and visualization gallery. |
The Data Helper may be required under the following circumstances:
Your Data Loader is based on the (‘DataLoader’ interface or Introspection)
AND the return object class has only primitive attributes but does not follow the Java Bean naming conventions.
OR the return object class has any hierarchy.
The data helper class must implement the ‘inetsoft.uql.object.DataHelper’ interface, which defines the following two methods:
1. public XTypeNode[] getAttributes(Class cls)
2. public Object getValue(Object obj, String name)
#1 Ranking: Read how InetSoft was rated #1 for user adoption in G2's user survey-based index | Read More |
The parent directory of this ‘object’ directory then needs to be included in the classpath.
Previous: Accessing Java Object Data Sources |