Style Intelligence v12.0

inetsoft.uql.asset
Class AbstractTableAssembly

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

public abstract class AbstractTableAssembly
extends AbstractWSAssembly
implements TableAssembly

Abstract table assembly implements most methods defined in TableAssembly.

See Also:
Serialized Form

Field Summary
protected  AggregateInfo ginfo
           
protected  ConditionListWrapper postconds
           
protected  ConditionListWrapper preconds
           
protected  Properties prop
           
protected  ConditionListWrapper 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
AbstractTableAssembly()
          Constructor.
AbstractTableAssembly(Worksheet ws, String name)
          Constructor.
 
Method Summary
 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.
 AggregateInfo getAggregateInfo()
          Get the group info.
 UserVariable[] getAllVariables()
          Get all variables in the condition value list.
 int getAssemblyType()
          Get the type.
 ColumnSelection getColumnSelection()
          Get the column selection.
 ColumnSelection getColumnSelection(boolean pub)
          Get the column selection.
 int getContentCode()
          Get the hash code only considering content.
 void getDependeds(Set set)
          Get the assemblies depended on.
protected  int getExpressionWidth(boolean embedded)
          Get the expression width.
 long getLastModified()
          Get the lastModified.
 PropertyChangeListener getListener()
          Get the listener to monitor the change of column selection.
 int getMaxDisplayRows()
          Get the maximum display rows.
 int getMaxRows()
          Get the maximum rows.
 Dimension getMinimumSize()
          Get the minimum size.
 Dimension getMinimumSize(boolean embedded)
          Get the minimum size.
 ConditionList getMVConditionList()
          Get mv condition, merged mv update and delete conditions.
 ConditionListWrapper getMVDeleteConditionList()
          Get mv delete condition, merged with mv delete pre and post conditions.
 ConditionListWrapper getMVDeletePostConditionList()
          Get mv delete post condition.
 ConditionListWrapper getMVDeletePreConditionList()
          Get mv delete pre condition.
 ConditionList getMVUpdateConditionList()
          Get mv update condition, merged mv update pre and post conditions.
 ConditionListWrapper getMVUpdatePostConditionList()
          Get mv update post condition.
 ConditionListWrapper getMVUpdatePreConditionList()
          Get mv update pre condition.
 ConditionListWrapper getPostConditionList()
          Get the postprocess condition list.
 ConditionListWrapper getPostRuntimeConditionList()
          Get the postprocess runtime condition list.
 ConditionListWrapper getPreConditionList()
          Get the preprocess condition list.
 ConditionListWrapper getPreRuntimeConditionList()
          Get the preprocess runtime condition list.
 Enumeration getProperties()
          Get all the property keys.
 String getProperty(String key)
          Get the value of a property.
 ConditionListWrapper getRankingConditionList()
          Get the ranking condition list.
 ConditionListWrapper getRankingRuntimeConditionList()
          Get the ranking runtime condition list.
 inetsoft.report.composition.mv.RuntimeMV getRuntimeMV()
          Get the runtime info.
 SortInfo getSortInfo()
          Get the sort info.
 SourceInfo getSourceInfo()
          Get the source info.
 inetsoft.uql.asset.internal.TableAssemblyInfo getTableInfo()
          Get the table assembly info.
 inetsoft.uql.asset.internal.TableAssemblyInfo getTableInfo(boolean tables)
          Get the table assembly info.
 boolean isAggregate()
          Check if is an aggregate.
protected  boolean isColumnUsed(ColumnRef ref)
          Check if the column is used.
 boolean isCrosstab()
          Check if is a crosstab.
 boolean isDistinct()
          Check if only show distinct values.
 boolean isLiveData()
          Check if show live data.
 boolean isMVForceAppendUpdates()
          Gets the flag that determines if the results of an MV update are always appended to the existing data.
 boolean isPlain()
          Check if is a plain table.
 boolean isRuntime()
          Check if the table is in runtime mode.
 boolean isSQLMergeable()
          Check if the sql query is mergeable.
 boolean isVisibleTable()
          Check if the worksheet is block..
protected  void mergeVariables(List list, UserVariable[] vars)
          Merge a variable array to list.
