Style Intelligence v12.0

inetsoft.uql.asset
Class TableAssemblyOperator

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

public class TableAssemblyOperator
extends Object
implements AssetObject

Table assembly operator, the operator between two table assemblies.

See Also:
Serialized Form

Nested Class Summary
static class TableAssemblyOperator.Operator
          Operator represents one sub operator between two tables.
 
Field Summary
static int CONCATENATION
          Concatenation operation.
static int CROSS_JOIN
          Cross join operation.
static int FULL_JOIN
          Full join operation.
static int GREATER_EQUAL_JOIN
          Greater equal join operation.
static int GREATER_JOIN
          Greater join operation.
static int INNER_JOIN
          Inner join operation.
static int INTERSECT
          Intersect operation.
static int JOIN
          Join operation.
static int LEFT_JOIN
          Left join operation.
static int LESS_EQUAL_JOIN
          Less equal join operation.
static int LESS_JOIN
          Less join operation.
static int MERGE_JOIN
          Merge join operation.
static int MINUS
          Minus operation.
static int NOT_EQUAL_JOIN
          Not equal join operation.
static int RIGHT_JOIN
          Right join operation.
static int UNION
          Union operation.
 
Constructor Summary
TableAssemblyOperator()
          Constructor.
TableAssemblyOperator(DataRef l, DataRef r, int o)
          Create an operator with a single predicate between the two attributes.
 
Method Summary
 void addOperator(TableAssemblyOperator.Operator operator)
          Add one operator.
 void checkValidity()
          Check if the operator is valid.
 void clear()
          Clear the table assembly operator.
 Object clone()
          Clone the object.
 boolean equals(Object obj)
          Check if equals another object.
 int getKeyOperation()
          Get the key operation.
 TableAssemblyOperator.Operator getKeyOperator()
          Get the key Operator.
 TableAssemblyOperator.Operator getOperator(int index)
          Get the operator at an index.
 int getOperatorCount()
          Get the operator count.
 TableAssemblyOperator.Operator[] getOperators()
          Get all the operators.
 String getOperatorString()
          Get operators display string.
 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 isFullJoin()
          Check if is full join.
 boolean isJoin()
          Check if is join.
 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 removeOperator(int index)
          Remove the operator at an index.
 void renameDepended(String oname, String nname, Assembly lassembly, Assembly rassembly)
          Rename the assemblies depended on.
 boolean requiresColumn()
          Check if requires column.
 void setOperator(int index, TableAssemblyOperator.Operator operator)
          Set the operator at an index.
 String toString()
           
 void validateAttribute(ColumnSelection lselection, ColumnSelection rselection)
          Validate attribute.
 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
 

Field Detail

JOIN

public static final int JOIN
Join operation.

See Also:
Constant Field Values

INNER_JOIN

public static final int INNER_JOIN
Inner join operation.

See Also:
Constant Field Values

LEFT_JOIN

public static final int LEFT_JOIN
Left join operation.

See Also:
Constant Field Values

RIGHT_JOIN

public static final int RIGHT_JOIN
Right join operation.

See Also:
Constant Field Values

FULL_JOIN

public static final int FULL_JOIN
Full join operation.

See Also:
Constant Field Values

NOT_EQUAL_JOIN

public static final int NOT_EQUAL_JOIN
Not equal join operation.

See Also:
Constant Field Values

GREATER_JOIN

public static final int GREATER_JOIN
Greater join operation.

See Also:
Constant Field Values

GREATER_EQUAL_JOIN

public static final int GREATER_EQUAL_JOIN
Greater equal join operation.

See Also:
Constant Field Values

LESS_JOIN

public static final int LESS_JOIN
Less join operation.

See Also:
Constant Field Values

LESS_EQUAL_JOIN

public static final int LESS_EQUAL_JOIN
Less equal join operation.

See Also:
Constant Field Values

MERGE_JOIN

public static final int MERGE_JOIN
Merge join operation.

See Also:
Constant Field Values

CROSS_JOIN

public static final int CROSS_JOIN
Cross join operation.

See Also:
Constant Field Values

CONCATENATION

public static final int CONCATENATION
Concatenation operation.

See Also:
Constant Field Values

UNION

public static final int UNION
Union operation.

See Also:
Constant Field Values

INTERSECT

public static final int INTERSECT
Intersect operation.

See Also:
Constant Field Values

MINUS

public static final int MINUS
Minus operation.

See Also:
Constant Field Values
Constructor Detail

TableAssemblyOperator

public TableAssemblyOperator()
Constructor.


TableAssemblyOperator

public TableAssemblyOperator(DataRef l,
                             DataRef r,
                             int o)
Create an operator with a single predicate between the two attributes.

Method Detail

getOperators

public TableAssemblyOperator.Operator[] getOperators()
Get all the operators.

Returns:
all the operators.

getOperator

public TableAssemblyOperator.Operator getOperator(int index)
Get the operator at an index.

Parameters:
index - the specified index.
Returns:
the operator at the index.

getOperatorCount

public int getOperatorCount()
Get the operator count.

Returns:
the operator count.

addOperator

public void addOperator(TableAssemblyOperator.Operator operator)
Add one operator.

Parameters:
operator - the specified operator.

setOperator

public void setOperator(int index,
                        TableAssemblyOperator.Operator operator)
Set the operator at an index.

Parameters:
index - the specified index.
operator - the specified operator.

removeOperator

public void removeOperator(int index)
Remove the operator at an index.

Parameters:
index - the specified index.

clear

public void clear()
Clear the table assembly operator.


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.

checkValidity

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

Throws:
Exception

validateAttribute

public void validateAttribute(ColumnSelection lselection,
                              ColumnSelection rselection)
                       throws Exception
Validate attribute.

Parameters:
lselection - the specified left table column selection.
rselection - the specified right table column selection.
Throws:
Exception

getKeyOperator

public TableAssemblyOperator.Operator getKeyOperator()
Get the key Operator.

Returns:
the key Operator.

isDistinct

public boolean isDistinct()
Check if is distinct.


getKeyOperation

public int getKeyOperation()
Get the key operation.

Returns:
the key operation.

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.

isConcatenation

public boolean isConcatenation()
Check if is concatenation.

Returns:
true if yes, false otherwise.

isMergeJoin

public boolean isMergeJoin()
Check if is merge join.

Returns:
true if yes, false otherwise.

isCrossJoin

public boolean isCrossJoin()
Check if is cross join.

Returns:
true if yes, false otherwise.

isFullJoin

public boolean isFullJoin()
Check if is full join.

Returns:
true if yes, false otherwise.

requiresColumn

public boolean requiresColumn()
Check if requires column.

Returns:
true if yes, false otherwise.

getOperatorString

public String getOperatorString()
Get operators display string.


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 the 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.