Style Intelligence v12.0

inetsoft.uql.asset
Class SubQueryValue

java.lang.Object
  extended by inetsoft.uql.asset.SubQueryValue
All Implemented Interfaces:
AssetObject, inetsoft.util.XMLSerializable, Serializable, Cloneable

public class SubQueryValue
extends Object
implements AssetObject

Sub query value contains sub query information in an AssetCondition.

See Also:
Serialized Form

Constructor Summary
SubQueryValue()
          Constructor.
 
Method Summary
 boolean checkValidity()
          Check if the condition is a valid condition.
 boolean checkValidity(ColumnSelection scolumns, ColumnSelection mcolumns)
          Check if the condition is a valid condition.
 Object clone()
          Clone the object.
 boolean equals(Object obj)
          Check if equqls another object.
 UserVariable[] getAllVariables()
          Get all variables in the condition value list.
 DataRef getAttribute()
          Get the attribute.
 int getCurrentRow()
          Get current row.
 DataRef getMainAttribute()
          Get the main attribute.
 int getOperation()
          Get the comparison operation of this condition.
 String getQuery()
          Get the query.
 DataRef getSubAttribute()
          Get the sub attribute.
 TableAssembly getTable()
          Get the sub query table assembly.
 Vector getValues()
          Get the values of the sub query.
 void initMainTable(XTable mtable)
          Initialize the main table runtime environment.
 void initMainTable(XTable mtable, int mcol)
          Initialize the main table runtime environment.
 void initSubTable(XTable stable)
          Initialize the sub table runtime environment.
 boolean isCorrelated()
          Check if is correlated.
 void parseXML(Element elem)
          Parse the xml.
 boolean printKey(PrintWriter writer)
          Print the key to identify this content object.
 void renameDepended(String oname, String nname, Worksheet ws)
          Rename the assemblies depended on.
 void replaceVariables(VariableTable vars)
          Replace all embeded user variables.
 void reset()
          Reset the cached value.
 void setAttribute(DataRef ref)
          Set the attribute.
 void setCurrentRow(int row)
          Set current row.
 void setMainAttribute(DataRef mref)
          Set the main attribute.
 void setOperation(int op)
          Set the comparison operation of this condition.
 void setQuery(String query)
          Set the query.
 void setSubAttribute(DataRef sref)
          Set the sub attribute.
 String toString()
          Get the string representation.
 boolean update(Worksheet ws)
          Update the assembly.
 void writeXML(PrintWriter writer)
          Write the xml.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubQueryValue

public SubQueryValue()
Constructor.

Method Detail

replaceVariables

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

Parameters:
vars - the specified variable table.

getAllVariables

public UserVariable[] getAllVariables()
Get all variables in the condition value list.

Returns:
the variable list.

checkValidity

public boolean checkValidity()
Check if the condition is a valid condition.

Returns:
true if is valid, false otherwise.

checkValidity

public boolean checkValidity(ColumnSelection scolumns,
                             ColumnSelection mcolumns)
Check if the condition is a valid condition.

Parameters:
scolumns - the specified sub column selection.
mcolumns - the specified main column selection.
Returns:
true if is valid, false otherwise.

isCorrelated

public boolean isCorrelated()
Check if is correlated.

Returns:
true if correlated, false otherwise.

setAttribute

public void setAttribute(DataRef ref)
Set the attribute.

Parameters:
ref - the specified data ref.

getAttribute

public DataRef getAttribute()
Get the attribute.

Returns:
the data ref.

setSubAttribute

public void setSubAttribute(DataRef sref)
Set the sub attribute.

Parameters:
sref - the specified sub data ref.

getSubAttribute

public DataRef getSubAttribute()
Get the sub attribute.

Returns:
the sub data ref.

setMainAttribute

public void setMainAttribute(DataRef mref)
Set the main attribute.

Parameters:
mref - the specified main attribute.

getMainAttribute

public DataRef getMainAttribute()
Get the main attribute.

Returns:
the main attribute.

setQuery

public void setQuery(String query)
Set the query.

Parameters:
query - the specified query.

getQuery

public String getQuery()
Get the query.

Returns:
the query.

getTable

public TableAssembly getTable()
Get the sub query table assembly.

Returns:
the sub query table assembly.

renameDepended

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

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

update

public boolean update(Worksheet ws)
Update the assembly.

Parameters:
ws - the associated worksheet.
Returns:
true if successful, false otherwise.

initMainTable

public void initMainTable(XTable mtable)
                   throws Exception
Initialize the main table runtime environment.

Parameters:
mtable - the specified main table.
Throws:
Exception

initMainTable

public void initMainTable(XTable mtable,
                          int mcol)
                   throws Exception
Initialize the main table runtime environment.

Parameters:
mtable - the specified main table.
mcol - the specified main attribute column index.
Throws:
Exception

initSubTable

public void initSubTable(XTable stable)
                  throws Exception
Initialize the sub table runtime environment.

Parameters:
stable - the specified sub table.
Throws:
Exception

setCurrentRow

public void setCurrentRow(int row)
Set current row.

Parameters:
row - the specified row index.

getCurrentRow

public int getCurrentRow()
Get current row.

Returns:
current row index.

getValues

public Vector getValues()
Get the values of the sub query.

Returns:
the values of the sub query.

writeXML

public void writeXML(PrintWriter writer)
Write the xml.

Specified by:
writeXML in interface inetsoft.util.XMLSerializable
Parameters:
writer - the specified print writer.

parseXML

public void parseXML(Element elem)
              throws Exception
Parse the xml.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Parameters:
elem - the specified xml element.
Throws:
Exception

equals

public boolean equals(Object obj)
Check if equqls another object.

Overrides:
equals in class Object

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object
Returns:
the string representation.

clone

public Object clone()
Clone the object.

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

reset

public void reset()
Reset the cached value.


getOperation

public int getOperation()
Get the comparison operation of this condition.

Returns:
one of the operation constant, one of the operation constants defined in this class.

setOperation

public void setOperation(int op)
Set the comparison operation of this condition.

Parameters:
op - one of the operation constants defined in this class.

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.

Throws:
Exception

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