Examples of fetch()


Examples of org.jfx4ee.adm4ee.business.appcast.boundary.AppcastManager.fetch()

        List<Item> items = new ArrayList<>();
        items.add(i);
        c.setItems(items);
        appcast.setChannel(c);

        when(appcastManagerMock.fetch(anyString())).thenReturn(appcast);
        when(appcastManagerMock.getLatestRemoteVersion(anyString())).thenReturn("2.0.4711");
        when(appcastManagerMock.getManifestAppcastVersion(any(Path.class))).thenReturn("2.0.1322");
        when(appcastManagerMock.download(any(Appcast.class), any(Path.class))).thenCallRealMethod();
        updater.appcastManager = appcastManagerMock;
    }
View Full Code Here

Examples of org.jooq.DSLContext.fetch()

    }

    @Test
    public void testEmptyResult() {
        DSLContext e = DSL.using(new MockConnection(new EmptyResult()), SQLDialect.H2);
        Result<Record> result = e.fetch("select ?, ? from dual", 1, 2);

        assertEquals(0, result.size());
        assertEquals(3, result.fields().length);
        for (int i = 0; i < 3; i++) {
            assertEquals(TABLE1.field(i).getName(), result.field(i).getName());
View Full Code Here

Examples of org.jooq.SelectQuery.fetch()

        SelectQuery q = create().selectQuery();
        q.addFrom(TAuthor());
        q.addSelect(TAuthor().getFields());
        q.addOrderBy(TAuthor_LAST_NAME());

        Result<?> result = q.fetch();

        assertEquals(2, result.size());
        assertEquals("Coelho", result.get(0).getValue(TAuthor_LAST_NAME()));
        assertEquals("Orwell", result.get(1).getValue(TAuthor_LAST_NAME()));
View Full Code Here

Examples of org.jooq.util.oracle.OracleFactory.fetch()

    public static void main(String[] args) throws Exception {
        Class.forName("oracle.jdbc.OracleDriver");
        Connection connection = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "TEST", "TEST");

        OracleFactory ora = new OracleFactory(connection);
        ora.fetch("select * from t_book b join t_author a on b.author_id = a.id");

        // TODO [#1113] This doesn't work yet
//        System.out.println("Standalone call:");
//        System.out.println("----------------");
//        for (DbmsXplanTypeRecord record : DbmsXplan.displayCursor(ora, null, null, "ALLSTATS LAST").get()) {
View Full Code Here

Examples of org.mevenide.idea.repository.ChildrenFetchService.fetch()

        }

        private RepoPathElement[] getPathElements()
                throws InterruptedException, ExecutionException {
            final ChildrenFetchService executor = ChildrenFetchService.getInstance();
            final Future<RepoPathElement[]> fetchResult = executor.fetch(pathElement);
            try {
                status = SearchStatus.SEARCHING;
                listener.fetchStarted(RepoTreeNode.this);
                LOG.trace("Received fetch future for " + pathElement.getRootURI() + " - waiting for results...");
                final RepoPathElement[] children = fetchResult.get();
View Full Code Here

Examples of org.mule.module.launcher.AppBloodhound.fetch()

    }

    public Application createApp(String appName) throws IOException
    {
        AppBloodhound bh = new DefaultAppBloodhound();
        final ApplicationDescriptor descriptor = bh.fetch(appName);
        if (descriptor.isPrivileged())
        {
            final PriviledgedMuleApplication delegate = new PriviledgedMuleApplication(descriptor);
            delegate.setDeploymentService(deploymentService);
            delegate.setCoreExtensions(coreExtensions);
View Full Code Here

Examples of org.mule.module.launcher.DefaultAppBloodhound.fetch()

    }

    public Application createApp(String appName) throws IOException
    {
        AppBloodhound bh = new DefaultAppBloodhound();
        final ApplicationDescriptor descriptor = bh.fetch(appName);
        if (descriptor.isPrivileged())
        {
            final PriviledgedMuleApplication delegate = new PriviledgedMuleApplication(descriptor);
            delegate.setDeploymentService(deploymentService);
            delegate.setCoreExtensions(coreExtensions);
View Full Code Here

Examples of org.nutz.dao.Dao.fetch()

   
    //初始化Enc
    //--------------------------------------------------------------
   
    //获取md5key
    SystemConfig md5key = dao.fetch(SystemConfig.class, "enc.md5key");
    if (md5key == null) {
      md5key = new SystemConfig();
      md5key.setName("enc.md5key");
      md5key.setData(R.sg(16).next());
    }
View Full Code Here

Examples of org.nutz.dao.impl.ext.LazyNutDao.fetch()

   
    @Test
    public void test_lazy_toJson() {
      LazyNutDao dao = new LazyNutDao(ioc.get(DataSource.class));
      dao.setCycle(false);
      Base base = dao.fetch(Base.class);
      System.out.println("================"+Json.toJson(base));
    }
}
View Full Code Here

Examples of org.nutz.ioc.IocContext.fetch()

    // 创建对象创建时
    IocMaking ing = new IocMaking(this, mirrors, cntx, maker, vpms, name);

    // 从上下文缓存中获取对象代理
    ObjectProxy op = cntx.fetch(name);

    // 如果未发现对象
    if (null == op) {
      // 线程同步
      synchronized (this) {
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.