当前位置: 首页>>代码示例>>Java>>正文


Java SQLiteConfig.toProperties方法代码示例

本文整理汇总了Java中org.sqlite.SQLiteConfig.toProperties方法的典型用法代码示例。如果您正苦于以下问题:Java SQLiteConfig.toProperties方法的具体用法?Java SQLiteConfig.toProperties怎么用?Java SQLiteConfig.toProperties使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.sqlite.SQLiteConfig的用法示例。


在下文中一共展示了SQLiteConfig.toProperties方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SegmentDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public SegmentDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractSegmentDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:SegmentDAO.java

示例2: CloudDCDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public CloudDCDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractCloudDCDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:CloudDCDAO.java

示例3: TunnelDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public TunnelDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractTunnelDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:TunnelDAO.java

示例4: DARouterDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public DARouterDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractDARouterDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:DARouterDAO.java

示例5: DC2DCCommunicationDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public DC2DCCommunicationDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractDC2DCCommunicationDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:DC2DCCommunicationDAO.java

示例6: PrefixDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public PrefixDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractPrefixDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:PrefixDAO.java

示例7: ISPDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public ISPDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractISPDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:ISPDAO.java

示例8: TimeScheduleParametersDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public TimeScheduleParametersDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractTimeScheduleParametersDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:TimeScheduleParametersDAO.java

示例9: SystemControlParametersDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public SystemControlParametersDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractSystemControlParametersDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:SystemControlParametersDAO.java

示例10: CostFunctionDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public CostFunctionDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractCostFunctionDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:CostFunctionDAO.java

示例11: BGRouterDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public BGRouterDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractBGRouterDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:BGRouterDAO.java

示例12: LinkDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public LinkDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractLinkDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:LinkDAO.java

示例13: ASDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public ASDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractASDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:ASDAO.java

示例14: SDNControllerDAO

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
/**
 * The constructor.
 */
public SDNControllerDAO() {
	Properties connectionProperties = new Properties();
	SQLiteConfig config = new SQLiteConfig();
	config.enforceForeignKeys(true);
	connectionProperties = config.toProperties(); 
	DBI dbi = new DBI(DbConstants.DBI_URL, connectionProperties);
	dao = dbi.onDemand(AbstractSDNControllerDAO.class);
}
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:SDNControllerDAO.java

示例15: open

import org.sqlite.SQLiteConfig; //导入方法依赖的package包/类
public boolean open( String dbPath ) throws Exception {
    this.mDbPath = dbPath;

    boolean dbExists = false;
    if (dbPath != null) {
        File dbFile = new File(dbPath);
        if (dbFile.exists()) {
            if (mPrintInfos)
                Logger.INSTANCE.insertInfo(null, "Database exists");
            dbExists = true;
        }
    } else {
        dbPath = "file:inmemory?mode=memory";
        dbExists = true;
    }
    // enabling dynamic extension loading
    // absolutely required by SpatiaLite
    SQLiteConfig config = new SQLiteConfig();
    config.enableLoadExtension(true);
    Properties properties = config.toProperties();
    if (user != null && password != null) {
        properties.setProperty("user", user);
        properties.setProperty("password", password);
    }
    jdbcConn = DriverManager.getConnection("jdbc:sqlite:" + dbPath, properties);
    mConn = new HMConnection(jdbcConn);
    if (mPrintInfos) {
        String[] dbInfo = getDbInfo();
        Logger.INSTANCE.insertInfo(null, "SQLite Version: " + dbInfo[0]);
    }
    return dbExists;
}
 
开发者ID:TheHortonMachine,项目名称:hortonmachine,代码行数:33,代码来源:SqliteDb.java


注:本文中的org.sqlite.SQLiteConfig.toProperties方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。