Style Intelligence v12.0

inetsoft.uql.erm
Class AbstractModelTrapContext

java.lang.Object
  extended by inetsoft.uql.erm.AbstractModelContext
      extended by inetsoft.uql.erm.AbstractModelTrapContext

public abstract class AbstractModelTrapContext
extends AbstractModelContext

A skeletal implementation of an model trap context.


Nested Class Summary
 class AbstractModelTrapContext.TrapInfo
           
 
Field Summary
protected  DataRef[] aggs
           
protected  String[] anames
           
protected  AbstractModelTrapContext.TrapInfo info
           
protected  boolean initAgg
           
protected  boolean isCheckTrap
           
protected  boolean isReport
           
protected  boolean isWS
           
protected  ModelTrapHelper nhelper
           
protected  DataRef[] oaggs
           
protected  AbstractModelTrapContext.TrapInfo oinfo
           
protected  String[] otables
           
protected  XPartition partition
           
protected  inetsoft.uql.util.XSourceInfo source
           
protected  TableAssembly table
           
protected  String[] tables
           
 
Fields inherited from class inetsoft.uql.erm.AbstractModelContext
helper, lm
 
Constructor Summary
AbstractModelTrapContext()
           
 
Method Summary
protected  void addAttributes(inetsoft.uql.asset.internal.CompositeColumnHelper helper, HashSet set, DataRef ref)
          Add attributes.
protected  AbstractModelTrapContext.TrapInfo checkTrap()
          Return if new trap is found or not.
protected  boolean containTrap(TableAssembly table)
          Check if contains trap.
protected  DataRef[] getAllAttributes()
          Get all attributes in the binding tree.
protected  void getAttributes(TableAssembly table, HashSet refs, HashSet aggs, boolean agg)
          Get all attributes and aggregate attributes in binding.
protected  void getAttributes(TableAssembly table, HashSet refs, HashSet aggs, boolean agg, boolean base)
          Get all attributes and aggregate attributes in binding.
 DataRef[] getGrayedFields()
          Return the grayed fields.
protected  DataRef[] getGrayedFields0(DataRef[] allAttributes, String[] tables, inetsoft.uql.asset.internal.CompositeColumnHelper chelper)
          Get grayed fields.
 String getTrapCondition()
          Get trap condition.
protected  void init(Principal user, XDataModel xdm, boolean checkbase)
          Initialize.
protected  void init(TableAssembly table, Principal user, boolean checkbase)
          Initialize.
protected  void init(inetsoft.uql.util.XSourceInfo source, Principal user)
          Initialize.
protected  void init(inetsoft.uql.util.XSourceInfo source, Principal user, boolean checkbase)
          Initialize.
protected  void initAggregateRefs()
          Init all aggregate refs.
protected  void initAggregateRefs(DataRef[] refs)
          Init all aggregate refs.
 boolean isCheckTrap()
          Return if we should check the trap.
 boolean isDebugMode()
          Is debug mode.
protected  boolean isDefaultMeasure(DataRef ref)
          Check if the data ref is measure.
protected  boolean isMeasure(DataRef ref)
          Check if the data ref is measure.
protected  Object[] merge(Object[] objs1, Object[] objs2)
          Merge arrays.
protected  void printFields(String prefix, AbstractCollection fields)
          Print fields.
protected  void printFields(String prefix, DataRef[] fields)
          Print fields.
 
Methods inherited from class inetsoft.uql.erm.AbstractModelContext
addAttributes, fixAggregates, getAttribute, getTables, getTables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

partition

protected XPartition partition

tables

protected String[] tables

otables

protected String[] otables

aggs

protected DataRef[] aggs

oaggs

protected DataRef[] oaggs

info

protected AbstractModelTrapContext.TrapInfo info

oinfo

protected AbstractModelTrapContext.TrapInfo oinfo

nhelper

protected ModelTrapHelper nhelper

table

protected TableAssembly table

isReport

protected boolean isReport

isWS

protected boolean isWS

isCheckTrap

protected boolean isCheckTrap

source

protected inetsoft.uql.util.XSourceInfo source

anames

protected String[] anames

initAgg

protected boolean initAgg
Constructor Detail

AbstractModelTrapContext

public AbstractModelTrapContext()
Method Detail

init

protected void init(TableAssembly table,
                    Principal user,
                    boolean checkbase)
Initialize.


init

protected void init(inetsoft.uql.util.XSourceInfo source,
                    Principal user)
Initialize.


init

protected void init(inetsoft.uql.util.XSourceInfo source,
                    Principal user,
                    boolean checkbase)
Initialize.


init

protected void init(Principal user,
                    XDataModel xdm,
                    boolean checkbase)
Initialize.


containTrap

protected boolean containTrap(TableAssembly table)
Check if contains trap.


getAttributes

protected void getAttributes(TableAssembly table,
                             HashSet refs,
                             HashSet aggs,
                             boolean agg)
Get all attributes and aggregate attributes in binding.


getAttributes

protected void getAttributes(TableAssembly table,
                             HashSet refs,
                             HashSet aggs,
                             boolean agg,
                             boolean base)
Get all attributes and aggregate attributes in binding.

Parameters:
table - the table assembly.
refs - all refs.
aggs - all aggregate refs
agg - if true get aggregates.
base - if true get base model field.

addAttributes

protected void addAttributes(inetsoft.uql.asset.internal.CompositeColumnHelper helper,
                             HashSet set,
                             DataRef ref)
Add attributes.


isCheckTrap

public boolean isCheckTrap()
Return if we should check the trap.


checkTrap

protected AbstractModelTrapContext.TrapInfo checkTrap()
Return if new trap is found or not.


getTrapCondition

public String getTrapCondition()
Get trap condition.


getGrayedFields

public DataRef[] getGrayedFields()
Return the grayed fields.


getGrayedFields0

protected DataRef[] getGrayedFields0(DataRef[] allAttributes,
                                     String[] tables,
                                     inetsoft.uql.asset.internal.CompositeColumnHelper chelper)
Get grayed fields.


printFields

protected void printFields(String prefix,
                           DataRef[] fields)
Print fields.


printFields

protected void printFields(String prefix,
                           AbstractCollection fields)
Print fields.


isMeasure

protected boolean isMeasure(DataRef ref)
Check if the data ref is measure.


initAggregateRefs

protected void initAggregateRefs()
Init all aggregate refs.


initAggregateRefs

protected void initAggregateRefs(DataRef[] refs)
Init all aggregate refs.


isDefaultMeasure

protected boolean isDefaultMeasure(DataRef ref)
Check if the data ref is measure.


merge

protected Object[] merge(Object[] objs1,
                         Object[] objs2)
Merge arrays.


getAllAttributes

protected DataRef[] getAllAttributes()
Get all attributes in the binding tree.


isDebugMode

public boolean isDebugMode()
Is debug mode.


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