public class ContentCategoryLookup<C extends AbstractContent> extends AbstractCategoryLookup<C>
Product
by using any unique field in it
Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
entityManager |
searchBy, throwExceptionOnNull, type
Constructor and Description |
---|
ContentCategoryLookup() |
ContentCategoryLookup(javax.persistence.EntityManager entityManager) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
javax.persistence.EntityManager |
getEntityManager() |
protected C |
query(Object value)
Implementation, to define how to query using the query object
|
void |
setEntityManager(javax.persistence.EntityManager entityManager) |
Object |
transform(Object in)
For a Given String mnemonic code lookup the Hierarchy of the Category
|
getSearchBy, isThrowExceptionOnNull, setSearchBy, setThrowExceptionOnNull
public ContentCategoryLookup()
public ContentCategoryLookup(javax.persistence.EntityManager entityManager)
@Cacheable(value="contentLookup") public Object transform(Object in)
transform
in interface org.apache.commons.collections.Transformer
transform
in class AbstractCategoryLookup<C extends AbstractContent>
in
- as value (some unique key), from which the parent object can be derivedprotected C query(Object value) throws Exception
AbstractCategoryLookup
query
in class AbstractCategoryLookup<C extends AbstractContent>
value
- input object (value to search for) on the AbstractCategoryLookup.searchBy
fieldException
Query
@CacheEvict(value="contentLookup", allEntries=true) public void clear()
public javax.persistence.EntityManager getEntityManager()
public void setEntityManager(javax.persistence.EntityManager entityManager)
Copyright © 2018. All rights reserved.