Package org.apache.tuscany.das.rdb.config.wrapper

Examples of org.apache.tuscany.das.rdb.config.wrapper.MappingWrapper


        descriptor.add(desc3);

    }

    public ReadCustomersWithShapeCommand() {
        super(sqlString, new MappingWrapper(), descriptor);
    }
View Full Code Here


        DESCRIPTOR.add(desc2);
        DESCRIPTOR.add(desc3);
    }

    public SimpleReadCustomersWithShapeCommand() {
        super(SQL_STRING, new MappingWrapper(CONFIG), DESCRIPTOR);
    }
View Full Code Here

        t.setTableName("CUSTOMER");
        CONFIG.getTable().add(t);
    }

    public ReadCustomersCommand() {
        super(SQL_STRING, new MappingWrapper(CONFIG), null);
    }
View Full Code Here

        t.setTableName("CUSTOMER");
        CONFIG.getTable().add(t);
    }

    public ReadCustomersByLastnameCommand() {
        super(SQL_STRING, new MappingWrapper(CONFIG), null);
    }
View Full Code Here

            }
           
        }
       
        if(table != null && pkColumns != null) {
            MappingWrapper configWrapper = new MappingWrapper(configHelper.getConfig());
            List<String> pkColsList = DataAccessEngine.getKeys(pkColumns);
            for(int i=0; i<pkColsList.size(); i++) {
              configWrapper.addPrimaryKey(table+"."+pkColsList.get(i), pkColsList.get(i));
            }                 
        }
       
        DAS das = DAS.FACTORY.createDAS(configHelper.getConfig());
       
View Full Code Here

        HelperContext context = HelperProvider.getDefaultContext();
        CustomerFactory.INSTANCE.register(context);    
    }

    public ReadCustomersStaticTypesCommand() {
        super(SQL_STRING, new MappingWrapper(CONFIG), null);
    }
View Full Code Here

    public DASImpl(Config inConfig) {
        Config cfg = inConfig;
        if (cfg == null) {
            cfg = ConfigFactory.INSTANCE.createConfig();
        }
        this.configWrapper = new MappingWrapper(cfg);

        Iterator i = configWrapper.getConfig().getCommand().iterator();
        while (i.hasNext()) {
            org.apache.tuscany.das.rdb.config.Command commandConfig =
                (org.apache.tuscany.das.rdb.config.Command) i.next();
View Full Code Here

    public Command createCommand(String sql) {
        return baseCreateCommand(sql, this.configWrapper);
    }

    public Command createCommand(String sql, Config config) {
        return baseCreateCommand(sql, new MappingWrapper(config));
    }
View Full Code Here

    /**
     * Default constructor
     */
    public ConfigHelper() {
        config = factory.createConfig();
        configWrapper = new MappingWrapper(config);
    }
View Full Code Here

     * This is usefull to extend a config file
     * @param configStream The configuration stream
     */
    public ConfigHelper(InputStream configStream) {
        this.config = ConfigUtil.loadConfig(configStream);
        configWrapper = new MappingWrapper(config);
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.das.rdb.config.wrapper.MappingWrapper

Copyright © 2018 www.massapicom. 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.