本文整理汇总了Java中org.hsqldb.Database.getPath方法的典型用法代码示例。如果您正苦于以下问题:Java Database.getPath方法的具体用法?Java Database.getPath怎么用?Java Database.getPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.Database
的用法示例。
在下文中一共展示了Database.getPath方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LobStoreRAFile
import org.hsqldb.Database; //导入方法依赖的package包/类
public LobStoreRAFile(Database database, int lobBlockSize) {
this.database = database;
this.lobBlockSize = lobBlockSize;
this.fileName = database.getPath() + ".lobs";
try {
boolean exists =
database.logger.getFileAccess().isStreamElement(fileName);
if (exists) {
openFile();
}
} catch (Throwable t) {
throw Error.error(ErrorCode.DATA_FILE_ERROR, t);
}
}
示例2: LobStoreRAFile
import org.hsqldb.Database; //导入方法依赖的package包/类
public LobStoreRAFile(Database database, int lobBlockSize) {
this.lobBlockSize = lobBlockSize;
this.database = database;
try {
String name = database.getPath() + ".lobs";
boolean exists = database.getFileAccess().isStreamElement(name);
if (exists) {
openFile();
}
} catch (Throwable t) {
throw Error.error(ErrorCode.DATA_FILE_ERROR, t);
}
}
示例3: LobStoreRAFile
import org.hsqldb.Database; //导入方法依赖的package包/类
public LobStoreRAFile(Database database, int lobBlockSize) {
this.lobBlockSize = lobBlockSize;
this.database = database;
try {
String name = database.getPath() + ".lobs";
boolean exists =
database.logger.getFileAccess().isStreamElement(name);
if (exists) {
openFile();
}
} catch (Throwable t) {
throw Error.error(ErrorCode.DATA_FILE_ERROR, t);
}
}
示例4: LobStoreInJar
import org.hsqldb.Database; //导入方法依赖的package包/类
public LobStoreInJar(Database database, int lobBlockSize) {
this.lobBlockSize = lobBlockSize;
this.database = database;
try {
fileName = database.getPath() + ".lobs";
} catch (Throwable t) {
throw Error.error(ErrorCode.DATA_FILE_ERROR, t);
}
}
示例5: Log
import org.hsqldb.Database; //导入方法依赖的package包/类
Log(Database db) {
database = db;
fa = db.logger.getFileAccess();
baseFileName = db.getPath();
properties = db.getProperties();
}
示例6: Log
import org.hsqldb.Database; //导入方法依赖的package包/类
Log(Database db) {
database = db;
fa = db.getFileAccess();
fileName = db.getPath();
properties = db.getProperties();
}
示例7: Log
import org.hsqldb.Database; //导入方法依赖的package包/类
Log(Database db) {
database = db;
fa = db.logger.getFileAccess();
fileName = db.getPath();
properties = db.getProperties();
}
示例8: Log
import org.hsqldb.Database; //导入方法依赖的package包/类
Log(Database db) throws HsqlException {
database = db;
fa = db.getFileAccess();
fileName = db.getPath();
properties = db.getProperties();
}
示例9: HsqlDatabaseProperties
import org.hsqldb.Database; //导入方法依赖的package包/类
public HsqlDatabaseProperties(Database db) {
super(dbMeta, db.getPath(), db.logger.getFileAccess(),
db.isFilesInJar());
database = db;
setNewDatabaseProperties();
}
示例10: openLog
import org.hsqldb.Database; //导入方法依赖的package包/类
/**
* Opens the specified Database object's database files and starts up
* the logging process. <p>
*
* If the specified Database object is a new database, its database
* files are first created.
*
* @param db the Database
* @throws HsqlException if there is a problem, such as the case when
* the specified files are in use by another process
*/
public void openLog(Database db) {
needsCheckpoint = false;
String path = db.getPath();
int loglevel = db.getProperties().getIntegerProperty(
HsqlDatabaseProperties.hsqldb_applog, 0);
this.database = db;
if (loglevel != SimpleLog.LOG_NONE) {
appLog = new SimpleLog(path + ".app.log", loglevel,
!db.isFilesReadOnly());
}
appLog.sendLine(SimpleLog.LOG_ERROR, "Database (re)opened");
logStatements = false;
boolean useLock = db.getProperties().isPropertyTrue(
HsqlDatabaseProperties.hsqldb_lock_file);
if (useLock && !db.isFilesReadOnly()) {
acquireLock(path);
}
log = new Log(db);
log.open();
logsStatements = logStatements = !db.isFilesReadOnly();
}
示例11: openLog
import org.hsqldb.Database; //导入方法依赖的package包/类
/**
* Opens the specified Database object's database files and starts up
* the logging process. <p>
*
* If the specified Database object is a new database, its database
* files are first created.
*
* @param db the Database
* @throws HsqlException if there is a problem, such as the case when
* the specified files are in use by another process
*/
public void openLog(Database db) throws HsqlException {
needsCheckpoint = false;
String path = db.getPath();
int loglevel = db.getProperties().getIntegerProperty(
HsqlDatabaseProperties.hsqldb_applog, 0);
if (loglevel != SimpleLog.LOG_NONE) {
appLog = new SimpleLog(path + ".app.log", loglevel,
!db.isFilesReadOnly());
}
appLog.sendLine(SimpleLog.LOG_ERROR, "Database (re)opened");
logStatements = false;
boolean useLock = db.getProperties().isPropertyTrue(
HsqlDatabaseProperties.hsqldb_lock_file);
if (useLock && !db.isFilesReadOnly()) {
acquireLock(path);
}
log = new Log(db);
log.open();
logStatements = !db.isFilesReadOnly();
}