protected  void parseContents(Element elem)
          Parse contents.
 void print(int level, StringBuffer sb)
          Print the table information.
protected  void printHead(int level, StringBuffer sb)
          Print head.
 boolean printKey(PrintWriter writer)
          Print the key to identify this content object.
protected  void printProperties(PrintWriter writer)
          Print table property as cache key if necessary.
protected  void renameAggregateInfo(String oname, String nname)
          Rename the aggregate info.
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.
 void replaceVariables(VariableTable vars)
          Replace all embeded user variables.
 void reset()
          Reset the assembly.
 void resetColumnSelection()
          Reset column selection.
 void setAggregate(boolean aggregate)
          Set the aggregate flag.
 void setAggregateInfo(AggregateInfo info)
          Set the group info.
 void setColumnPropertyName(String name)
          Set column changed property name.
 void setColumnSelection(ColumnSelection selection)
          Set the column selection.
 void setColumnSelection(ColumnSelection selection, boolean pub)
          Set the column selection.
protected  void setConditionListWrapperWorksheet(ConditionListWrapper conds, Worksheet ws)
          Set the worksheet of the conditon list wrapper.
 void setDistinct(boolean distinct)
          Set the distinct option.
 void setLastModified(long lastModified)
          Set the lastModified.
 void setListener(PropertyChangeListener listener)
          Set the listener to monitor the change of column selection.
 void setLiveData(boolean live)
          Set the live data option.
 void setMaxDisplayRows(int row)
          Set the maximum display rows.
 void setMaxRows(int row)
          Set the maximum rows.
 void setMVDeletePostConditionList(ConditionListWrapper conds)
          Set mv delete post condition.
 void setMVDeletePreConditionList(ConditionListWrapper conds)
          Set mv delete pre condition.
 void setMVForceAppendUpdates(boolean mvForceAppendUpdates)
          Sets the flag that determines if the results of an MV update are always appended to the existing data.
 void setMVUpdatePostConditionList(ConditionListWrapper conds)
          Set mv update post condition.
 void setMVUpdatePreConditionList(ConditionListWrapper conds)
          Set mv update pre condition.
 void setPostConditionList(ConditionListWrapper conds)
          Set the postprocess condition list.
 void setPostRuntimeConditionList(ConditionListWrapper conds)
          Set the postprocess runtime condition list.
 void setPreConditionList(ConditionListWrapper conds)
          Set the preprocess condition list.
 void setPreRuntimeConditionList(ConditionListWrapper conds)
          Set the preprocess runtime condition list.
 void setProperty(String key, String value)
          Set the value a property.
protected  void setPublicColumnSelection(ColumnSelection selection)
           
 void setRankingConditionList(ConditionListWrapper conds)
          Set the ranking condition list.
 void setRankingRuntimeConditionList(ConditionListWrapper conds)
          Set the ranking runtime condition list.
 void setRuntime(boolean runtime)
          Set the runtime mode.
 void setRuntimeMV(inetsoft.report.composition.mv.RuntimeMV rinfo)
          Set the runtime MV.
 void setSize(Dimension size)
          Set the size.
 void setSortInfo(SortInfo info)
          Set the sort info.
 void setSourceInfo(SourceInfo source)
          Set the source info.
 void setSQLMergeable(boolean mergeable)
          Set whether the sql query is mergeable.
 void setVisibleTable(boolean visibleTable)
          Set whether the worksheet is block..
 void setWorksheet(Worksheet ws)
          Set the worksheet.
 boolean update()
          Update the assembly.
 void updateTable(TableAssembly table)
          update properties of table.
protected  void writeContents(PrintWriter writer)
          Write contents.
 void writeData(JarOutputStream out)
          Write out data content of this table.
 
Methods inherited from class inetsoft.uql.asset.AbstractWSAssembly
checkDependency, checkValidity, copyAssembly, createWSAssembly, getClassName, getDescription, getInfo, getName, getPosition, getSheet, getSize, getWorksheet, getWSAssemblyInfo, isComposed, 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.TableAssembly
getSource
 
Methods inherited from interface inetsoft.uql.asset.WSAssembly
checkValidity, copyAssembly, getDescription, getWorksheet, getWSAssemblyInfo, isComposed, 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
 

Field Detail

prop

protected Properties prop

preconds

protected ConditionListWrapper preconds

postconds

protected ConditionListWrapper postconds

topns

protected ConditionListWrapper topns

ginfo

protected AggregateInfo ginfo
Constructor Detail

AbstractTableAssembly

public AbstractTableAssembly()
Constructor.


AbstractTableAssembly

public AbstractTableAssembly(Worksheet ws,
                             String name)
Constructor.

Method Detail

createInfo

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

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

getTableInfo

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

Specified by:
getTableInfo in interface TableAssembly
Returns:
the table assembly info of the table assembly.

getTableInfo

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

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

getAssemblyType

public int getAssemblyType()
Get the type.

Specified by:
getAssemblyType in interface Assembly
Returns:
the type of the assembly.

getMinimumSize

public Dimension getMinimumSize()
Get the minimum size.

Specified by:
getMinimumSize in interface Assembly
Returns:
the minimum size of the assembly.

getMinimumSize

public Dimension getMinimumSize(boolean embedded)
Get the minimum size.

Specified by:
getMinimumSize in interface TableAssembly
Parameters:
embedded - true to embed the table assembly.
Returns:
the minimum size of the assembly.

setSize

public void setSize(Dimension size)
Set the size.

Specified by:
setSize in interface Assembly
Overrides:
setSize in class AbstractWSAssembly
Parameters:
size - the specified size.

update

public boolean update()
Update the assembly.

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

clearCache

public void clearCache()
Clear cache.

Specified by:
clearCache in interface TableAssembly

replaceVariables

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

Specified by:
replaceVariables in interface WSAssembly
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
Returns:
the variable list.

mergeVariables

protected void mergeVariables(List list,
                              UserVariable[] vars)
Merge a variable array to list.

Parameters:
list - the specified list.
vars - the specified variable array.

getExpressionWidth

protected int getExpressionWidth(boolean embedded)
Get the expression width.

Parameters:
embedded - true to embed the table assembly.
Returns:
the expression width of the table assembly.

isCrosstab

public boolean isCrosstab()
Check if is a crosstab.

Returns:
true if is a crosstab, false otherwise.

getColumnSelection

public ColumnSelection getColumnSelection()
Get the column selection.

Specified by:
getColumnSelection in interface TableAssembly
Returns:
the column selection of the table assembly.

getColumnSelection

public ColumnSelection getColumnSelection(boolean pub)
Get the column selection.

Specified by:
getColumnSelection in interface TableAssembly
Parameters:
pub - true indicates the public column selection, false otherwise.
Returns:
the column selection of the table assembly.

setColumnSelection

public void setColumnSelection(ColumnSelection selection)
Set the column selection.

Specified by:
setColumnSelection in interface TableAssembly
Parameters:
selection - the specified selection.

resetColumnSelection

public void resetColumnSelection()
Reset column selection.

Specified by:
resetColumnSelection in interface TableAssembly

setColumnSelection

public void setColumnSelection(ColumnSelection selection,
                               boolean pub)
Set the column selection.

Specified by:
setColumnSelection in interface TableAssembly
Parameters:
selection - the specified selection.
pub - true indicates the public column selection, false otherwise.

setPublicColumnSelection

protected void setPublicColumnSelection(ColumnSelection selection)

isColumnUsed

protected boolean isColumnUsed(ColumnRef ref)
Check if the column is used.


setColumnPropertyName

public void setColumnPropertyName(String name)
Set column changed property name.

Specified by:
setColumnPropertyName in interface TableAssembly

isPlain

public boolean isPlain()
Check if is a plain table.

Specified by:
isPlain in interface TableAssembly
Returns:
true if yes, false otherwise.

getPreRuntimeConditionList

public ConditionListWrapper getPreRuntimeConditionList()
Get the preprocess runtime condition list.

Specified by:
getPreRuntimeConditionList in interface TableAssembly
Returns:
the preprocess runtime condition list of the table assembly.

setPreRuntimeConditionList

public void setPreRuntimeConditionList(ConditionListWrapper conds)
Set the preprocess runtime condition list.

Specified by:
setPreRuntimeConditionList in interface TableAssembly
Parameters:
conds - the specified preprocess runtime condition list.

