Style Intelligence v12.0

inetsoft.uql.asset
Class MirrorTableAssembly

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
                  extended by inetsoft.uql.asset.MirrorTableAssembly
All Implemented Interfaces:
Assembly, AssetObject, inetsoft.uql.asset.internal.VariableProvider, MirrorAssembly, TableAssembly, WSAssembly, inetsoft.util.ContentObject, inetsoft.util.XMLSerializable, Serializable, Cloneable

public class MirrorTableAssembly
extends ComposedTableAssembly
implements MirrorAssembly

MirrorTableAssembly, the mirror of a table assembly.

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
MirrorTableAssembly()
          Constructor.
MirrorTableAssembly(Worksheet ws, String name, AssetEntry entry, boolean outer, WSAssembly assembly)
          Create a mirror of an asset.
MirrorTableAssembly(Worksheet ws, String name, WSAssembly assembly)
          Create a mirror of an asset.
 
Method Summary
 void checkValidity()
          Check if the mirror assembly is valid.
 void clearCache()
          Clear cache.
protected  inetsoft.uql.asset.internal.WSAssemblyInfo createInfo()
          Create assembly info.
 Assembly getAssembly()
          Get the assembly.
 String getAssemblyName()
          Get the assembly name.
 void getDependeds(Set set)
          Get the assemblies depended on.
 AssetEntry getEntry()
          Get the worksheet entry.
 long getLastModified()
          Get the last modified time.
 Dimension getMinimumSize(boolean embedded)
          Get the minimum size.
protected  TableAssembly[] getTableAssemblies()
          Get all the table assemblies.
 TableAssembly getTableAssembly()
          Get the table assembly.
 int getTableAssemblyCount()
          Get the table assembly count.
 String[] getTableNames()
          Get the table names.
 boolean isAutoUpdate()
          Check if is auto update.
 boolean isOuterMirror()
          Check if is outer mirror.
protected  void printProperties(PrintWriter writer)
          Print table property as cache key if necessary.
 void renameDepended(String oname, String nname)
          Rename the assemblies depended on.
 void setAutoUpdate(boolean auto)
          Set auto update.
 void setEntry(AssetEntry entry)
          Set the worksheet entry.
 void setLastModified(long modified)
          Set last modified time.
 boolean setTableAssemblies(TableAssembly[] tables)
          Set all the table assemblies.
 void setWorksheet(Worksheet ws)
          Set the worksheet.
 boolean update()
          Update the inner mirror assembly.
 void updateColumnSelection()
          Update base column selection.
 void updateColumnSelection(boolean keepPub)
          Update columns selection.
 void updateMirror(AssetRepository engine, Principal user)
          Update the outer mirror assembly.
 
Methods inherited from class inetsoft.uql.asset.ComposedTableAssembly
clearProperty, clone, equalsContent, getAllVariables, getAllVariables, getComposedTableInfo, getComposedTableInfo, getContentCode, getSource, getTableAssemblies, getTableAssembly, getTableInfo, isComposed, isHierarchical, isIconized, print, printKey, renameAggregateInfo, renameColumnSelection, renameConditionListWrapper, renameSortInfo, replaceVariables, setHierarchical, setIconized, updateTable
 
Methods inherited from class inetsoft.uql.asset.AbstractTableAssembly
getAggregateInfo, getAssemblyType, getColumnSelection, getColumnSelection, getExpressionWidth, getListener, getMaxDisplayRows, getMaxRows, 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, reset, resetColumnSelection, setAggregate, setAggregateInfo, setColumnPropertyName, setColumnSelection, setColumnSelection, setConditionListWrapperWorksheet, setDistinct, 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.MirrorAssembly
clone
 
Methods inherited from interface inetsoft.util.XMLSerializable
parseXML, writeXML
 
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
 

Constructor Detail

MirrorTableAssembly

public MirrorTableAssembly()
Constructor.


MirrorTableAssembly

public MirrorTableAssembly(Worksheet ws,
                           String name,
                           WSAssembly assembly)
Create a mirror of an asset.

Parameters:
name - the name of the mirror assembly.
assembly - the base assembly.

