Interface ProductDatabase
- All Known Implementing Classes:
ProductDatabaseBean
public interface ProductDatabase
-
Method Summary
Modifier and TypeMethodDescriptiongetActiveTocVersion(String name, String modelVersion) Gets theTocVersionEntitymarked asTocVersionEntity.Status.ACTIVEfor the givennameandmodelVersionfrom theEntityManager.getActiveVersionNumber(String name, String modelVersion) Gets theversion of the TocVersionmarked asTocVersionEntity.Status.ACTIVEfor the givennameandmodelVersionfrom theEntityManager.
-
Method Details
-
getActiveTocVersion
Gets theTocVersionEntitymarked asTocVersionEntity.Status.ACTIVEfor the givennameandmodelVersionfrom theEntityManager.- Parameters:
name- the name identifying a table of contentsmodelVersion- the version of the model matching the product data contained in the table of contents- Returns:
- the
activeTocVersionEntity - Throws:
IllegalStateException- if more than one version for the givennameandmodelVersionis marked asTocVersionEntity.Status.ACTIVE
-
getActiveVersionNumber
Gets theversion of the TocVersionmarked asTocVersionEntity.Status.ACTIVEfor the givennameandmodelVersionfrom theEntityManager.- Parameters:
name- the name identifying a table of contentsmodelVersion- the version of the model matching the product data contained in the table of contents- Returns:
- the
activeTocVersionEntity - Throws:
IllegalStateException- if more than one version for the givennameandmodelVersionis marked asTocVersionEntity.Status.ACTIVE
-