org.shept.org.springframework.web.servlet.mvc.delegation.command
Class RefreshableListCommandFactory
java.lang.Object
org.shept.org.springframework.web.servlet.mvc.delegation.command.AbstractCommandFactory
org.shept.org.springframework.web.servlet.mvc.delegation.command.RefreshableListCommandFactory
- All Implemented Interfaces:
- CommandFactory, TargetCommandFactory, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
public class RefreshableListCommandFactory
- extends AbstractCommandFactory
- implements CommandFactory, org.springframework.beans.factory.InitializingBean
- Version:
- $Rev$
- Author:
- Andreas Hahn
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.shept.org.springframework.web.servlet.mvc.delegation.command.CommandFactory |
getCommand |
| Methods inherited from interface org.springframework.beans.factory.InitializingBean |
afterPropertiesSet |
filter
private FilterDefinition filter
RefreshableListCommandFactory
public RefreshableListCommandFactory()
getCommand
public Object getCommand(TargetConfiguration config,
Object referencedModel)
- Specified by:
getCommand in interface TargetCommandFactory- Specified by:
getCommand in class AbstractCommandFactory
initializeFilter
protected void initializeFilter(FilterDefinition fil,
TargetConfiguration config)
- Special case: if filter is a HibernateCriteriaFilter we must populate the entityClass property
- Parameters:
fil - config -
createFilter
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
- Parameters:
config - config -
- Returns:
setFilter
public void setFilter(FilterDefinition filter)
- Parameters:
filter - the filter to set
Copyright © 2011. All Rights Reserved.