public class LenientDataSourceCatalog extends DataSourceCatalog
Extension of DataSourceCatalog
that can accomodate dynamic fields.
dataSource, fieldIdStringFlag, INT, orderedValues, pageSize
X_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, setProductTransferStatus
public 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 Catalog
addMetadata
in class DataSourceCatalog
m
- 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 Catalog
removeMetadata
in class DataSourceCatalog
m
- 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
Catalog
Gets the Metadata for a given Product.
getMetadata
in interface Catalog
getMetadata
in class DataSourceCatalog
product
- 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
Catalog
Gets a reduced set of metadata for a give Product.
getReducedMetadata
in interface Catalog
getReducedMetadata
in class DataSourceCatalog
product
- 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 DataSourceCatalog
CatalogException
protected String getSqlQuery(QueryCriteria queryCriteria, ProductType type) throws ValidationLayerException, CatalogException
getSqlQuery
in class DataSourceCatalog
ValidationLayerException
CatalogException
Copyright © 1999–2017 Apache OODT. All rights reserved.