Examples of findAll()


Examples of com.nevernote.service.NotesService.findAll()

   
    //TODO - There is probably a better way to do this, but its late, and I want to work on the Client Dash
   
    System.out.println("***************Inside findAllForUser**************");
    System.out.println("***************Get All Notes**************");
    List<Notes> all = ns.findAll();
    List<Notes> userNotes = new ArrayList<Notes>();
    System.out.println("***************I did get the right ID, right?**************");
    System.out.println(id);
   
    Users target = us.findById(id);
View Full Code Here

Examples of com.nevernote.service.UsersService.findAll()

    System.out.println("********************");
   
    // Obtain Collection of all Users
    List<Users> users = new ArrayList<Users>();
   
    users = us.findAll();

    List<Users> usersToBeSent = new ArrayList<Users>();
    for (Users u : users) {
      if (!"root".equals(u.getId())) {
        usersToBeSent.add(u);
View Full Code Here

Examples of com.nurkiewicz.jdbcrepository.repositories.UserRepository.findAll()

    final UserRepository userRepository = new UserRepository("users");
    userRepository.setDataSource(dataSource);
    userRepository.setSqlGenerator(new SqlGenerator())//optional

    //when
    final List<User> list = userRepository.findAll();

    //then
    assertThat(list).isEmpty();
  }
View Full Code Here

Examples of com.opengamma.security.auditlog.HibernateAuditLogger.findAll()

  @Test
  public void testLogging() throws Exception {
    try (HibernateAuditLogger logger = new HibernateAuditLogger(5, 1)) {
      logger.setSessionFactory(getDbConnector().getHibernateSessionFactory());
     
      Collection<AuditLogEntry> logEntries = logger.findAll();
      assertEquals(0, logEntries.size());
     
      logger.log("jake", "/Portfolio/XYZ123", "View", true);
      logger.log("jake", "/Portfolio/XYZ345", "Modify", "User has no Modify permission on this portfolio", false);
     
View Full Code Here

Examples of com.peusoft.ptcollect.server.persistance.dao.GenericDao.findAll()

     */
    @SuppressWarnings("unchecked")
  @Override
    public <T extends AbstractDomainObject> List<T> getAll(Class<T> clazz) throws PTException {
      GenericDao dao = daoFactory.getDao(clazz);
        return (List<T>) dao.findAll();
    }

    /**
     * Calls { @link ConfigurationDAO#getConfiguration() }.
     */
 
View Full Code Here

Examples of com.pre.session.base.UnitOfMeasureManager.findAll()

 
  private void feedGrid() {
    Grid companiesGrid=(Grid)getFellow("uomGrid");
    Rows gridRows=companiesGrid.getRows();
    UnitOfMeasureManager manager=(UnitOfMeasureManager)WebApplication.lookup(UnitOfMeasureManager.LocalJNDIName);
    List<UnitOfMeasure> divisions=manager.findAll();
    Iterator<UnitOfMeasure> it=divisions.iterator();
    while(it.hasNext()){
      Row row=new Row();
      UnitOfMeasure c=it.next();
      row.appendChild(new Checkbox());
View Full Code Here

Examples of com.rapleaf.jack.test_project.database_1.iface.ICommentPersistence.findAll()

    dbs.getDatabase1().setAutoCommit(false);

    ICommentPersistence comments = dbs.getDatabase1().comments();
    try {
      comments.create("comment1", 1, 1, 1);
      assertEquals("There should be 1 record during transaction", 1, comments.findAll().size());

      dbs.getDatabase1().rollback();
     
      assertEquals("There should be 0 records after rollback", 0, comments.findAll().size());
    } finally {
View Full Code Here

Examples of com.rapleaf.jack.test_project.database_1.iface.IUserPersistence.findAll()

  public void testFindAllWithEscapedQuotesInStrings() throws Exception {
    IUserPersistence users = dbs.getDatabase1().users();
    User u1 = users.create("brya'nd", System.currentTimeMillis(), 5, System.currentTimeMillis() + 10, System.currentTimeMillis() + 20, "this is a relatively long string", new byte[]{5, 4, 3, 2, 1}, 1.2d, 3.4d, true);
    User u2 = users.create("thoma\"sk", null, 5, System.currentTimeMillis() + 10, System.currentTimeMillis() + 20, "this is a relatively long string", new byte[]{5, 4, 3, 2, 1}, 1.2d, 3.4d, true);

    assertEquals(Collections.singleton(u1), users.findAll("handle = 'brya\\'nd'"));
    assertEquals(Collections.singleton(u2), users.findAll("handle = 'thoma\"sk'"));
    assertEquals(Collections.singleton(u1), users.findAll("handle = 'brya\\'nd'"));
    assertEquals(Collections.singleton(u2), users.findAll("handle = 'thoma\"sk'"));
  }
View Full Code Here

Examples of com.structis.fichesst.client.service.ClientLotTypeServiceAsync.findAll()

    lotType.setDisplayField(LotTypeDto.NAME);
    lotType.setValueField(LotTypeDto.ID);
    lotType.setStore(new ListStore<LotTypeDto>());

    ClientLotTypeServiceAsync clientService = ClientLotTypeServiceAsync.Util.getInstance();
    clientService.findAll(new AsyncCallbackWithErrorResolution<List<LotTypeDto>>() {
      @Override
      public void onSuccess(final List<LotTypeDto> results) {
        Collections.sort(results);
        ListStore<LotTypeDto> list = new ListStore<LotTypeDto>();
        list.add(results);
View Full Code Here

Examples of com.structis.fichesst.client.service.ClientRefDdeAgrementServiceAsync.findAll()

    demandeDagrement.setId("INFORMATIONAL_PANEL_DEMANDEDAGREMENT_ID");
    demandeDagrement.setName(FicheStDto.REFDDEAGREMENT);
    demandeDagrement.setFieldLabel(messages.demandeDagrement());
    demandeDagrement.setStore(new ListStore<SimpleDto>());
    ClientRefDdeAgrementServiceAsync clientService = ClientRefDdeAgrementServiceAsync.Util.getInstance();
    clientService.findAll(new AsyncCallbackWithErrorResolution<List<SimpleDto>>() {
      @Override
      public void onSuccess(final List<SimpleDto> results) {
        Collections.sort(results);
        ListStore<SimpleDto> list = new ListStore<SimpleDto>();
        list.add(results);
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.