|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.erm.AbstractModelContext
inetsoft.uql.erm.AbstractModelTrapContext
public abstract class AbstractModelTrapContext
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 |
|---|
protected XPartition partition
protected String[] tables
protected String[] otables
protected DataRef[] aggs
protected DataRef[] oaggs
protected AbstractModelTrapContext.TrapInfo info
protected AbstractModelTrapContext.TrapInfo oinfo
protected ModelTrapHelper nhelper
protected TableAssembly table
protected boolean isReport
protected boolean isWS
protected boolean isCheckTrap
protected inetsoft.uql.util.XSourceInfo source
protected String[] anames
protected boolean initAgg
| Constructor Detail |
|---|
public AbstractModelTrapContext()
| Method Detail |
|---|
protected void init(TableAssembly table,
Principal user,
boolean checkbase)
protected void init(inetsoft.uql.util.XSourceInfo source,
Principal user)
protected void init(inetsoft.uql.util.XSourceInfo source,
Principal user,
boolean checkbase)
protected void init(Principal user,
XDataModel xdm,
boolean checkbase)
protected boolean containTrap(TableAssembly table)
protected void getAttributes(TableAssembly table,
HashSet refs,
HashSet aggs,
boolean agg)
protected void getAttributes(TableAssembly table,
HashSet refs,
HashSet aggs,
boolean agg,
boolean base)
table - the table assembly.refs - all refs.aggs - all aggregate refsagg - if true get aggregates.base - if true get base model field.
protected void addAttributes(inetsoft.uql.asset.internal.CompositeColumnHelper helper,
HashSet set,
DataRef ref)
public boolean isCheckTrap()
protected AbstractModelTrapContext.TrapInfo checkTrap()
public String getTrapCondition()
public DataRef[] getGrayedFields()
protected DataRef[] getGrayedFields0(DataRef[] allAttributes,
String[] tables,
inetsoft.uql.asset.internal.CompositeColumnHelper chelper)
protected void printFields(String prefix,
DataRef[] fields)
protected void printFields(String prefix,
AbstractCollection fields)
protected boolean isMeasure(DataRef ref)
protected void initAggregateRefs()
protected void initAggregateRefs(DataRef[] refs)
protected boolean isDefaultMeasure(DataRef ref)
protected Object[] merge(Object[] objs1,
Object[] objs2)
protected DataRef[] getAllAttributes()
public boolean isDebugMode()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||