Class BaseVersionEntityService<U extends BaseVersionedEntity<U>>

java.lang.Object
gov.niem.tools.api.db.base.BaseEntityService<U>
gov.niem.tools.api.db.base.BaseVersionEntityService<U>
Direct Known Subclasses:
ComponentService, FacetService, NamespaceService, SubpropertyService, VersionService

public abstract class BaseVersionEntityService<U extends BaseVersionedEntity<U>> extends BaseEntityService<U>
Abstract class the provides additional database operations for data model items that are versioned (e.g., versions, namespaces, properties, etc.)
  • Constructor Details

    • BaseVersionEntityService

      public BaseVersionEntityService()
  • Method Details

    • getPrev

      public U getPrev(U object, boolean includePreRelease) throws NoContentException
      Get the corresponding entity from the previous version, if available and linked via migration rules.
      Parameters:
      includePreRelease - - True to return the result from a pre-release version if that is the immediate predecessor; false to iterate until an official version is reached. (NOT CURRENTLY IMPLEMENTED)
      Throws:
      NoContentException
    • getNext

      public U getNext(U object, boolean includePreRelease) throws NoContentException
      Get the corresponding entity from the next version, if available and linked via migration rules.
      Parameters:
      includePreRelease - - True to return the result from a pre-release version if that is the immediate predecessor; false to iterate until an official version is reached. (NOT CURRENTLY IMPLEMENTED)
      Throws:
      NoContentException
    • getHistory

      public List<U> getHistory(U object, boolean includePreRelease)
      Get the full migration history for the given entity as available from the migration rules.
      Parameters:
      includePreRelease - - True to return the result from a pre-release version if that is the immediate predecessor; false to iterate until an official version is reached. (NOT CURRENTLY IMPLEMENTED)