Examples of populate()


Examples of org.rendersnake.servlet.FormDataPopulator.populate()

        Logger.getLogger(FormDataPopulator.class.getName()).setLevel(Level.FINE);
        FormDataPopulator pop = new FormDataPopulator();
        Person p = new Person();
        MockHttpRequest request = new MockHttpRequest();
        request.parameters.put("age"+FormHandler.VAR_NAME_POSTFIX,"twentyfour");
        pop.populate(request, p);
    }
}
View Full Code Here

Examples of org.springframework.beans.IndexedTestBean.populate()

    bw.registerCustomEditor(String.class, "map.name", new PropertyEditorSupport() {
      public void setAsText(String text) throws IllegalArgumentException {
        setValue("map" + text);
      }
    });
    bean.populate();

    TestBean tb0 = bean.getArray()[0];
    TestBean tb1 = bean.getArray()[1];
    TestBean tb2 = ((TestBean) bean.getList().get(0));
    TestBean tb3 = ((TestBean) bean.getList().get(1));
View Full Code Here

Examples of org.springframework.beans.IndexedTestBean.populate()

    bw.registerCustomEditor(String.class, "map[key2].name", new PropertyEditorSupport() {
      public void setAsText(String text) throws IllegalArgumentException {
        setValue("mapkey2" + text);
      }
    });
    bean.populate();

    TestBean tb0 = bean.getArray()[0];
    TestBean tb1 = bean.getArray()[1];
    TestBean tb2 = ((TestBean) bean.getList().get(0));
    TestBean tb3 = ((TestBean) bean.getList().get(1));
View Full Code Here

Examples of org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.populate()

    @Bean
    @DependsOn("entityManagerFactory")
    public ResourceDatabasePopulator initDatabase(DataSource dataSource) throws Exception {
        ResourceDatabasePopulator populator = new ResourceDatabasePopulator();
        populator.addScript(new ClassPathResource("data.sql"));
        populator.populate(dataSource.getConnection());
        return populator;
    }

    @Bean
    public PlatformTransactionManager transactionManager() {
View Full Code Here

Examples of org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.populate()

    @Bean
    @DependsOn("entityManagerFactory")
    public ResourceDatabasePopulator initDatabase(DataSource dataSource) throws Exception {
        ResourceDatabasePopulator populator = new ResourceDatabasePopulator();
        populator.addScript(new ClassPathResource("data.sql"));
        populator.populate(dataSource.getConnection());
        return populator;
    }

    @Bean
    public PlatformTransactionManager transactionManager() {
View Full Code Here

Examples of org.springframework.tests.sample.beans.IndexedTestBean.populate()

      @Override
      public void setAsText(String text) throws IllegalArgumentException {
        setValue("map" + text);
      }
    });
    bean.populate();

    TestBean tb0 = bean.getArray()[0];
    TestBean tb1 = bean.getArray()[1];
    TestBean tb2 = ((TestBean) bean.getList().get(0));
    TestBean tb3 = ((TestBean) bean.getList().get(1));
View Full Code Here

Examples of simpledao.SimpleBean.populate()

         
        }

                // create the return bean
                SimpleBean newBean = bean.getClass().newInstance();
                newBean.populate( props );

                beanList.add( newBean );
            }
            ps.close();
        }
View Full Code Here

Examples of sun.jdbc.rowset.CachedRowSet.populate()

                        rs = stmt.executeQuery();
                       
                        for( int i = 0; i < slide.getOffset() - 1; i++, total++ ) rs.next();

                        crs.populate( rs );

                        rs.close();

                        stmt.close();
View Full Code Here

Examples of swingintegration.example.EmbeddedSwingComposite.populate()

        panel.addAncestorListener(SwtDialog.this);
        return panel;
      }
    };
    composite.populate();
    return composite;
  }

  public void ancestorAdded(AncestorEvent event) {
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.