uk.ac.bbk.dcs.automed.evolution2.schemaEvolution
Class SchemaEvolution
java.lang.Object
uk.ac.bbk.dcs.automed.evolution2.schemaEvolution.SchemaEvolution
- All Implemented Interfaces:
- Evolution
- Direct Known Subclasses:
- ExtensionalSchemaEvolution, IntegratedSchemaEvolution
public abstract class SchemaEvolution
- extends java.lang.Object
- implements Evolution
|
Constructor Summary |
SchemaEvolution(int schemaEvolutionType,
boolean isRepair)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
schemaToEvolve
protected Schema schemaToEvolve
evolutionType
protected int evolutionType
isRepair
protected boolean isRepair
schemaEvolutionType
protected int schemaEvolutionType
SchemaEvolution
public SchemaEvolution(int schemaEvolutionType,
boolean isRepair)
throws SchemaEvolutionException
- Throws:
SchemaEvolutionException
createNew
public abstract void createNew()
createNewOneStep
public abstract void createNewOneStep()
repairExisting
public abstract void repairExisting()
repairExistingOneStep
public abstract void repairExistingOneStep()
setIsRepair
public void setIsRepair(boolean isRepair)
getEvolutionType
public int getEvolutionType()
- Specified by:
getEvolutionType in interface Evolution
getIsRepair
public boolean getIsRepair()
processEvolution
public java.lang.Object processEvolution(java.lang.Object inObject)
throws SchemaEvolutionException
- Fasade method to transparently do Evolution work
- Specified by:
processEvolution in interface Evolution
- Throws:
SchemaEvolutionException
dropSchemas
public static void dropSchemas(Pathway p)
throws IntegrityException,
NotFoundException
- Retracts schemas in the pathway from s1 to s2, WITHOUT retracting s2.
- Throws:
IntegrityException
NotFoundException
simplifyPathway
public Pathway simplifyPathway(Pathway pathway)
- The current implementation of this method is null.
This method can be implemented to return the simplified version of the pathhway.
simplifyPathway
public java.util.List simplifyPathway(Schema fromSchema,
Schema toSchema)
throws SchemaEvolutionException
- This is over loaded method to simplify the pathway between two schemas.
And returns the List of Pathways.
The current implementation of this method is null.
This method can be implemented to return the simplified version of the pathhway.
- Throws:
SchemaEvolutionException
repairPathway
public boolean repairPathway(Pathway pathway)
- Parameters:
pathway -
- Returns:
- true if the repair was successful.
repairPathway
public boolean repairPathway(Transformation[] transformation)
processRenameTransformation
protected abstract Transformation processRenameTransformation(Transformation crntTransformation)
processAddTransformation
protected abstract Transformation processAddTransformation(Transformation crntTransformation)
processDeleteTransformation
protected abstract Transformation processDeleteTransformation(Transformation crntTransformation)
processExtendTransformation
protected abstract Transformation processExtendTransformation(Transformation crntTransformation)
processContractTransformation
protected abstract Transformation processContractTransformation(Transformation crntTransformation)
getSchemaEvolutionType
public int getSchemaEvolutionType()