本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}