public class LenientDataSourceCatalog extends DataSourceCatalog
Extension of DataSourceCatalog that can accomodate dynamic fields.
dataSource, fieldIdStringFlag, INT, orderedValues, pageSizeX_POINT_ID| Constructor and Description |
|---|
LenientDataSourceCatalog(DataSource ds,
ValidationLayer valLayer,
boolean fieldId,
int pageSize,
long cacheUpdateMin,
boolean productIdString,
boolean orderedValues)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMetadata(Metadata m,
Product product)
Ingests
Metadata into the metadata store, and associates it with
the given productId. |
Metadata |
getMetadata(Product product)
Gets the Metadata for a given Product.
|
Metadata |
getReducedMetadata(Product product,
List<String> elems)
Gets a reduced set of metadata for a give Product.
|
protected int |
getResultListSize(Query query,
ProductType type)
Overridden method from superclass to allow for null validation layer.
|
protected String |
getSqlQuery(QueryCriteria queryCriteria,
ProductType type)
Overridden method from superclass to allow for null validation layer.
|
void |
removeMetadata(Metadata m,
Product product)
Removes
Metadata from the metadata store, and disassociates it
from the given productId. |
addProduct, addProductReferences, getFirstPage, getLastProductPage, getNextPage, getNumProducts, getPrevPage, getProductById, getProductByName, getProductReferences, getProducts, getProductsByProductType, getTopNProducts, getTopNProducts, getValidationLayer, modifyProduct, pagedQuery, query, quoteIt, removeProduct, setProductTransferStatuspublic LenientDataSourceCatalog(DataSource ds, ValidationLayer valLayer, boolean fieldId, int pageSize, long cacheUpdateMin, boolean productIdString, boolean orderedValues)
Default Constructor
.public void addMetadata(Metadata m, Product product) throws CatalogException
Catalog
Ingests Metadata into the metadata store, and associates it with
the given productId.
addMetadata in interface CatalogaddMetadata in class DataSourceCatalogm - The Metadata to ingest.product - The product to add the metadata for.CatalogException - If any general error occurs.public void removeMetadata(Metadata m, Product product) throws CatalogException
Catalog
Removes Metadata from the metadata store, and disassociates it
from the given productId.
removeMetadata in interface CatalogremoveMetadata in class DataSourceCatalogm - The Metadata to remove.product - The product for which the metadata is to be removed.CatalogException - If any general error occurs.public Metadata getMetadata(Product product) throws CatalogException
CatalogGets the Metadata for a given Product.
getMetadata in interface CataloggetMetadata in class DataSourceCatalogproduct - The Product to obtain the Metadata for.Metadata for the given productId.
CatalogException - If any error occurs.public Metadata getReducedMetadata(Product product, List<String> elems) throws CatalogException
CatalogGets a reduced set of metadata for a give Product.
getReducedMetadata in interface CataloggetReducedMetadata in class DataSourceCatalogproduct - The Product to obtain the Metadata for.elems - The set of metadata elements of interest.Metadata for the given productId.CatalogException - If any error occurs.protected int getResultListSize(Query query, ProductType type) throws CatalogException
getResultListSize in class DataSourceCatalogCatalogExceptionprotected String getSqlQuery(QueryCriteria queryCriteria, ProductType type) throws ValidationLayerException, CatalogException
getSqlQuery in class DataSourceCatalogValidationLayerExceptionCatalogExceptionCopyright © 1999–2017 Apache OODT. All rights reserved.