getPostRuntimeConditionList

public ConditionListWrapper getPostRuntimeConditionList()
Get the postprocess runtime condition list.

Specified by:
getPostRuntimeConditionList in interface TableAssembly
Returns:
the postprocess runtime condition list of the table assembly.

setPostRuntimeConditionList

public void setPostRuntimeConditionList(ConditionListWrapper conds)
Set the postprocess runtime condition list.

Specified by:
setPostRuntimeConditionList in interface TableAssembly
Parameters:
conds - the specified postprocess runtime condition list.

getRankingRuntimeConditionList

public ConditionListWrapper getRankingRuntimeConditionList()
Get the ranking runtime condition list.

Specified by:
getRankingRuntimeConditionList in interface TableAssembly
Returns:
the ranking runtime condition list of the table assembly.

setRankingRuntimeConditionList

public void setRankingRuntimeConditionList(ConditionListWrapper conds)
Set the ranking runtime condition list.

Specified by:
setRankingRuntimeConditionList in interface TableAssembly
Parameters:
conds - the specified ranking runtime condition list.

getPreConditionList

public ConditionListWrapper getPreConditionList()
Get the preprocess condition list.

Specified by:
getPreConditionList in interface TableAssembly
Returns:
the preprocess condition list of the table assembly.

setPreConditionList

public void setPreConditionList(ConditionListWrapper conds)
Set the preprocess condition list.

Specified by:
setPreConditionList in interface TableAssembly
Parameters:
conds - the specified preprocess condition list.

getPostConditionList

public ConditionListWrapper getPostConditionList()
Get the postprocess condition list.

Specified by:
getPostConditionList in interface TableAssembly
Returns:
the postprocess condition list of the table assembly..

setPostConditionList

public void setPostConditionList(ConditionListWrapper conds)
Set the postprocess condition list.

Specified by:
setPostConditionList in interface TableAssembly
Parameters:
conds - the specified postprocess condition list.

getRankingConditionList

public ConditionListWrapper getRankingConditionList()
Get the ranking condition list.

Specified by:
getRankingConditionList in interface TableAssembly
Returns:
the ranking condition list of the table assembly..

setRankingConditionList

public void setRankingConditionList(ConditionListWrapper conds)
Set the ranking condition list.

Specified by:
setRankingConditionList in interface TableAssembly
Parameters:
conds - the specified ranking condition list.

getMVConditionList

public ConditionList getMVConditionList()
Get mv condition, merged mv update and delete conditions.

Specified by:
getMVConditionList in interface TableAssembly

getMVUpdateConditionList

public ConditionList getMVUpdateConditionList()
Get mv update condition, merged mv update pre and post conditions.

Specified by:
getMVUpdateConditionList in interface TableAssembly

getMVDeleteConditionList

public ConditionListWrapper getMVDeleteConditionList()
Get mv delete condition, merged with mv delete pre and post conditions.

Specified by:
getMVDeleteConditionList in interface TableAssembly

getMVUpdatePreConditionList

public ConditionListWrapper getMVUpdatePreConditionList()
Get mv update pre condition.

Specified by:
getMVUpdatePreConditionList in interface TableAssembly

setMVUpdatePreConditionList

public void setMVUpdatePreConditionList(ConditionListWrapper conds)
Set mv update pre condition.

Specified by:
setMVUpdatePreConditionList in interface TableAssembly

getMVUpdatePostConditionList

public ConditionListWrapper getMVUpdatePostConditionList()
Get mv update post condition.

Specified by:
getMVUpdatePostConditionList in interface TableAssembly

setMVUpdatePostConditionList

public void setMVUpdatePostConditionList(ConditionListWrapper conds)
Set mv update post condition.

Specified by:
setMVUpdatePostConditionList in interface TableAssembly

getMVDeletePreConditionList

public ConditionListWrapper getMVDeletePreConditionList()
Get mv delete pre condition.

Specified by:
getMVDeletePreConditionList in interface TableAssembly

setMVDeletePreConditionList

public void setMVDeletePreConditionList(ConditionListWrapper conds)
Set mv delete pre condition.

Specified by:
setMVDeletePreConditionList in interface TableAssembly

getMVDeletePostConditionList

