Package gov.niem.tools.api.db.base
Class BaseVersionEntity<T extends BaseVersionEntity<T>>
java.lang.Object
gov.niem.tools.api.db.base.BaseEntity
gov.niem.tools.api.db.base.BaseStewardEntity
gov.niem.tools.api.db.base.BaseModelEntity
gov.niem.tools.api.db.base.BaseVersionedEntity<T>
gov.niem.tools.api.db.base.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the corresponding entity from the current version via migration rules.getModel()Gets the Model that defines this object.Gets the NIEM Version object that is compatible with this object.Gets the NIEM Version number (string) that is compatible with this object.For a component in a subset, gets the component from the original source.abstract VersionGets the version database id.A number which identifies a version within a model.booleanTrue if this entity is from the current version; false otherwise.booleanTrue 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).Methods inherited from class gov.niem.tools.api.db.base.BaseVersionedEntity
getNext, getPrevMethods inherited from class gov.niem.tools.api.db.base.BaseModelEntity
getModelKey, getModelSummary, getStewardMethods inherited from class gov.niem.tools.api.db.base.BaseStewardEntity
getStewardKey, getStewardSummaryMethods inherited from class gov.niem.tools.api.db.base.BaseEntity
getClassName, getIdLabel, getIdLocalLabel, getParentEntity, getRoute, getTitle
-
Constructor Details
-
BaseVersionEntity
public BaseVersionEntity()
-
-
Method Details
-
getVersion
-
isCurrent
True if this entity is from the current version; false otherwise.- Throws:
EntityNotFoundException
-
getCurrent
Get the corresponding entity from the current version via migration rules. -
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
Gets the version database id. -
getVersionSummary
-
getVersionNumber
A number which identifies a version within a model. -
getNiemVersion
Gets the NIEM Version object that is compatible with this object. -
getNiemVersionNumber
Gets the NIEM Version number (string) that is compatible with this object. -
getModel
Gets the Model that defines this object.- Specified by:
getModelin classBaseModelEntity
-