|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vishnu.model.algebra.RelationAdapter
public class RelationAdapter
Esta clase adapta un tabla como una relacion. Permitiendo definir las relaciones hoja del arbol de ejecucion ya que no son operaciones del algebra sino relaciones sobre tablas. pattern: Adapter
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface vishnu.model.algebra.Relation |
---|
Relation.Context, Relation.ContextNotSelectedException |
Constructor Summary | |
---|---|
RelationAdapter(java.lang.String tableName)
construye un adaptador para la tabla elegida. |
Method Summary | |
---|---|
Algorithm |
algorithm()
Devuelve el algoritmo designado para ejecutar esta relacion. |
void |
algorithm(Algorithm a)
Setea el algoritmo para ejecutar esta relacion. |
void |
database(Database d)
|
boolean |
equals(java.lang.Object o)
|
boolean |
hasChanged()
Indica si se realizaro alguna modifiaccion en la relacion. |
int |
hashCode()
|
void |
perform(Relation.Context c)
Ejecuta la relacion. |
void |
setChanged()
Pone en true el flag de cambios de la relacion. |
void |
setContext(UserContext context)
Setea el esquema de la relacion. |
TableSignature |
signature()
Devuelve la signautra de la relacion. |
java.lang.String |
tableName()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RelationAdapter(java.lang.String tableName)
Method Detail |
---|
public void perform(Relation.Context c)
perform
in interface Relation
c
- - el contexto de ejecución de la relacion.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String tableName()
public void database(Database d)
public TableSignature signature() throws Relation.ContextNotSelectedException
Relation
signature
in interface Relation
Relation.ContextNotSelectedException
public boolean hasChanged()
Relation
hasChanged
in interface Relation
public void setChanged()
Relation
setChanged
in interface Relation
public Algorithm algorithm()
Relation
algorithm
in interface Relation
public void algorithm(Algorithm a)
Relation
algorithm
in interface Relation
a
- - el algoritmo co el que se ejecutara la relacion.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setContext(UserContext context)
Relation
setContext
in interface Relation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |