Examples of dataSource()


Examples of ariba.ui.table.AWTDisplayGroup.dataSource()

        UIMeta.UIContext ctx = MetaContext.currentContext(requestContext.getCurrentComponent());
        AWTDisplayGroup displayGroup = (AWTDisplayGroup)ctx.values().get("displayGroup");
        Assert.that(displayGroup != null, "MetaSearch used without displayGroup in Meta Context");
        String className = (String)ctx.values().get(ObjectMeta.KeyClass);
        Class cls = (className != null) ? ClassUtil.classForName(className) : null;
        ObjectContextDataSource dataSource = (ObjectContextDataSource)displayGroup.dataSource();
        if (dataSource == null) {
            dataSource = new ObjectContextDataSource(cls);
            displayGroup.setDataSource(dataSource);
        }
        else {
View Full Code Here

Examples of ariba.ui.table.AWTDisplayGroup.dataSource()

    public static void updateQuerySpecification (AWRequestContext requestContext, QuerySpecification spec)
    {
        AWTDisplayGroup displayGroup = setupDisplayGroup(requestContext);

        ((ObjectContextDataSource)displayGroup.dataSource()).setQuerySpecification(spec);
        displayGroup.fetch();
    }
}
View Full Code Here

Examples of be.jacobsvanroy.springsqlunit.annotation.SqlSetUp.dataSource()

        List<Annotation> annotations = getAnnotation(declaredAnnotations, SqlSetUp.class);
        for (Annotation annotation : annotations) {
            SqlSetUp sqlBeforeAnnotation = (SqlSetUp) annotation;
            sqlRunner.runSqlFiles(
                    sqlBeforeAnnotation.files(),
                    getDataSource(appContext, sqlBeforeAnnotation.dataSource()));
        }
    }

    private List<Annotation> getAnnotation(Annotation[] declaredAnnotations, Class<? extends Annotation> annotationType) {
        List<Annotation> result = new ArrayList<Annotation>();
View Full Code Here

Examples of cc.concurrent.mango.DB.dataSource()

        }

        // 数据源与表信息
        DB dbAnno = method.getDeclaringClass().getAnnotation(DB.class);
        if (dbAnno != null) {
            dataSourceName = dbAnno.dataSource();
            tableName = dbAnno.table();
        }

        // 类型上下文
        typeContext = buildTypeContext(method);
View Full Code Here

Examples of cc.concurrent.mango.DB.dataSource()

    private void buildDbDescriptor(Method method) {
        String dataSourceName = "";
        String table = "";
        DB dbAnno = method.getDeclaringClass().getAnnotation(DB.class);
        if (dbAnno != null) {
            dataSourceName = dbAnno.dataSource();
            table = dbAnno.table();
        }
        dbDescriptor = new DbDescriptor(dataSourceName, table);
    }
View Full Code Here

Examples of cc.concurrent.mango.DB.dataSource()

        }

        // 数据源与表信息
        DB dbAnno = method.getDeclaringClass().getAnnotation(DB.class);
        if (dbAnno != null) {
            dataSourceName = dbAnno.dataSource();
            tableName = dbAnno.table();
        }

        // 类型上下文
        typeContext = buildTypeContext(method);
View Full Code Here

Examples of cc.concurrent.mango.DB.dataSource()

        }

        // 数据源与表信息
        DB dbAnno = method.getDeclaringClass().getAnnotation(DB.class);
        if (dbAnno != null) {
            dataSourceName = dbAnno.dataSource();
            tableName = dbAnno.table();
        }

        // 类型上下文
        typeContext = buildTypeContext(method);
View Full Code Here

Examples of cc.concurrent.mango.DB.dataSource()

        }

        // 数据源与表信息
        DB dbAnno = method.getDeclaringClass().getAnnotation(DB.class);
        if (dbAnno != null) {
            dataSourceName = dbAnno.dataSource();
            tableName = dbAnno.table();
        }

        // 类型上下文
        typeContext = buildTypeContext(method);
View Full Code Here

Examples of com.foreach.across.test.AcrossTestContextConfiguration.dataSource()

  private DataSource uniqueDataSource() {
    AcrossTestContextConfiguration factory = new AcrossTestContextConfiguration();
    factory.setEnvironment( environment );

    return factory.dataSource();
  }

  protected class ExecutorBatch implements Callable<Integer>
  {
    private final int startDelay;
View Full Code Here

Examples of org.infinispan.configuration.cache.FileCacheStoreConfigurationBuilder.dataSource()

            final AbstractJdbcCacheStoreConfigurationBuilder<?, ?> builder = this.buildJdbcStore(loadersBuilder, context, store);

            final String datasource = BaseJDBCStoreResource.DATA_SOURCE.resolveModelAttribute(context, store).asString();

            dependencies.add(new Dependency<Object>(ServiceName.JBOSS.append("data-source", datasource)));
            builder.dataSource().jndiUrl(datasource);
            return builder;
        } else if (storeKey.equals(ModelKeys.REMOTE_STORE)) {
            final RemoteCacheStoreConfigurationBuilder builder = loadersBuilder.addStore(RemoteCacheStoreConfigurationBuilder.class);
            for (ModelNode server : store.require(ModelKeys.REMOTE_SERVERS).asList()) {
                String outboundSocketBinding = server.get(ModelKeys.OUTBOUND_SOCKET_BINDING).asString();
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.