MirrorTableAssembly

public MirrorTableAssembly(Worksheet ws,
                           String name,
                           AssetEntry entry,
                           boolean outer,
                           WSAssembly assembly)
Create a mirror of an asset.

Parameters:
name - the name of the mirror assembly.
entry - the external asset entry if this is a mirror (outer) of an external asset.
assembly - the base assembly.
Method Detail

updateColumnSelection

public void updateColumnSelection()
Update base column selection.


updateColumnSelection

public void updateColumnSelection(boolean keepPub)
Update columns selection.

Parameters:
keepPub - to keep self public columns.

printProperties

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

Overrides:
printProperties in class AbstractTableAssembly
Throws:
Exception

createInfo

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

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

setWorksheet

public void setWorksheet(Worksheet ws)
Set the worksheet.

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

getMinimumSize

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

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

getEntry

public AssetEntry getEntry()
Get the worksheet entry.

Specified by:
getEntry in interface MirrorAssembly
Returns:
the worksheet entry of the mirror assembly.

setEntry

public void setEntry(AssetEntry entry)
Set the worksheet entry.

Specified by:
setEntry in interface MirrorAssembly
Parameters:
entry - the specified worksheet entry.

getAssemblyName

public String getAssemblyName()
Get the assembly name.

Specified by:
getAssemblyName in interface MirrorAssembly
Returns:
the assembly name.

getTableNames

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

Specified by:
getTableNames in class ComposedTableAssembly

isOuterMirror

public boolean isOuterMirror()
Check if is outer mirror.

Specified by:
isOuterMirror in interface MirrorAssembly
Returns:
true if yes, false otherwise.

getLastModified

public long getLastModified()
Get the last modified time.

Specified by:
getLastModified in interface MirrorAssembly
Specified by:
getLastModified in interface TableAssembly
Overrides:
getLastModified in class AbstractTableAssembly
Returns:
the last modified time of the assembly.

setLastModified

public void setLastModified(long modified)
Set last modified time.

Specified by:
setLastModified in interface MirrorAssembly
Specified by:
setLastModified in interface TableAssembly
Overrides:
setLastModified in class AbstractTableAssembly
Parameters:
modified - the specified last modified time.

isAutoUpdate

public boolean isAutoUpdate()
Check if is auto update.

Specified by:
isAutoUpdate in interface MirrorAssembly
Returns:
true if yes, false otherwise.

setAutoUpdate

public void setAutoUpdate(boolean auto)
Set auto update.

Specified by:
setAutoUpdate in interface MirrorAssembly
Parameters:
auto - true to open auto update.

update

public boolean update()
Update the inner mirror assembly.

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

updateMirror

public void updateMirror(AssetRepository engine,
                         Principal user)
                  throws Exception
Update the outer mirror assembly.

Specified by:
updateMirror in interface MirrorAssembly
Parameters:
engine - the specified asset repository.
user - the specified user.
Throws:
Exception

clearCache

public void clearCache()
Clear cache.

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

getAssembly

public Assembly getAssembly()
Get the assembly.

Specified by:
getAssembly in interface MirrorAssembly
Returns:
the assembly of the mirror assembly.

checkValidity

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

Specified by:
checkValidity in interface MirrorAssembly
Specified by:
checkValidity in interface WSAssembly
Overrides:
checkValidity in class ComposedTableAssembly
Throws:
Exception

getTableAssembly

public TableAssembly getTableAssembly()
Get the table assembly.

Returns:
the table assembly.

getTableAssemblyCount

public int getTableAssemblyCount()
Get the table assembly count.

Specified by:
getTableAssemblyCount in class ComposedTableAssembly
Returns:
the table assembly count.

getTableAssemblies

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

Specified by:
getTableAssemblies in class ComposedTableAssembly
Returns:
all the table assemblies of the composite table assembly.

setTableAssemblies

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

Specified by:
setTableAssemblies in class ComposedTableAssembly
Parameters:
tables - the specified table assemblies.
Returns:
false if the change is rejected.

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.

renameDepended

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

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

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