Package org.crank.crud.controller

Examples of org.crank.crud.controller.FilteringPaginator$FilterMap


  @SuppressWarnings({ "unchecked", "serial" })
  @Bean(scope = "view")
  public JsfCrudAdapter empRecordCrud() {
    EmployeeDataSource dataSource = new EmployeeDataSource();
    dataSource.setJdbcTemplate(new JdbcTemplate(employeeDataSource()));
    FilteringPaginator filteringPaginator = new FilteringPaginator(dataSource, EmployeeReportObject.class);
    JsfCrudAdapter adapter = new JsfCrudAdapter("empRecord",filteringPaginator, (CrudOperations)empCrud().getController()){
        public Serializable getEntity() {
            Object object = ((Row)getModel().getRowData()).getObject();
            EmployeeReportObject employeeReportObject = (EmployeeReportObject) object;
            Employee employee = new Employee();
View Full Code Here


  @SuppressWarnings({ "unchecked", "serial" })
  @Bean(scope = "view")
  public JsfCrudAdapter empRecordCrud() {
    EmployeeDataSource dataSource = new EmployeeDataSource();
    dataSource.setJdbcTemplate(new JdbcTemplate(employeeDataSource()));
    FilteringPaginator filteringPaginator = new FilteringPaginator(dataSource, EmployeeReportObject.class);
    JsfCrudAdapter adapter = new JsfCrudAdapter("empRecord",filteringPaginator, (CrudOperations)empCrud().getController()){
        public Serializable getEntity() {
            Object object = ((Row)getModel().getRowData()).getObject();
            EmployeeReportObject employeeReportObject = (EmployeeReportObject) object;
            Employee employee = new Employee();
View Full Code Here

  @SuppressWarnings({ "unchecked", "serial" })
  @Bean(scope = "view")
  public JsfCrudAdapter empRecordCrud() {
    EmployeeDataSource dataSource = new EmployeeDataSource();
    dataSource.setJdbcTemplate(new JdbcTemplate(employeeDataSource()));
    FilteringPaginator filteringPaginator = new FilteringPaginator(dataSource, EmployeeReportObject.class);
    JsfCrudAdapter adapter = new JsfCrudAdapter("empRecord",filteringPaginator, (CrudOperations)empCrud().getController()){
        public Serializable getEntity() {
            Object object = ((Row)getModel().getRowData()).getObject();
            EmployeeReportObject employeeReportObject = (EmployeeReportObject) object;
            Employee employee = new Employee();
View Full Code Here

        DeferredResourceCreator drc = new DeferredResourceCreator(){
               public void createResource(Map map, CrudManagedObject mo) throws Exception{
                   DaoFilteringPagingDataSource dataSource = new DaoFilteringPagingDataSource();
                   dataSource.setDao( repos().get( mo.getName() ));
                   FilteringPaginator dataPaginator = null;
                   if (mo.getPropertyNames() == null) {
                        dataPaginator = new FilteringPaginator(dataSource, mo.getEntityType());
                   } else {
                       dataPaginator = new FilteringPaginator(dataSource, mo.getEntityType(), mo.getPropertyNames());
                   }
                   dataPaginator.setRequestParameterMapFinder(new RequestParameterMapFinderImpl());
                   map.put(StringUtils.unCapitalize(mo.getName()), dataPaginator);
                   map.put(mo.getName(), dataPaginator);
                   //dataPaginator.filter();

               }
View Full Code Here

TOP

Related Classes of org.crank.crud.controller.FilteringPaginator$FilterMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.