org.shept.org.springframework.web.servlet.mvc.delegation.command
public class RefreshableListCommandFactory extends AbstractCommandFactory implements CommandFactory, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
private FilterDefinition |
filter |
logger| Constructor and Description |
|---|
RefreshableListCommandFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected FilterDefinition |
createFilter(TargetConfiguration config)
build a filter and check the configuration
Criteria API: Both filterClass and entityClass must be specified
Query API (HQL): Only filterClass must be specified
Example: filterClass and entityClass must be specified
Note that the default ComponentConfiguration will initialize an empty filterClass with the entityClass
|
Object |
getCommand(TargetConfiguration config,
Object referencedModel) |
protected void |
initializeFilter(FilterDefinition fil,
TargetConfiguration config)
Special case: if filter is a HibernateCriteriaFilter we must populate the entityClass property
|
void |
setFilter(FilterDefinition filter) |
afterPropertiesSet, getApplicationContext, getCommand, getCommand, getPageHolderFactory, setApplicationContext, setPageHolderFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommandprivate FilterDefinition filter
public Object getCommand(TargetConfiguration config, Object referencedModel)
getCommand in interface TargetCommandFactorygetCommand in class AbstractCommandFactoryprotected void initializeFilter(FilterDefinition fil, TargetConfiguration config)
fil - config - protected FilterDefinition createFilter(TargetConfiguration config)
config - config - public void setFilter(FilterDefinition filter)
filter - the filter to setCopyright © 2014. All Rights Reserved.