algebraTree
Class SchemaUpdate

java.lang.Object
  |
  +--algebraTree.Update
        |
        +--algebraTree.SchemaUpdate

public class SchemaUpdate
extends Update

A schema update. This is logical only - the physical update should not have anything to do with this class!


Field Summary
static int ADD
          constants for the three types of updates
 java.lang.String attribute
          The (name of the) object that is affected.
static int DELETE
           
 java.lang.String newName
          for rename-schema-changes, we need to store the new name
static int RENAME
           
 int type
           
static java.lang.String[] typeNames
          this is for the toString method only!
 
Fields inherited from class algebraTree.Update
relation
 
Constructor Summary
SchemaUpdate(SchemaUpdate old)
          copy constructor for update propagation
SchemaUpdate(java.lang.String relationP, int typeP)
          the constructor for a relation add/delete
SchemaUpdate(java.lang.String p1, java.lang.String p2, int typeP)
          the constructor for attribute add/del as well as relation-rename!
SchemaUpdate(java.lang.String relationP, java.lang.String attributeP, java.lang.String newNameP, int typeP)
          the constructor for attribute-rename
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

ADD

public static final int ADD
constants for the three types of updates

DELETE

public static final int DELETE

RENAME

public static final int RENAME

typeNames

public static final java.lang.String[] typeNames
this is for the toString method only!

attribute

public java.lang.String attribute
The (name of the) object that is affected. If "attribute" is null, we have a relation schema change. The relation name is stored in the superclass ("Update")

type

public int type

newName

public java.lang.String newName
for rename-schema-changes, we need to store the new name
Constructor Detail

SchemaUpdate

public SchemaUpdate(java.lang.String relationP,
                    int typeP)
the constructor for a relation add/delete

SchemaUpdate

public SchemaUpdate(java.lang.String p1,
                    java.lang.String p2,
                    int typeP)
the constructor for attribute add/del as well as relation-rename!

SchemaUpdate

public SchemaUpdate(java.lang.String relationP,
                    java.lang.String attributeP,
                    java.lang.String newNameP,
                    int typeP)
the constructor for attribute-rename

SchemaUpdate

public SchemaUpdate(SchemaUpdate old)
copy constructor for update propagation
Method Detail

toString

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