public class ScienceDataRepositoryManager extends Object implements RepositoryManager
ScienceDataCatalog's dataset table
to list out ProductTypes.X_POINT_ID| Constructor and Description |
|---|
ScienceDataRepositoryManager(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProductType(ProductType productType)
Adds a ProductType to the RepositoryManager.
|
ProductType |
getProductTypeById(String productTypeId)
Gets a {link ProductType} from the RepositoryManager identified by its
productTypeId. |
ProductType |
getProductTypeByName(String productTypeName)
Gets a
ProductType specified by its productTypeName,
from the RepositoryManager. |
List<ProductType> |
getProductTypes()
Gets all the
ProductTypes from the repository. |
void |
modifyProductType(ProductType productType)
Modifies a ProductType in the RepositoryManager with the specified ID
field of the
productType. |
void |
removeProductType(ProductType productType)
Removes a ProductType from the RepositoryManager
|
public ScienceDataRepositoryManager(DataSource dataSource)
public void addProductType(ProductType productType) throws RepositoryManagerException
RepositoryManagerAdds a ProductType to the RepositoryManager.
addProductType in interface RepositoryManagerproductType - The ProductType to add.RepositoryManagerExceptionpublic ProductType getProductTypeById(String productTypeId) throws RepositoryManagerException
RepositoryManager
Gets a {link ProductType} from the RepositoryManager identified by its
productTypeId.
getProductTypeById in interface RepositoryManagerproductTypeId - The ID of the ProductType to retrieve.ProductType corresponding to the specified
productTypeId.RepositoryManagerException - If any error occurs.public ProductType getProductTypeByName(String productTypeName) throws RepositoryManagerException
RepositoryManager
Gets a ProductType specified by its productTypeName,
from the RepositoryManager.
getProductTypeByName in interface RepositoryManagerproductTypeName - The name of the ProductType to get.ProductType, with the specified name.RepositoryManagerException - If any error occurs.public List<ProductType> getProductTypes() throws RepositoryManagerException
RepositoryManager
Gets all the ProductTypes from the repository.
getProductTypes in interface RepositoryManagerList of ProductTypes from the repository.RepositoryManagerException - If any error occurs.public void modifyProductType(ProductType productType) throws RepositoryManagerException
RepositoryManager
Modifies a ProductType in the RepositoryManager with the specified ID
field of the productType.
modifyProductType in interface RepositoryManagerproductType - The new ProductType information.RepositoryManagerException - If any error occurs.public void removeProductType(ProductType productType) throws RepositoryManagerException
RepositoryManagerRemoves a ProductType from the RepositoryManager
.removeProductType in interface RepositoryManagerproductType - The productType to remove.RepositoryManagerException - If any error occurs during the removal.Copyright © 1999–2017 Apache OODT. All rights reserved.