|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaspoev.manager.schema.SchemaManager
Subclasses dictate how they want to handle schema evolution.
- aspoev.manager.schema.ClassVersioningManager
aspoev.manager.schema.SchemaModificationManager
aspoev.manager.schema.SchemaVersioningManager| Field Summary | |
static java.lang.String |
defaultSchema
|
protected pJ.jasmine.Hashtab |
reassignedTypes
This field maps types to what they should now be typed as. |
static VariableReferenceElement |
SCHEMA_EXTENT
|
protected pJ.jasmine.Hashtab |
substitutibleTypes
|
| Constructor Summary | |
SchemaManager()
|
|
| Method Summary | |
void |
addType(TypeReferenceElement newType)
Submits a new version of a type, or a new type entirely to the schema manager. |
void |
alteredFieldReferenced(InterpreterException ie)
This method allows the schema manager to take automomous action when an alteration to a field results in invalidated references. |
void |
alteredMethodReferenced(InterpreterException ie)
This method allows the schema manager to take automomous action when an alteration to a method results in invalidated references. |
boolean |
assignableFrom(TypeReferenceElement one,
TypeReferenceElement two)
Defines whether or not a type is assignable from another type. |
TypeReferenceElement |
bindType(TypeReferenceElement type)
This method recieves mostly types with version |
boolean |
compareTypes(TypeReferenceElement one,
TypeReferenceElement two)
This method encapsulates the algorithm for type equality. |
void |
declareSubstitutable(TypeReferenceElement one,
TypeReferenceElement two)
This method tells the schema manager to view the second argument type as substitutable for the first argument type. |
void |
fieldExposed(InterpreterException ie)
This method allows the schema manager to take automomous action when an alteration to a field exposes an inherited, previously overridden field declaration. |
void |
fieldOverridden(InterpreterException ie)
This method allows the schema manager to take automomous action when an alteration to a field overrides an inherited field declaration. |
TypeReferenceElement |
getActiveVersion(TypeReferenceElement otherVersion)
This method returns the version of the argument type that is active or preferred in the current context ('context' to be defined and evaluated by the schema manager). |
java.util.Collection |
getEquivalentTypes(TypeReferenceElement type)
This method returns a collection of equivalent types based on the type equality semantics defined by the Schema Manager as well as any substitutable types. |
TypeReferenceElement |
getReassignedType(TypeReferenceElement deprecated)
This method returns the type that the argument type has been reassigned to. |
SchemaExtent |
getSchemaExtent()
Returns the schema used by this schema manager. |
QueryEnumeration |
getSubstitutableTypes(TypeReferenceElement type)
Returns all types which have been declared substitutable to the argument type by the schema manager. |
java.util.Collection |
getTypeExtent(TypeReferenceElement type)
Returns all versions of this type present in the schema. |
boolean |
isSubstitutibleFor(TypeReferenceElement one,
TypeReferenceElement two)
Returns 'true' if the second argument is substitutable for the first in the view of the schema manager. |
void |
methodExposed(InterpreterException ie)
This method allows the schema manager to take automomous action when an alteration to a method exposes an inherited, previously overridden method declaration. |
void |
methodOverridden(InterpreterException ie)
This method allows the schema manager to take automomous action when an alteration to a method overrides an inherited method declaration. |
void |
print(java.lang.String s)
\ * Util Methods * * \ |
TypeReferenceElement |
reclassifyType(TypeReferenceElement deprecated)
This method must be defined by implementing strategies to dictate how persistent instances of a removed class are classified as in the future. |
void |
removedFieldReferenced(InterpreterException ie)
This method allows the schema manager to take automomous action when references to a field remain after the removal of the field. |
void |
removedMethodReferenced(InterpreterException ie)
This method allows the schema manager to take automomous action when references to a method remain after the removal of the method. |
void |
removeType(TypeReferenceElement removed)
This method effects the removal of a type from the schema. |
void |
renamedMemberReferenced(InterpreterException ie)
This method allows the schema manager to take automomous action when references to a member remain after the renaming of the member. |
void |
renamedTypeReferenced(InterpreterException ie)
This method allows the schema manager to take automomous action when a renamed type is used under its old name. |
void |
setSchemaExtent(SchemaExtent newExtent)
|
void |
transitionFrom(SchemaExtent oldSchema)
This method dictates how a schema manager will transition from the schema of the previous schema manager. |
void |
typeMismatch(TypeMismatchException tme)
This method reports a type mismatch exception for advice by the schema manager. |
void |
unknownField(UnknownFieldReferenceException ufre)
This method allows the schema-consistent handling of references to unknown fields (due to type mismatch). |
void |
unknownMethod(UnknownMethodInvokationException umie)
This method allows the schema-consistent handling of invocations to unknown methods (due to type mismatch). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final VariableReferenceElement SCHEMA_EXTENT
public static final java.lang.String defaultSchema
protected pJ.jasmine.Hashtab reassignedTypes
protected pJ.jasmine.Hashtab substitutibleTypes
| Constructor Detail |
public SchemaManager()
| Method Detail |
public void addType(TypeReferenceElement newType)
public boolean assignableFrom(TypeReferenceElement one,
TypeReferenceElement two)
public TypeReferenceElement bindType(TypeReferenceElement type)
public boolean compareTypes(TypeReferenceElement one,
TypeReferenceElement two)
public java.util.Collection getEquivalentTypes(TypeReferenceElement type)
public TypeReferenceElement getReassignedType(TypeReferenceElement deprecated)
public TypeReferenceElement getActiveVersion(TypeReferenceElement otherVersion)
public final SchemaExtent getSchemaExtent()
public final QueryEnumeration getSubstitutableTypes(TypeReferenceElement type)
public final java.util.Collection getTypeExtent(TypeReferenceElement type)
public boolean isSubstitutibleFor(TypeReferenceElement one,
TypeReferenceElement two)
public void removeType(TypeReferenceElement removed)
public TypeReferenceElement reclassifyType(TypeReferenceElement deprecated)
public final void declareSubstitutable(TypeReferenceElement one,
TypeReferenceElement two)
public void setSchemaExtent(SchemaExtent newExtent)
public void transitionFrom(SchemaExtent oldSchema)
public void typeMismatch(TypeMismatchException tme)
public void unknownField(UnknownFieldReferenceException ufre)
public void unknownMethod(UnknownMethodInvokationException umie)
public void alteredFieldReferenced(InterpreterException ie)
public void alteredMethodReferenced(InterpreterException ie)
public void fieldExposed(InterpreterException ie)
public void methodExposed(InterpreterException ie)
public void fieldOverridden(InterpreterException ie)
public void methodOverridden(InterpreterException ie)
public void removedFieldReferenced(InterpreterException ie)
public void removedMethodReferenced(InterpreterException ie)
public void renamedMemberReferenced(InterpreterException ie)
public void renamedTypeReferenced(InterpreterException ie)
public void print(java.lang.String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||