Style Intelligence v12.0

inetsoft.uql.asset
Class TableAssemblyOperator.Operator

java.lang.Object
  extended by inetsoft.uql.asset.TableAssemblyOperator.Operator
All Implemented Interfaces:
AssetObject, inetsoft.util.XMLSerializable, Serializable, Cloneable
Enclosing class:
TableAssemblyOperator

public static class TableAssemblyOperator.Operator
extends Object
implements AssetObject

Operator represents one sub operator between two tables. It might contain column information for operations which require column information.

See Also:
Serialized Form

Constructor Summary
TableAssemblyOperator.Operator()
          Constructor.
 
Method Summary
 void checkValidity()
          Check if the operator is valid.
 Object clone()
          Clone this object.
 boolean equals(Object obj)
          Check if equals another object.
 DataRef getLeftAttribute()
          Get the left column.
 String getLeftTable()
          Get the left table.
 String getName()
          Get a display name for the operator.
 String getName2()
          Get a display name for the operator.
 int getOperation()
          Get the operation.
 DataRef getRightAttribute()
          Get the right column.
 String getRightTable()
          Get the right table.
 int hashCode()
          Get the hash code value.
 boolean isConcatenation()
          Check if is concatenation.
 boolean isCrossJoin()
          Check if is cross join.
 boolean isDistinct()
          Check if is distinct.
 boolean isEqualJoin()
          Check if is equal join like INNER_JOIN, RIGHT_JOIN, LEFT_JOIN etc.
 boolean isExclusive()
          Check if is exclusive operation.
 boolean isJoin()
          Check if is join.
 boolean isKey()
          Check if is key operation.
 boolean isMergeJoin()
          Check if is merge join.
 boolean isOuterJoin()
          Check if is outer join.
 void parseXML(Element elem)
          Method to parse an xml segment.
 boolean printKey(PrintWriter writer)
          Print the key to identify this content object.
 void renameDepended(String oname, String nname, Assembly lassembly, Assembly rassembly)
          Rename the assemblies depended on.
 boolean requiresColumn()
          Check if requires column.
 void setDistinct(boolean distinct)
          Set the distinct option.
 void setLeftAttribute(DataRef ref)
          Set the left column.
 void setLeftTable(String ltable)
          Set the left table.
 void setOperation(int op)
          Set the operation.
 void setRightAttribute(DataRef ref)
          Set the right column.
 void setRightTable(String rtable)
          Set the right table.
 boolean supportsDistinct()
          Check if supports distinct option.
 String toString()
           
 void writeXML(PrintWriter writer)
          Write the xml segment to print writer.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableAssemblyOperator.Operator

public TableAssemblyOperator.Operator()
Constructor.

Method Detail

getLeftAttribute

public DataRef getLeftAttribute()
Get the left column.

Returns:
the left column of the operator.

setLeftAttribute

public void setLeftAttribute(DataRef ref)
Set the left column.

Parameters:
ref - the specified column.

getOperation

public int getOperation()
Get the operation.

Returns:
the operation.

setOperation

public void setOperation(int op)
Set the operation.

Parameters:
op - the specified operation.

getRightAttribute

public DataRef getRightAttribute()
Get the right column.

Returns:
the right column of the operator.

setRightAttribute

public void setRightAttribute(DataRef ref)
Set the right column.

Parameters:
ref - the specified column.

getRightTable

public String getRightTable()
Get the right table.

Returns:
the right table name.

setRightTable

public void setRightTable(String rtable)
Set the right table.

Parameters:
the - right table name.

getLeftTable

public String getLeftTable()
Get the left table.

Returns:
the left table name.

setLeftTable

public void setLeftTable(String ltable)
Set the left table.

Parameters:
the - left table name.

renameDepended

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

Parameters:
oname - the specified old name.
nname - the specified new name.
lassembly - the left assembly.
rassembly - the right assembly.

requiresColumn

public boolean requiresColumn()
Check if requires column.

Returns:
true if yes, false otherwise.

isExclusive

public boolean isExclusive()
Check if is exclusive operation.

Returns:
true if yes, false otherwise.

isKey

public boolean isKey()
Check if is key operation.

Returns:
true if yes, false otherwise.

isJoin

public boolean isJoin()
Check if is join.

Returns:
true if yes, false otherwise.

isOuterJoin

public boolean isOuterJoin()
Check if is outer join.

Returns:
true if yes, false otherwise.

isEqualJoin

public boolean isEqualJoin()
Check if is equal join like INNER_JOIN, RIGHT_JOIN, LEFT_JOIN etc.

Returns:
true if yes, false otherwise.

isCrossJoin

public boolean isCrossJoin()
Check if is cross join.

Returns:
true if yes, false otherwise.

isMergeJoin

public boolean isMergeJoin()
Check if is merge join.

Returns:
true if yes, false otherwise.

isConcatenation

public boolean isConcatenation()
Check if is concatenation.

Returns:
true if yes, false otherwise.

supportsDistinct

public boolean supportsDistinct()
Check if supports distinct option.

Returns:
true if yes, false otherwise.

isDistinct

public boolean isDistinct()
Check if is distinct.

Returns:
true if distinct, false otherwise.

setDistinct

public void setDistinct(boolean distinct)
Set the distinct option.

Parameters:
distinct - true if distinct, false otherwise.

checkValidity

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

Throws:
Exception

getName

public String getName()
Get a display name for the operator.


getName2

public String getName2()
Get a display name for the operator.


writeXML

public void writeXML(PrintWriter writer)
Write the xml segment to print writer.

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

parseXML

public void parseXML(Element elem)
              throws Exception
Method to parse an xml segment.

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

clone

public Object clone()
Clone this object.

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

hashCode

public int hashCode()
Get the hash code value.

Overrides:
hashCode in class Object
Returns:
the hash code value.

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

equals

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

Overrides:
equals in class Object
Parameters:
obj - the specified object.
Returns:
true if equals the object, false otherwise.

toString

public String toString()
Overrides:
toString in class Object

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