Class BaseVersionEntity<T extends BaseVersionEntity<T>>

Type Parameters:
T - A class for a kind of entity that that belongs to a version, such as Namespace, Property, Type, or Facet.
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BaseNamespaceEntity, Namespace

@MappedSuperclass public abstract class BaseVersionEntity<T extends BaseVersionEntity<T>> extends BaseVersionedEntity<T>
Adds reusable methods for entities that belong to a version: Namespace, Property, etc.
See Also:
  • Constructor Details

    • BaseVersionEntity

      public BaseVersionEntity()
  • Method Details

    • getVersion

      public abstract Version getVersion()
    • isCurrent

      public boolean isCurrent() throws EntityNotFoundException
      True if this entity is from the current version; false otherwise.
      Throws:
      EntityNotFoundException
    • getCurrent

      public T getCurrent()
      Get the corresponding entity from the current version via migration rules.
    • getOriginal

      public T getOriginal()
      For a component in a subset, gets the component from the original source.
    • isOriginal

      public boolean isOriginal()
      True if an entity is defined by its version and can be modified freely; false if an entity is being referenced and reused from another model and version and is restricted in the changes that can be made (subset options).
    • getVersionId

      public Long getVersionId()
      Gets the version database id.
    • getVersionSummary

      public Map<String,String> getVersionSummary()
    • getVersionNumber

      public String getVersionNumber()
      A number which identifies a version within a model.
    • getNiemVersion

      public Version getNiemVersion()
      Gets the NIEM Version object that is compatible with this object.
    • getNiemVersionNumber

      public String getNiemVersionNumber()
      Gets the NIEM Version number (string) that is compatible with this object.
    • getModel

      public Model getModel()
      Gets the Model that defines this object.
      Specified by:
      getModel in class BaseModelEntity