|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oodt.cas.filemgr.repository.ScienceDataRepositoryManager
public class ScienceDataRepositoryManager
Leverages the information in the ScienceDataCatalog
's dataset table
to list out ProductType
s.
Field Summary |
---|
Fields inherited from interface org.apache.oodt.cas.filemgr.repository.RepositoryManager |
---|
X_POINT_ID |
Constructor Summary | |
---|---|
ScienceDataRepositoryManager(DataSource dataSource)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScienceDataRepositoryManager(DataSource dataSource)
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |