Style Intelligence v12.0

inetsoft.uql.asset
Class ComposedTableAssembly

java.lang.Object
  extended by inetsoft.uql.asset.AbstractAssembly
      extended by inetsoft.uql.asset.AbstractWSAssembly
          extended by inetsoft.uql.asset.AbstractTableAssembly
              extended by inetsoft.uql.asset.ComposedTableAssembly
All Implemented Interfaces:
Assembly, AssetObject, inetsoft.uql.asset.internal.VariableProvider, TableAssembly, WSAssembly, inetsoft.util.ContentObject, inetsoft.util.XMLSerializable, Serializable, Cloneable
Direct Known Subclasses:
CompositeTableAssembly, MirrorTableAssembly, RotatedTableAssembly, UnpivotTableAssembly

public abstract class ComposedTableAssembly
extends AbstractTableAssembly

composed table assembly, table asesmble composed of sub table assemblies.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class inetsoft.uql.asset.AbstractTableAssembly
ginfo, postconds, preconds, prop, topns
 
Fields inherited from class inetsoft.uql.asset.AbstractWSAssembly
info, ws
 
Fields inherited from interface inetsoft.uql.asset.Assembly
CUBE_VS, DETAIL, EMBEDDED, FIELD, SELECTION, TABLE_VS
 
Constructor Summary
ComposedTableAssembly()
          Constructor.
ComposedTableAssembly(Worksheet ws, String name)
          Constructor.
 
Method Summary
 void checkValidity()
          Check if the mirror assembly is valid.
 void clearCache()
          Clear cache.
 void clearProperty(String key)
          Clear property.
 Object clone()
          Clone the object.
protected  inetsoft.uql.asset.internal.WSAssemblyInfo createInfo()
          Create assembly info.
 boolean equalsContent(Object obj)
          Check if equals another object in content.
 UserVariable[] getAllVariables()
          Get all variables in the condition value list.
 UserVariable[] getAllVariables(boolean recursive)
          Get all variables in the condition value list.
protected  inetsoft.uql.asset.internal.ComposedTableAssemblyInfo getComposedTableInfo()
          Get the composed table assembly info.
protected  inetsoft.uql.asset.internal.ComposedTableAssemblyInfo getComposedTableInfo(boolean sub)
          Get the composed table assembly info.
 int getContentCode()
          Get the hash code only considering content.
 String getSource()
          Get the source of the table assembly.
protected abstract  TableAssembly[] getTableAssemblies()
          Get all the table assemblies.
 TableAssembly[] getTableAssemblies(boolean cache)
          Get all the table assemblies.
 TableAssembly getTableAssembly(String name)
          Get the sub table assembly.
abstract  int getTableAssemblyCount()
          Get the table assembly count.
 inetsoft.uql.asset.internal.TableAssemblyInfo getTableInfo(boolean sub)
          Get the table assembly info.
abstract  String[] getTableNames()
          Get the table names.
 boolean isComposed()
          Check if is composed.
 boolean isHierarchical()
          Check if show in a hierarchical mode.
 boolean isIconized(String child)
          Check whether the child assembly should be iconized.
 void print(int level, StringBuffer sb)
          Print the table information.
 boolean printKey(PrintWriter writer)
          Print the key to identify this content object.
protected  void renameAggregateInfo(String oname, String nname)
          Rename the aggregate info.
protected  void renameColumnSelection(ColumnSelection columns, String oname, String nname)
          Rename the column selection.
protected  void renameConditionListWrapper(ConditionListWrapper conds, String oname, String nname, Worksheet ws)
          Rename the conditon list wrapper.
 void renameDepended(String oname, String nname)
          Rename the assemblies depended on.
protected  void renameSortInfo(String oname, String nname)
          Rename the sort info.
 void replaceVariables(VariableTable vars)
          Replace all embeded user variables.
 void setHierarchical(boolean hier)
          Set the hierarchical option.
 void setIconized(String child, boolean iconized)
          Set whether the child assembly should be iconized.
abstract  boolean setTableAssemblies(TableAssembly[] tables)
          Set all the table assemblies.
 void setWorksheet(Worksheet ws)
          Set the worksheet.
 boolean update()
          Update the assembly.
 void updateTable(TableAssembly table)
          update properties of table.
 
