vishnu.model.algebra
Class MixedSelection

java.lang.Object
  extended by vishnu.model.algebra.AbstractUnaryRelation
      extended by vishnu.model.algebra.MixedSelection
All Implemented Interfaces:
java.lang.Cloneable, Relation, Selection, UnaryRelation

public class MixedSelection
extends AbstractUnaryRelation
implements Selection, java.lang.Cloneable

Esta clase representa la operacion de seleccion del algebra relacional.

Author:
Mariano Tepper
 

Nested Class Summary
 
Nested classes/interfaces inherited from interface vishnu.model.algebra.Relation
Relation.Context, Relation.ContextNotSelectedException
 
Field Summary
 
Fields inherited from class vishnu.model.algebra.AbstractUnaryRelation
algorithm
 
Constructor Summary
MixedSelection(Relation p, SQLConditionalExpression c)
          Crea una seleccion sobre la relacion p bajo la expresion de condicion c.
 
Method Summary
 TableSignature calculateSignature()
           
 java.lang.Object clone()
          Clona la relacion.
 SQLConditionalExpression conditions()
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class vishnu.model.algebra.AbstractUnaryRelation
algorithm, algorithm, hasChanged, perform, relation, relation, setChanged, setContext, signature
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface vishnu.model.algebra.UnaryRelation
relation, relation
 
Methods inherited from interface vishnu.model.algebra.Relation
algorithm, algorithm, hasChanged, perform, setChanged, setContext, signature
 

Constructor Detail

MixedSelection

public MixedSelection(Relation p,
                      SQLConditionalExpression c)
Crea una seleccion sobre la relacion p bajo la expresion de condicion c.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

conditions

public SQLConditionalExpression conditions()
Specified by:
conditions in interface Selection

clone

public java.lang.Object clone()
Description copied from interface: UnaryRelation
Clona la relacion.

Specified by:
clone in interface UnaryRelation
Specified by:
clone in class AbstractUnaryRelation

calculateSignature

public TableSignature calculateSignature()
                                  throws Relation.ContextNotSelectedException
Throws:
Relation.ContextNotSelectedException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object