Package gov.niem.tools.api.db.base
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHistory(U object, boolean includePreRelease) Get the full migration history for the given entity as available from the migration rules.Get the corresponding entity from the next version, if available and linked via migration rules.Get the corresponding entity from the previous version, if available and linked via migration rules.Methods inherited from class gov.niem.tools.api.db.base.BaseEntityService
add, assertFieldNotNullAndNotEmpty, assertRequiredLocalFields, assertUnique, count, delete, edit, findOne, findOneOptional, getEntityClassName, getNotFoundException, loadId, merge, repository, saveExisting, saveNew, throwNotFound, throwNotFound, throwNotFound, throwNotUnique, throwNotUnique, throwNotUnique
-
Constructor Details
-
BaseVersionEntityService
public BaseVersionEntityService()
-
-
Method Details
-
getPrev
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
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
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)
-