Methods inherited from class inetsoft.uql.asset.AbstractTableAssembly
getAggregateInfo, getAssemblyType, getColumnSelection, getColumnSelection, getDependeds, getExpressionWidth, getLastModified, getListener, getMaxDisplayRows, getMaxRows, getMinimumSize, getMinimumSize, getMVConditionList, getMVDeleteConditionList, getMVDeletePostConditionList, getMVDeletePreConditionList, getMVUpdateConditionList, getMVUpdatePostConditionList, getMVUpdatePreConditionList, getPostConditionList, getPostRuntimeConditionList, getPreConditionList, getPreRuntimeConditionList, getProperties, getProperty, getRankingConditionList, getRankingRuntimeConditionList, getRuntimeMV, getSortInfo, getSourceInfo, getTableInfo, isAggregate, isColumnUsed, isCrosstab, isDistinct, isLiveData, isMVForceAppendUpdates, isPlain, isRuntime, isSQLMergeable, isVisibleTable, mergeVariables, parseContents, printHead, printProperties, reset, resetColumnSelection, setAggregate, setAggregateInfo, setColumnPropertyName, setColumnSelection, setColumnSelection, setConditionListWrapperWorksheet, setDistinct, setLastModified, setListener, setLiveData, setMaxDisplayRows, setMaxRows, setMVDeletePostConditionList, setMVDeletePreConditionList, setMVForceAppendUpdates, setMVUpdatePostConditionList, setMVUpdatePreConditionList, setPostConditionList, setPostRuntimeConditionList, setPreConditionList, setPreRuntimeConditionList, setProperty, setPublicColumnSelection, setRankingConditionList, setRankingRuntimeConditionList, setRuntime, setRuntimeMV, setSize, setSortInfo, setSourceInfo, setSQLMergeable, setVisibleTable, writeContents, writeData
 
Methods inherited from class inetsoft.uql.asset.AbstractWSAssembly
checkDependency, copyAssembly, createWSAssembly, getClassName, getDescription, getInfo, getName, getPosition, getSheet, getSize, getWorksheet, getWSAssemblyInfo, isCondition, isDateCondition, isIconized, isNamedGroup, isOuter, isTable, isVariable, setDescription, setIconized, setName, setOuter, setPosition, setVisible
 
Methods inherited from class inetsoft.uql.asset.AbstractAssembly
addr, equals, getAbsoluteName, getAssemblyEntry, getBounds, hashCode, isEditable, isVisible, parseAttributes, parseXML, setBounds, toString, writeAttributes, writeXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface inetsoft.uql.asset.WSAssembly
copyAssembly, getDescription, getWorksheet, getWSAssemblyInfo, isCondition, isDateCondition, isIconized, isNamedGroup, isOuter, isTable, isVariable, setDescription, setIconized, setOuter, setVisible
 
Methods inherited from interface inetsoft.uql.asset.Assembly
addr, checkDependency, getAbsoluteName, getAssemblyEntry, getBounds, getInfo, getName, getPosition, getSheet, getSize, isEditable, isVisible, setBounds, setPosition
 
Methods inherited from interface inetsoft.util.XMLSerializable
parseXML, writeXML
 

Constructor Detail

ComposedTableAssembly

public ComposedTableAssembly()
Constructor.


ComposedTableAssembly

public ComposedTableAssembly(Worksheet ws,
                             String name)
Constructor.

Method Detail

getTableAssemblyCount

public abstract int getTableAssemblyCount()
Get the table assembly count.

Returns:
the table assembly count.

getTableAssemblies

protected abstract TableAssembly[] getTableAssemblies()
Get all the table assemblies.

Returns:
all the table assemblies of the composite table assembly.

setTableAssemblies

public abstract boolean setTableAssemblies(TableAssembly[] tables)
Set all the table assemblies.

Parameters:
tables - the specified table assemblies.
Returns:
false if the change is rejected.

getTableNames

public abstract String[] getTableNames()
Get the table names.


getTableAssemblies

public TableAssembly[] getTableAssemblies(boolean cache)
Get all the table assemblies.

Parameters:
cache - true to cache the cloned table assembies, false otherwise.
Returns:
all the table assemblies of the composite table assembly.

getTableAssembly

public TableAssembly getTableAssembly(String name)
Get the sub table assembly.


clearCache

public void clearCache()
Clear cache.

Specified by:
clearCache in interface TableAssembly
Overrides:
clearCache in class AbstractTableAssembly

isComposed

public boolean isComposed()
Check if is composed.

Specified by:
isComposed in interface WSAssembly
Overrides:
isComposed in class AbstractWSAssembly
Returns:
true if composed, false otherwise.

isHierarchical

public boolean isHierarchical()
Check if show in a hierarchical mode.

Returns:
true to show in a hierarchical mode, false to show metadata.

setHierarchical

public void setHierarchical(boolean hier)
Set the hierarchical option.

Parameters:
hier - true to show in a hierarchical mode, false to show metadata.

setIconized

public void setIconized(String child,
                        boolean iconized)
Set whether the child assembly should be iconized.


isIconized

public boolean isIconized(String child)
Check whether the child assembly should be iconized.


createInfo

protected inetsoft.uql.asset.internal.WSAssemblyInfo createInfo()
Create assembly info.

Overrides:
createInfo in class AbstractTableAssembly
Returns:
the associated assembly info.

getTableInfo

public inetsoft.uql.asset.internal.TableAssemblyInfo getTableInfo(boolean sub)
Get the table assembly info.

Specified by:
getTableInfo in interface TableAssembly
Overrides:
getTableInfo in class AbstractTableAssembly
Parameters:
sub - true to include sub tables' infos, false otherwise.
Returns:
the table assembly info of the table assembly.