public ConditionListWrapper getMVDeletePostConditionList()
Get mv delete post condition.

Specified by:
getMVDeletePostConditionList in interface TableAssembly

setMVDeletePostConditionList

public void setMVDeletePostConditionList(ConditionListWrapper conds)
Set mv delete post condition.

Specified by:
setMVDeletePostConditionList in interface TableAssembly

isMVForceAppendUpdates

public boolean isMVForceAppendUpdates()
Gets the flag that determines if the results of an MV update are always appended to the existing data.

Specified by:
isMVForceAppendUpdates in interface TableAssembly
Returns:
true to force updates to be appended.

setMVForceAppendUpdates

public void setMVForceAppendUpdates(boolean mvForceAppendUpdates)
Sets the flag that determines if the results of an MV update are always appended to the existing data.

Specified by:
setMVForceAppendUpdates in interface TableAssembly
Parameters:
mvForceAppendUpdates - true to force updates to be appended.

getAggregateInfo

public AggregateInfo getAggregateInfo()
Get the group info.

Specified by:
getAggregateInfo in interface TableAssembly
Returns:
the group info of the table assembly.

setAggregateInfo

public void setAggregateInfo(AggregateInfo info)
Set the group info.

Specified by:
setAggregateInfo in interface TableAssembly
Parameters:
info - the specified group info.

getSortInfo

public SortInfo getSortInfo()
Get the sort info.

Specified by:
getSortInfo in interface TableAssembly
Returns:
the sort info of the table assembly.

setSortInfo

public void setSortInfo(SortInfo info)
Set the sort info.

Specified by:
setSortInfo in interface TableAssembly
Parameters:
info - the specified sort info.

getSourceInfo

public SourceInfo getSourceInfo()
Get the source info.

Returns:
the source info of the bound table assembly.

setSourceInfo

public void setSourceInfo(SourceInfo source)
Set the source info.

Parameters:
source - the specified source info.

getMaxRows

public int getMaxRows()
Get the maximum rows.

Specified by:
getMaxRows in interface TableAssembly
Returns:
the maximum rows of the table assembly.

setMaxRows

public void setMaxRows(int row)
Set the maximum rows.

Specified by:
setMaxRows in interface TableAssembly
Parameters:
row - the specified maximum rows.

getMaxDisplayRows

public int getMaxDisplayRows()
Get the maximum display rows.

Specified by:
getMaxDisplayRows in interface TableAssembly
Returns:
the maximum display rows of the table assembly.

setMaxDisplayRows

public void setMaxDisplayRows(int row)
Set the maximum display rows.

Specified by:
setMaxDisplayRows in interface TableAssembly
Parameters:
row - the specified maximum display rows.

isDistinct

public boolean isDistinct()
Check if only show distinct values.

Specified by:
isDistinct in interface TableAssembly
Returns:
true to show distinct values only, false otherwise.

setDistinct

public void setDistinct(boolean distinct)
Set the distinct option.

Specified by:
setDistinct in interface TableAssembly
Parameters:
distinct - true to show distinct values only, false otherwise.

isLiveData

public boolean isLiveData()
Check if show live data.

Specified by:
isLiveData in interface TableAssembly
Returns:
true to show live data, false to show metadata.

setLiveData

public void setLiveData(boolean live)
Set the live data option.

Specified by:
setLiveData in interface TableAssembly
Parameters:
live - true to show live data, false to show metadata.

isRuntime

public boolean isRuntime()
Check if the table is in runtime mode.

Specified by:
isRuntime in interface TableAssembly
Returns:
true if in runtime mode, false otherwise.

setRuntime

public void setRuntime(boolean runtime)
Set the runtime mode.

Specified by:
setRuntime in interface TableAssembly
Parameters:
runtime - true if in runtime mode, false otherwise.

isAggregate

public boolean isAggregate()
Check if is an aggregate.

Specified by:
isAggregate in interface TableAssembly
Returns:
true if is an aggregate.

setAggregate

public void setAggregate(boolean aggregate)
Set the aggregate flag.

Specified by:
setAggregate in interface TableAssembly
Parameters:
aggregate - true if is an aggregate.

isSQLMergeable

public boolean isSQLMergeable()
Check if the sql query is mergeable.

