public class ScienceDataRepositoryManager extends Object implements RepositoryManager
ScienceDataCatalog
's dataset table
to list out ProductType
s.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
ProductType s 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
RepositoryManager
Adds a ProductType to the RepositoryManager.
addProductType
in interface RepositoryManager
productType
- The ProductType
to add.RepositoryManagerException
public ProductType getProductTypeById(String productTypeId) throws RepositoryManagerException
RepositoryManager
Gets a {link ProductType} from the RepositoryManager identified by its
productTypeId
.
getProductTypeById
in interface RepositoryManager
productTypeId
- 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 RepositoryManager
productTypeName
- 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 ProductType
s from the repository.
getProductTypes
in interface RepositoryManager
List
of ProductType
s 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 RepositoryManager
productType
- The new ProductType
information.RepositoryManagerException
- If any error occurs.public void removeProductType(ProductType productType) throws RepositoryManagerException
RepositoryManager
Removes a ProductType from the RepositoryManager
.removeProductType
in interface RepositoryManager
productType
- The productType to remove.RepositoryManagerException
- If any error occurs during the removal.Copyright © 1999–2017 Apache OODT. All rights reserved.