|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.asset.AbstractAssembly
inetsoft.uql.asset.AbstractWSAssembly
inetsoft.uql.asset.AbstractTableAssembly
public abstract class AbstractTableAssembly
Abstract table assembly implements most methods defined in TableAssembly.
| 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 |
|---|
protected Properties prop
protected ConditionListWrapper preconds
protected ConditionListWrapper postconds
protected ConditionListWrapper topns
protected AggregateInfo ginfo
| Constructor Detail |
|---|
public AbstractTableAssembly()
public AbstractTableAssembly(Worksheet ws,
String name)
| Method Detail |
|---|
protected inetsoft.uql.asset.internal.WSAssemblyInfo createInfo()
createInfo in class AbstractWSAssemblypublic inetsoft.uql.asset.internal.TableAssemblyInfo getTableInfo()
getTableInfo in interface TableAssemblypublic inetsoft.uql.asset.internal.TableAssemblyInfo getTableInfo(boolean tables)
getTableInfo in interface TableAssemblytables - true to include sub tables' infos, false
otherwise.
public int getAssemblyType()
getAssemblyType in interface Assemblypublic Dimension getMinimumSize()
getMinimumSize in interface Assemblypublic Dimension getMinimumSize(boolean embedded)
getMinimumSize in interface TableAssemblyembedded - true to embed the table assembly.
public void setSize(Dimension size)
setSize in interface AssemblysetSize in class AbstractWSAssemblysize - the specified size.public boolean update()
update in interface WSAssemblyupdate in class AbstractWSAssemblypublic void clearCache()
clearCache in interface TableAssemblypublic void replaceVariables(VariableTable vars)
replaceVariables in interface WSAssemblyvars - the specified variable table.public UserVariable[] getAllVariables()
getAllVariables in interface inetsoft.uql.asset.internal.VariableProvidergetAllVariables in interface TableAssembly
protected void mergeVariables(List list,
UserVariable[] vars)
list - the specified list.vars - the specified variable array.protected int getExpressionWidth(boolean embedded)
embedded - true to embed the table assembly.
public boolean isCrosstab()
public ColumnSelection getColumnSelection()
getColumnSelection in interface TableAssemblypublic ColumnSelection getColumnSelection(boolean pub)
getColumnSelection in interface TableAssemblypub - true indicates the public column selection,
false otherwise.
public void setColumnSelection(ColumnSelection selection)
setColumnSelection in interface TableAssemblyselection - the specified selection.public void resetColumnSelection()
resetColumnSelection in interface TableAssembly
public void setColumnSelection(ColumnSelection selection,
boolean pub)
setColumnSelection in interface TableAssemblyselection - the specified selection.pub - true indicates the public column selection,
false otherwise.protected void setPublicColumnSelection(ColumnSelection selection)
protected boolean isColumnUsed(ColumnRef ref)
public void setColumnPropertyName(String name)
setColumnPropertyName in interface TableAssemblypublic boolean isPlain()
isPlain in interface TableAssemblypublic ConditionListWrapper getPreRuntimeConditionList()
getPreRuntimeConditionList in interface TableAssemblypublic void setPreRuntimeConditionList(ConditionListWrapper conds)
setPreRuntimeConditionList in interface TableAssemblyconds - the specified preprocess runtime condition list.public ConditionListWrapper getPostRuntimeConditionList()
getPostRuntimeConditionList in interface TableAssemblypublic void setPostRuntimeConditionList(ConditionListWrapper conds)
setPostRuntimeConditionList in interface TableAssemblyconds - the specified postprocess runtime condition list.public ConditionListWrapper getRankingRuntimeConditionList()
getRankingRuntimeConditionList in interface TableAssemblypublic void setRankingRuntimeConditionList(ConditionListWrapper conds)
setRankingRuntimeConditionList in interface TableAssemblyconds - the specified ranking runtime condition list.public ConditionListWrapper getPreConditionList()
getPreConditionList in interface TableAssemblypublic void setPreConditionList(ConditionListWrapper conds)
setPreConditionList in interface TableAssemblyconds - the specified preprocess condition list.public ConditionListWrapper getPostConditionList()
getPostConditionList in interface TableAssemblypublic void setPostConditionList(ConditionListWrapper conds)
setPostConditionList in interface TableAssemblyconds - the specified postprocess condition list.public ConditionListWrapper getRankingConditionList()
getRankingConditionList in interface TableAssemblypublic void setRankingConditionList(ConditionListWrapper conds)
setRankingConditionList in interface TableAssemblyconds - the specified ranking condition list.public ConditionList getMVConditionList()
getMVConditionList in interface TableAssemblypublic ConditionList getMVUpdateConditionList()
getMVUpdateConditionList in interface TableAssemblypublic ConditionListWrapper getMVDeleteConditionList()
getMVDeleteConditionList in interface TableAssemblypublic ConditionListWrapper getMVUpdatePreConditionList()
getMVUpdatePreConditionList in interface TableAssemblypublic void setMVUpdatePreConditionList(ConditionListWrapper conds)
setMVUpdatePreConditionList in interface TableAssemblypublic ConditionListWrapper getMVUpdatePostConditionList()
getMVUpdatePostConditionList in interface TableAssemblypublic void setMVUpdatePostConditionList(ConditionListWrapper conds)
setMVUpdatePostConditionList in interface TableAssemblypublic ConditionListWrapper getMVDeletePreConditionList()
getMVDeletePreConditionList in interface TableAssemblypublic void setMVDeletePreConditionList(ConditionListWrapper conds)
setMVDeletePreConditionList in interface TableAssemblypublic ConditionListWrapper getMVDeletePostConditionList()
getMVDeletePostConditionList in interface TableAssemblypublic void setMVDeletePostConditionList(ConditionListWrapper conds)
setMVDeletePostConditionList in interface TableAssemblypublic boolean isMVForceAppendUpdates()
isMVForceAppendUpdates in interface TableAssemblypublic void setMVForceAppendUpdates(boolean mvForceAppendUpdates)
setMVForceAppendUpdates in interface TableAssemblymvForceAppendUpdates - true to force updates to be appended.public AggregateInfo getAggregateInfo()
getAggregateInfo in interface TableAssemblypublic void setAggregateInfo(AggregateInfo info)
setAggregateInfo in interface TableAssemblyinfo - the specified group info.public SortInfo getSortInfo()
getSortInfo in interface TableAssemblypublic void setSortInfo(SortInfo info)
setSortInfo in interface TableAssemblyinfo - the specified sort info.public SourceInfo getSourceInfo()
public void setSourceInfo(SourceInfo source)
source - the specified source info.public int getMaxRows()
getMaxRows in interface TableAssemblypublic void setMaxRows(int row)
setMaxRows in interface TableAssemblyrow - the specified maximum rows.public int getMaxDisplayRows()
getMaxDisplayRows in interface TableAssemblypublic void setMaxDisplayRows(int row)
setMaxDisplayRows in interface TableAssemblyrow - the specified maximum display rows.public boolean isDistinct()
isDistinct in interface TableAssemblypublic void setDistinct(boolean distinct)
setDistinct in interface TableAssemblydistinct - true to show distinct values only,
false otherwise.public boolean isLiveData()
isLiveData in interface TableAssemblypublic void setLiveData(boolean live)
setLiveData in interface TableAssemblylive - true to show live data, false
to show metadata.public boolean isRuntime()
isRuntime in interface TableAssemblypublic void setRuntime(boolean runtime)
setRuntime in interface TableAssemblyruntime - true if in runtime mode, false otherwise.public boolean isAggregate()
isAggregate in interface TableAssemblypublic void setAggregate(boolean aggregate)
setAggregate in interface TableAssemblyaggregate - true if is an aggregate.public boolean isSQLMergeable()
isSQLMergeable in interface TableAssemblypublic void setSQLMergeable(boolean mergeable)
setSQLMergeable in interface TableAssemblymergeable - true if the sql query is mergeable,
false otherwise.public boolean isVisibleTable()
isVisibleTable in interface TableAssemblypublic void setVisibleTable(boolean visibleTable)
setVisibleTable in interface TableAssemblyvisible - true if the worksheet is block.,
false otherwise.protected void writeContents(PrintWriter writer)
writeContents in class AbstractAssemblywriter - the specified writer.
protected void parseContents(Element elem)
throws Exception
parseContents in class AbstractAssemblyelem - the specified xml element.
Exception
protected void renameConditionListWrapper(ConditionListWrapper conds,
String oname,
String nname,
Worksheet ws)
conds - the specified condition list wrapper.oname - the specified old name.nname - the specified new name.ws - the associated worksheet.public void setWorksheet(Worksheet ws)
setWorksheet in interface WSAssemblysetWorksheet in class AbstractWSAssemblyws - the specified worksheet.
protected void setConditionListWrapperWorksheet(ConditionListWrapper conds,
Worksheet ws)
conds - the specified condition list wrapper.ws - the associated worksheet.public void getDependeds(Set set)
getDependeds in interface Assemblyset - the set stores the assemblies depended on.
public void renameDepended(String oname,
String nname)
renameDepended in interface Assemblyoname - the specified old name.nname - the specified new name.
protected void renameAggregateInfo(String oname,
String nname)
oname - the specified old name.nname - the specified new name.public void reset()
reset in interface WSAssemblyreset in class AbstractWSAssemblypublic Object clone()
clone in interface Assemblyclone in interface AssetObjectclone in class AbstractWSAssemblypublic void setRuntimeMV(inetsoft.report.composition.mv.RuntimeMV rinfo)
setRuntimeMV in interface TableAssemblypublic inetsoft.report.composition.mv.RuntimeMV getRuntimeMV()
getRuntimeMV in interface TableAssemblypublic String getProperty(String key)
getProperty in interface TableAssemblykey - the specified property name.
public void setProperty(String key,
String value)
setProperty in interface TableAssemblykey - the property name.value - the property value, null to remove the property.public long getLastModified()
getLastModified in interface TableAssemblypublic void setLastModified(long lastModified)
setLastModified in interface TableAssemblylastModified. - public void clearProperty(String key)
clearProperty in interface TableAssemblykey - the property name.public Enumeration getProperties()
getProperties in interface TableAssembly
public boolean printKey(PrintWriter writer)
throws Exception
printKey in interface inetsoft.util.ContentObjectExceptionpublic boolean equalsContent(Object obj)
equalsContent in interface TableAssemblyequalsContent in interface inetsoft.util.ContentObjectobj - the specified object.
public int getContentCode()
getContentCode in interface TableAssembly
public void print(int level,
StringBuffer sb)
print in interface TableAssembly
protected void printHead(int level,
StringBuffer sb)
protected void printProperties(PrintWriter writer)
throws Exception
Exceptionpublic void setListener(PropertyChangeListener listener)
public PropertyChangeListener getListener()
public void writeData(JarOutputStream out)
writeData in interface TableAssemblypublic void updateTable(TableAssembly table)
updateTable in interface TableAssembly
|
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 | ||||||||