Examples of baseCreateDataSourceVO()


Examples of com.serotonin.m2m2.module.DataSourceDefinition.baseCreateDataSourceVO()

    public void createTestSource(){
    VirtualDataSourceVO ds = new VirtualDataSourceVO();
    DataSourceDao dsDao = new DataSourceDao();
   
    DataSourceDefinition def = ModuleRegistry.getDataSourceDefinition("VIRTUAL");
        ds = (VirtualDataSourceVO) def.baseCreateDataSourceVO();
        ds.setId(Common.NEW_ID);
        ds.setXid(dsDao.generateUniqueXid());
    ds.setName("Test Virtual");
    ds.setEnabled(true);
    ds.setUpdatePeriods(5);
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.