Style Intelligence v12.0

inetsoft.uql.asset
Class BoundTableAssembly

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.BoundTableAssembly
All Implemented Interfaces:
Assembly, AssetObject, inetsoft.uql.asset.internal.VariableProvider, TableAssembly, WSAssembly, inetsoft.util.ContentObject, inetsoft.util.XMLSerializable, Serializable, Cloneable
Direct Known Subclasses:
CubeTableAssembly, PhysicalBoundTableAssembly, QueryBoundTableAssembly

public class BoundTableAssembly
extends AbstractTableAssembly

Bound table assembly, bound to a data source.

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
BoundTableAssembly()
          Constructor.
BoundTableAssembly(Worksheet ws, String name)
          Constructor.
 
Method Summary
 boolean addConditionAssembly(ConditionAssembly cond)
          Add one condition assembly.
 void checkValidity()
          Check if the mirror assembly is valid.
 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.
protected  inetsoft.uql.asset.internal.BoundTableAssemblyInfo getBoundTableInfo()
          Get the bound table assembly info.
 ConditionAssembly[] getConditionAssemblies()
          Get all the condition assemblies.
 ConditionAssembly getConditionAssembly(int index)
          Get the condition assembly.
 int getConditionAssemblyCount()
          Get the condition assembly count.
 int getContentCode()
          Get the hash code only considering content.
 void getDependeds(Set set)
          Get the assemblies depended on.
 String getSource()
          Get the source of the table assembly.
 SourceInfo getSourceInfo()
          Get the source info.
 inetsoft.uql.jdbc.SQLHelper getSQLHelper()
          Get the sql helper.
protected  void parseContents(Element elem)
          Parse contents.
 boolean printKey(PrintWriter writer)
          Print the key to identify this content object.
 void removeConditionAssemblies()
          Remove all the condition assemblies.
 boolean removeConditionAssembly(ConditionAssembly cassembly)
          Remove the condition assembly.
 void removeConditionAssembly(int index)
          Remove the condition assembly.
 boolean removeConditionAssembly(String name)
          Remove the condition assembly.
 void renameDepended(String oname, String nname)
          Rename the assemblies depended on.
 void replaceVariables(VariableTable vars)
          Replace all embeded user variables.
 void setSourceInfo(SourceInfo source)
          Set the source info.
 void setWorksheet(Worksheet ws)
          Set the worksheet.
 boolean update()
          Update the assembly.
protected  void writeContents(PrintWriter writer)
          Write contents.
 
Methods inherited from class inetsoft.uql.asset.AbstractTableAssembly
clearCache, clearProperty, getAggregateInfo, getAssemblyType, getColumnSelection, getColumnSelection, getExpressionWidth, getLastModified, getListener, getMaxDisplayRows, getMaxRows, getMinimumSize, getMinimumSize, getMVConditionList, getMVDeleteConditionList, getMVDeletePostConditionList, getMVDeletePreConditionList, getMVUpdateConditionList, getMVUpdatePostConditionList, getMVUpdatePreConditionList, getPostConditionList, getPostRuntimeConditionList, getPreConditionList, getPreRuntimeConditionList, getProperties, getProperty, getRankingConditionList, getRankingRuntimeConditionList, getRuntimeMV, getSortInfo, getTableInfo, getTableInfo, isAggregate, isColumnUsed, isCrosstab, isDistinct, isLiveData, isMVForceAppendUpdates, isPlain, isRuntime, isSQLMergeable, isVisibleTable, mergeVariables, print, printHead, printProperties, renameAggregateInfo, renameConditionListWrapper, 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, setSQLMergeable, setVisibleTable, updateTable, writeData
 
Methods inherited from class inetsoft.uql.asset.AbstractWSAssembly
checkDependency, 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.WSAssembly
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
 

Constructor Detail

BoundTableAssembly

public BoundTableAssembly()
Constructor.


BoundTableAssembly

public BoundTableAssembly(Worksheet ws,
                          String name)
Constructor.

Method Detail

createInfo

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

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

getBoundTableInfo

protected inetsoft.uql.asset.internal.BoundTableAssemblyInfo getBoundTableInfo()
Get the bound table assembly info.

Returns:
the bound table assembly info of the bound 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

getSourceInfo

public SourceInfo getSourceInfo()
Get the source info.

Overrides:
getSourceInfo in class AbstractTableAssembly
Returns:
the source info of the bound table assembly.

setSourceInfo

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

Overrides:
setSourceInfo in class AbstractTableAssembly
Parameters:
source - the specified source info.

getConditionAssembly

public ConditionAssembly getConditionAssembly(int index)
Get the condition assembly.

Parameters:
index - the specified index.
Returns:
the condition assembly.

getConditionAssemblies

public ConditionAssembly[] getConditionAssemblies()
Get all the condition assemblies.

Returns:
all the condition assemblies.

getConditionAssemblyCount

public int getConditionAssemblyCount()
Get the condition assembly count.

Returns:
the condition assembly count.

addConditionAssembly

public boolean addConditionAssembly(ConditionAssembly cond)
Add one condition assembly.

Parameters:
cond - the specified condition assembly.
Returns:
true if successful, false otherwise.

removeConditionAssembly

public void removeConditionAssembly(int index)
Remove the condition assembly.

Parameters:
index - the specified index.

removeConditionAssembly

public boolean removeConditionAssembly(ConditionAssembly cassembly)
Remove the condition assembly.

Parameters:
cassembly - the specified condition assembly.
Returns:
true if successful, false otherwise.

removeConditionAssembly

public boolean removeConditionAssembly(String name)
Remove the condition assembly.

Parameters:
name - the specified condition assembly name.
Returns:
true if successful, false otherwise.

removeConditionAssemblies

public void removeConditionAssemblies()
Remove all the condition assemblies.


update

public boolean update()
Update the assembly.

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

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.

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.

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.

getDependeds

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

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

getSQLHelper

public inetsoft.uql.jdbc.SQLHelper getSQLHelper()
Get the sql helper.


getSource

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

Returns:
the source of the table assembly.

writeContents

protected void writeContents(PrintWriter writer)
Write contents.

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

parseContents

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

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

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.

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.

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