Examples of find()


Examples of org.sonatype.aether.repository.LocalRepositoryManager.find()

                    continue;
                }
            }

            LocalArtifactResult local =
                lrm.find( session, new LocalArtifactRequest( artifact, repos, request.getRequestContext() ) );
            if ( local.isAvailable()
                || ( local.getFile() != null && versionResult.getRepository() instanceof LocalRepository ) )
            {
                if ( local.getRepository() != null )
                {
View Full Code Here

Examples of org.springframework.boot.dependency.tools.ManagedDependencies.find()

      ModuleVersionSelector target = resolveDetails.getTarget();
      if (SPRING_BOOT_GROUP.equals(target.getGroup())) {
        resolveDetails.useVersion(dependencies.getSpringBootVersion());
        return;
      }
      Dependency dependency = dependencies
          .find(target.getGroup(), target.getName());
      if (dependency != null) {
        resolveDetails.useVersion(dependency.getVersion());
      }
    }
View Full Code Here

Examples of org.springframework.orm.hibernate3.HibernateTemplate.find()

    return (User) getObject(User.class, id);
  }

    public User getUser(String username) {
        HibernateTemplate ht = getHibernateTemplate();
        User user = (User)ht.find("from User user where user.username = '"+username+"'");
        return (user);
    }

    public void saveUser(User user) {
    HibernateTemplate ht = getHibernateTemplate();
View Full Code Here

Examples of org.springmodules.datamap.dao.DataMapper.find()

    public void testSimpleFind() throws Exception {
        jdbcTemplate.execute("insert into beers (id, brand) values(12, 'Amstel')");
        DataMapper am = new ActiveMapper(Beer.class);
        am.setDataSource(jdbcTemplate.getDataSource());
        am.afterPropertiesSet();
        Beer b = (Beer) am.find(new Long(12));
        assertEquals("correct beer found", "Amstel", b.getBrand());
    }

    public void testSimpleAdd() throws Exception {
        DataMapper am = new ActiveMapper(Beer.class);
View Full Code Here

Examples of org.springmodules.datamap.jdbc.sqlmap.ActiveMapper.find()

    public void testSimpleFind() throws Exception {
        jdbcTemplate.execute("insert into beers (id, brand) values(12, 'Amstel')");
        DataMapper am = new ActiveMapper(Beer.class);
        am.setDataSource(jdbcTemplate.getDataSource());
        am.afterPropertiesSet();
        Beer b = (Beer) am.find(new Long(12));
        assertEquals("correct beer found", "Amstel", b.getBrand());
    }

    public void testSimpleAdd() throws Exception {
        DataMapper am = new ActiveMapper(Beer.class);
View Full Code Here

Examples of org.tarantool.facade.TarantoolTemplate.find()

      fail();
    } catch (TarantoolException ignored) {

    }
    assertEquals(1, template.save(user).replace());
    assertNotNull(template.find(User.class, 0, "id").condition(user.getId()).list());
    assertEquals(user.getPhone() + 1L, template.update(User.class, user.getId()).add("phone", 1).updateAndGet().getPhone());

    connectionFactory.free();
    return;
  }
View Full Code Here

Examples of org.tarantool.facade.TarantoolTemplate7.find()

    Mapping<User> mapping = new Mapping7<User>(User.class, 125, "id", "phone", "point", "iq", "height", "lifeFormId", "salary", "birthday", "name", "sign",
        "male");
    TarantoolTemplate tpl = new TarantoolTemplate7(new SocketChannelPooledConnectionFactory("localhost", 33313, 1, 10));
    tpl.addMapping(mapping);
    try {
      tpl.find(User.class).condition("string");
      fail();
    } catch (IllegalArgumentException ignored) {

    }
    try {
View Full Code Here

Examples of org.wikier.trioo.jtrioo.ResourceManager.find()

   
    rm.load("http://www.wikier.org/foaf.rdf");
   
    out.println("sergio:");
    out.println("------");
    Person sergio = (Person)rm.find(Person.class, "http://www.wikier.org/foaf#wikier");
    out.println(sergio);
    out.println();
    out.flush();
   
    out.println("diego:");
View Full Code Here

Examples of org.xhtmlrenderer.layout.Layer.find()

    }
   
    public Box find(int x, int y) {
        Layer l = getRootLayer();
        if (l != null) {
            return l.find(layout_context, x, y, false);
        }
        return null;
    }

    protected synchronized boolean isPendingResize() {
View Full Code Here

Examples of org.xhtmlrenderer.render.Box.find()

            }
        }
       
        for (int i = 0; i < getFloats().size(); i++) {
            Box floater = (Box)getFloats().get(i);
            result = floater.find(cssCtx, absX, absY, findAnonymous);
            if (result != null) {
                return result;
            }
        }
       
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.