getComposedTableInfo

protected inetsoft.uql.asset.internal.ComposedTableAssemblyInfo getComposedTableInfo()
Get the composed table assembly info.

Returns:
the composed table assembly info of the table assembly.

getComposedTableInfo

protected inetsoft.uql.asset.internal.ComposedTableAssemblyInfo getComposedTableInfo(boolean sub)
Get the composed table assembly info.

Parameters:
sub - true to include sub tables infos, false otherwise.
Returns:
the composite table assembly info of the table assembly.

checkValidity

public void checkValidity()
                   throws Exception
Check if the mirror assembly is valid.

Specified by:
checkValidity in interface WSAssembly
Overrides:
checkValidity in class AbstractWSAssembly
Throws:
Exception

update

public boolean update()
Update the assembly.

Specified by:
update in interface WSAssembly
Overrides:
update in class AbstractTableAssembly
Returns:
true if successful, false otherwise.

replaceVariables

public void replaceVariables(VariableTable vars)
Replace all embeded user variables.

Specified by:
replaceVariables in interface WSAssembly
Overrides:
replaceVariables in class AbstractTableAssembly
Parameters:
vars - the specified variable table.

getAllVariables

public UserVariable[] getAllVariables()
Get all variables in the condition value list.

Specified by:
getAllVariables in interface inetsoft.uql.asset.internal.VariableProvider
Specified by:
getAllVariables in interface TableAssembly
Overrides:
getAllVariables in class AbstractTableAssembly
Returns:
the variable list.

getAllVariables

public UserVariable[] getAllVariables(boolean recursive)
Get all variables in the condition value list.

Returns:
the variable list.

getSource

public String getSource()
Get the source of the table assembly.

Returns:
the source of the table assembly.

renameDepended

public void renameDepended(String oname,
                           String nname)
Rename the assemblies depended on.

Specified by:
renameDepended in interface Assembly
Overrides:
renameDepended in class AbstractTableAssembly
Parameters:
oname - the specified old name.
nname - the specified new name.

renameColumnSelection

protected void renameColumnSelection(ColumnSelection columns,
                                     String oname,
                                     String nname)
Rename the column selection.

Parameters:
columns - the specified column selections.
oname - the specified old name.
nname - the specified new name.

renameConditionListWrapper

protected void renameConditionListWrapper(ConditionListWrapper conds,
                                          String oname,
                                          String nname,
                                          Worksheet ws)
Rename the conditon list wrapper.

Overrides:
renameConditionListWrapper in class AbstractTableAssembly
Parameters:
conds - the specified condition list wrapper.
oname - the specified old name.
nname - the specified new name.
ws - the associated worksheet.

renameAggregateInfo

protected void renameAggregateInfo(String oname,
                                   String nname)
Rename the aggregate info.

Overrides:
renameAggregateInfo in class AbstractTableAssembly
Parameters:
oname - the specified old name.
nname - the specified new name.

renameSortInfo

protected void renameSortInfo(String oname,
                              String nname)
Rename the sort info.

Parameters:
oname - the specified old name.
nname - the specified new name.

getContentCode

public int getContentCode()
Get the hash code only considering content.

Specified by:
getContentCode in interface TableAssembly
Overrides:
getContentCode in class AbstractTableAssembly
Returns:
the hash code only considering content.

printKey

public boolean printKey(PrintWriter writer)
                 throws Exception
Print the key to identify this content object. If the keys of two content objects are equal, the content objects are equal too.

Specified by:
printKey in interface inetsoft.util.ContentObject
Overrides:
printKey in class AbstractTableAssembly
Throws:
Exception

equalsContent

public boolean equalsContent(Object obj)
Check if equals another object in content.

Specified by:
equalsContent in interface TableAssembly
Specified by:
equalsContent in interface inetsoft.util.ContentObject
Overrides:
equalsContent in class AbstractTableAssembly
Parameters:
obj - the specified object.
Returns:
true if equals the object in content, false otherwise.

clone

public Object clone()
Clone the object.

Specified by:
clone in interface Assembly
Specified by:
clone in interface AssetObject
Overrides:
clone in class AbstractTableAssembly
Returns:
the cloned object.

clearProperty

public void clearProperty(String key)
Clear property.

Specified by:
clearProperty in interface TableAssembly
Overrides:
clearProperty in class AbstractTableAssembly
Parameters:
key - the property name.

print

public void print(int level,
                  StringBuffer sb)
Print the table information.

Specified by:
print in interface TableAssembly
Overrides:
print in class AbstractTableAssembly

setWorksheet

public void setWorksheet(Worksheet ws)
Set the worksheet.

Specified by:
setWorksheet in interface WSAssembly
Overrides:
setWorksheet in class AbstractTableAssembly
Parameters:
ws - the specified worksheet.

updateTable

public void updateTable(TableAssembly table)
update properties of table.

Specified by:
updateTable in interface TableAssembly
Overrides:
updateTable in class AbstractTableAssembly

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