Specified by:
isSQLMergeable in interface TableAssembly
Returns:
true if the sql query is mergeable, false otherwise.

setSQLMergeable

public void setSQLMergeable(boolean mergeable)
Set whether the sql query is mergeable.

Specified by:
setSQLMergeable in interface TableAssembly
Parameters:
mergeable - true if the sql query is mergeable, false otherwise.

isVisibleTable

public boolean isVisibleTable()
Check if the worksheet is block..

Specified by:
isVisibleTable in interface TableAssembly
Returns:
true if the worksheet is block., false otherwise.

setVisibleTable

public void setVisibleTable(boolean visibleTable)
Set whether the worksheet is block..

Specified by:
setVisibleTable in interface TableAssembly
Parameters:
visible - true if the worksheet is block., false otherwise.

writeContents

protected void writeContents(PrintWriter writer)
Write contents.

Overrides:
writeContents in class AbstractAssembly
Parameters:
writer - the specified writer.

parseContents

protected void parseContents(Element elem)
                      throws Exception
Parse contents.

Overrides:
parseContents in class AbstractAssembly
Parameters:
elem - the specified xml element.
Throws:
Exception

renameConditionListWrapper

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

Parameters:
conds - the specified condition list wrapper.
oname - the specified old name.
nname - the specified new name.
ws - the associated worksheet.

setWorksheet

public void setWorksheet(Worksheet ws)
Set the worksheet.

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

setConditionListWrapperWorksheet

protected void setConditionListWrapperWorksheet(ConditionListWrapper conds,
                                                Worksheet ws)
Set the worksheet of the conditon list wrapper.

Parameters:
conds - the specified condition list wrapper.
ws - the associated worksheet.

getDependeds

public void getDependeds(Set set)
Get the assemblies depended on.

Specified by:
getDependeds in interface Assembly
Parameters:
set - the set stores the assemblies depended on.

renameDepended

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

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

renameAggregateInfo

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

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

reset

public void reset()
Reset the assembly.

Specified by:
reset in interface WSAssembly
Overrides:
reset in class AbstractWSAssembly

clone

public Object clone()
Clone the object.

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

setRuntimeMV

public void setRuntimeMV(inetsoft.report.composition.mv.RuntimeMV rinfo)
Set the runtime MV.

Specified by:
setRuntimeMV in interface TableAssembly

getRuntimeMV

public inetsoft.report.composition.mv.RuntimeMV getRuntimeMV()
Get the runtime info.

Specified by:
getRuntimeMV in interface TableAssembly

getProperty

public String getProperty(String key)
Get the value of a property.

Specified by:
getProperty in interface TableAssembly
Parameters:
key - the specified property name.
Returns:
the value of the property.

setProperty

public void setProperty(String key,
                        String value)
Set the value a property.

Specified by:
setProperty in interface TableAssembly
Parameters:
key - the property name.
value - the property value, null to remove the property.

getLastModified

public long getLastModified()
Get the lastModified.

Specified by:
getLastModified in interface TableAssembly
Returns:
lastModified.

setLastModified

public void setLastModified(long lastModified)
Set the lastModified.

Specified by:
setLastModified in interface TableAssembly
Parameters:
lastModified. -

clearProperty

public void clearProperty(String key)
Clear property.

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

getProperties

public Enumeration getProperties()
Get all the property keys.

Specified by:
getProperties in interface TableAssembly
Returns:
all the property keys.

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
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
Parameters:
obj - the specified object.
Returns:
true if equals the object in content, false otherwise.

getContentCode

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

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

print

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

Specified by:
print in interface TableAssembly

printHead

protected void printHead(int level,
                         StringBuffer sb)
Print head.


printProperties

protected void printProperties(PrintWriter writer)
                        throws Exception
Print table property as cache key if necessary.

Throws:
Exception

setListener

public void setListener(PropertyChangeListener listener)
Set the listener to monitor the change of column selection.


getListener

public PropertyChangeListener getListener()
Get the listener to monitor the change of column selection.


writeData

public void writeData(JarOutputStream out)
Write out data content of this table.

Specified by:
writeData in interface TableAssembly

updateTable

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

Specified by:
updateTable in interface TableAssembly

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