org.sourceforge.jemm.database.components
Class DefaultDBClassHandler

java.lang.Object
  extended by org.sourceforge.jemm.database.components.DefaultDBClassHandler
All Implemented Interfaces:
DBClassHandler

public class DefaultDBClassHandler
extends java.lang.Object
implements DBClassHandler

Author:
Rory Graves

Constructor Summary
DefaultDBClassHandler(StorageEngine storageEngine)
           
 
Method Summary
protected  boolean allowModification(ClassId classId, ClassInfo current, ClassInfo proposed)
          Method to determine whether class modification is allowed.
 ClassInfo get(ClassId classId)
           
 ClassId register(ClassInfo info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDBClassHandler

public DefaultDBClassHandler(StorageEngine storageEngine)
Method Detail

get

public ClassInfo get(ClassId classId)
Specified by:
get in interface DBClassHandler

register

public ClassId register(ClassInfo info)
                 throws StructureModifiedException
Specified by:
register in interface DBClassHandler
Throws:
StructureModifiedException

allowModification

protected boolean allowModification(ClassId classId,
                                    ClassInfo current,
                                    ClassInfo proposed)
Method to determine whether class modification is allowed. Internal method to all sub-classes to extend default behaviour

Parameters:
classId - The classId The id of the registered class.
current - The current class structure
proposed - The proposed class structure
Returns:
Whether modification is allowed


Copyright © 2009. All Rights Reserved.