Direct Known Subclasses:
AnnotationConverter, SurveyReportConverter

public abstract class SAFConverter<B> extends OMFConverter<B>
ODFConverter provides the generic methods for the Data Manager beans converters. Generic classes have limited knowledge of the classes these are working on and this means creating a new instance of a class from within a generic is a little involved. This class provides the generic method for creating and initializing a Data Manager bean.
  • Constructor Details

    • SAFConverter

      public SAFConverter(OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
      Constructor
      Parameters:
      repositoryHelper - helper object to parse entity
      serviceName - name of this component
      serverName - name of this server
  • Method Details

    • getAnnotationBean

      protected Annotation getAnnotationBean(Class<B> beanClass, EntityDetail primaryEntity, List<EntityDetail> supplementaryEntities, List<Relationship> relationships, String methodName) throws PropertyServerException
      Using the supplied instances, return a new instance of the Connection bean. It may be a Connection or a VirtualConnection.
      Parameters:
      beanClass - class of bean that has been requested
      primaryEntity - entity that is the root of the collection of entities that make up the content of the bean
      supplementaryEntities - entities connected to the primary entity by the relationships
      relationships - relationships linking the entities
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied in the constructor
      Throws:
      PropertyServerException - there is a problem instantiating the bean