Style Intelligence v12.0

inetsoft.uql.asset
Class SnapshotEmbeddedTableAssembly

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

public class SnapshotEmbeddedTableAssembly
extends EmbeddedTableAssembly
implements ActionListener, AssetChangeListener

Embedded table assembly for snapshot, mainly deal with large data.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class inetsoft.uql.asset.EmbeddedTableAssembly
data, data2, shareData
 
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
SnapshotEmbeddedTableAssembly()
          Constructor.
SnapshotEmbeddedTableAssembly(Worksheet ws, String name)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void assetChanged(AssetChangeEvent event)
          Called when an asset entry is modified.
 Object clone()
          Clone the object.
 void deleteDataFile()
           
 void dispose()
          Dispose the snap shot embedded table.
 ColumnSelection getDefaultColumnSelection()
          Get default column selection.
 inetsoft.uql.util.XEmbeddedTable getEmbeddedData()
          Get the embedded data.
 inetsoft.uql.table.XSwappableTable getTable()
          Get table.
 void initTable()
          Init table.
protected  boolean isColumnUsed(ColumnRef aref)
          Check if the column is used.
protected  void parseEmbeddedData(Element elem)
          Parse embedded data.
 boolean printKey(PrintWriter writer)
          Print the key to identify this content object.
 void setDefaultColumnSelection(ColumnSelection columns)
          Set default column selection.
 void setEmbeddedData(inetsoft.uql.util.XEmbeddedTable data)
          Set the embedded data.
 void setTable(inetsoft.uql.table.XSwappableTable stable)
          Set table.
 void setWorksheet(Worksheet ws)
          Set the worksheet.
 void writeData(JarOutputStream out)
          Write out data content of this table.
protected  void writeEmbeddedData(PrintWriter writer)
          Write embedded data.
 
Methods inherited from class inetsoft.uql.asset.EmbeddedTableAssembly
createInfo, equalsContent, getContentCode, getOriginalEmbeddedData, getSource, parseContents, updateTable, writeContents
 
Methods inherited from class inetsoft.uql.asset.AbstractTableAssembly
clearCache, clearProperty, getAggregateInfo, getAllVariables, 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, getTableInfo, isAggregate, isCrosstab, isDistinct, isLiveData, isMVForceAppendUpdates, isPlain, isRuntime, isSQLMergeable, isVisibleTable, mergeVariables, print, printHead, printProperties, renameAggregateInfo, renameConditionListWrapper, renameDepended, replaceVariables, 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, update
 
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.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
 

Constructor Detail

SnapshotEmbeddedTableAssembly

public SnapshotEmbeddedTableAssembly()
Constructor.


SnapshotEmbeddedTableAssembly

public SnapshotEmbeddedTableAssembly(Worksheet ws,
                                     String name)
Constructor.

Method Detail

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.

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 EmbeddedTableAssembly
Throws:
Exception

getEmbeddedData

public inetsoft.uql.util.XEmbeddedTable getEmbeddedData()
Get the embedded data.

Overrides:
getEmbeddedData in class EmbeddedTableAssembly
Returns:
the embedded data.

setEmbeddedData

public void setEmbeddedData(inetsoft.uql.util.XEmbeddedTable data)
Set the embedded data.

Overrides:
setEmbeddedData in class EmbeddedTableAssembly
Parameters:
data - the specified embedded table.

setTable

public void setTable(inetsoft.uql.table.XSwappableTable stable)
Set table.


getTable

public inetsoft.uql.table.XSwappableTable getTable()
Get table.


writeData

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

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

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

deleteDataFile

public void deleteDataFile()

assetChanged

public void assetChanged(AssetChangeEvent event)
Description copied from interface: AssetChangeListener
Called when an asset entry is modified.

Specified by:
assetChanged in interface AssetChangeListener
Parameters:
event - the event object that describes the change.

writeEmbeddedData

protected void writeEmbeddedData(PrintWriter writer)
Write embedded data.

Overrides:
writeEmbeddedData in class EmbeddedTableAssembly
Parameters:
writer - the specified writer.

parseEmbeddedData

protected void parseEmbeddedData(Element elem)
                          throws Exception
Parse embedded data.

Overrides:
parseEmbeddedData in class EmbeddedTableAssembly
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 EmbeddedTableAssembly
Returns:
the cloned object.

setDefaultColumnSelection

public void setDefaultColumnSelection(ColumnSelection columns)
Set default column selection.


getDefaultColumnSelection

public ColumnSelection getDefaultColumnSelection()
Get default column selection.


dispose

public final void dispose()
Dispose the snap shot embedded table.


initTable

public void initTable()
Init table.


isColumnUsed

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

Overrides:
isColumnUsed in class AbstractTableAssembly

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