Style Intelligence v12.0

inetsoft.uql.erm
Class XModelHandler

java.lang.Object
  extended by inetsoft.uql.erm.XModelHandler

public abstract class XModelHandler
extends Object

An XModelHandler translates a selection of attributes from a data model into a format that can be used to generate a result set from the associated data source. In order for a data source type to be able to use a data model, it must have a corresponding implementation of XModelHandler.

Since:
4.4

Constructor Summary
XModelHandler(XHandler handler)
          Create an XModelHandler that uses the specified XHandler.
 
Method Summary
abstract  XNode execute(Object session, XDataSelection selection, XDataModel model, VariableTable vars, Principal user)
          Executes a selection of attributes from the specified data model and returns the result set in the form of an XNode.
 XHandler getHandler()
          Get the XHandler used to execute the generated query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XModelHandler

public XModelHandler(XHandler handler)
Create an XModelHandler that uses the specified XHandler.

Parameters:
handler - the XHandler used to actually execute the generated query.
Method Detail

execute

public abstract XNode execute(Object session,
                              XDataSelection selection,
                              XDataModel model,
                              VariableTable vars,
                              Principal user)
                       throws Exception
Executes a selection of attributes from the specified data model and returns the result set in the form of an XNode. Subclasses should translate the selection into a form usable by the corresponding XHandler implementation and use that class to get the result.

Parameters:
session - the session object
selection - a group of attributes and conditions defining a query
model - the data model from which the attributes were taken
vars - variable values for the query.
user - the user executing the query.
Returns:
the resulting XNode object
Throws:
Exception - if an error is encountered while executing the query

getHandler

public XHandler getHandler()
Get the XHandler used to execute the generated query.

Returns:
the handler

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.