本文整理了Java中com.healthmarketscience.jackcess.Database.flush()
方法的一些代码示例,展示了Database.flush()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Database.flush()
方法的具体详情如下:
包路径:com.healthmarketscience.jackcess.Database
类名称:Database
方法名:flush
[英]Flushes any current changes to the database file (and any linked databases) to disk.
[中]将对数据库文件(以及所有链接数据库)的任何当前更改刷新到磁盘。
代码示例来源:origin: com.healthmarketscience.jackcess/jackcess
@Override
public void flush() throws IOException {
if(_linkedDbs != null) {
for(Database linkedDb : _linkedDbs.values()) {
linkedDb.flush();
}
}
_pageChannel.flush();
}
代码示例来源:origin: net.sf.ucanaccess/ucanaccess
void shutdown(Session _session) throws Exception {
DBReferenceSingleton.getInstance().remove(this.dbFile.getAbsolutePath());
if (this.immediatelyReleaseResources) {
for (OnReloadReferenceListener listener : onReloadListeners) {
listener.onReload();
}
}
this.memoryTimer.timer.cancel();
this.dbIO.flush();
this.dbIO.close();
this.closeHSQLDB(_session);
}
代码示例来源:origin: net.sf.ucanaccess/ucanaccess
public void reloadDbIO() throws IOException {
this.dbIO.flush();
this.dbIO.close();
for (OnReloadReferenceListener listener : onReloadListeners) {
listener.onReload();
}
this.dbIO = open(dbFile, this.pwd);
}
代码示例来源:origin: net.sf.ucanaccess/ucanaccess
this.ref.getDbIO().flush();
this.unloadDB();
} catch (IOException e) {
this.ref.getDbIO().flush();
代码示例来源:origin: net.sf.ucanaccess/ucanaccess
Connection checkLastModified(Connection conn, Session session) throws Exception {
// I'm detecting if another process(and not another thread) is writing
for (int i = 0; i < Thread.activeCount(); i++) {
if (lastModified >= filesUpdateTime()) {
return conn;
} else {
Thread.sleep(10);
}
}
if (preventReloading && !checkInside()) {
return conn;
}
this.updateLastModified();
this.closeHSQLDB(session);
System.gc();
this.dbIO.flush();
this.dbIO.close();
this.dbIO = open(this.dbFile, this.pwd);
this.id = id();
this.firstConnection = true;
LoadJet lj = new LoadJet(getHSQLDBConnection(session), dbIO);
lj.setSkipIndexes(this.skipIndexes);
lj.setSysSchema(this.sysSchema);
lj.loadDB();
return getHSQLDBConnection(session);
}
代码示例来源:origin: net.sf.ucanaccess/ucanaccess
t.updateRow(row);
conn.getDbIO().flush();
内容来源于网络,如有侵权,请联系作者删除!