public class DBMData extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LOCK_CHECK_INTERVAL |
| Constructor and Description |
|---|
DBMData(ConnectionInfo ci) |
| Modifier and Type | Method and Description |
|---|---|
DBMLock |
acquireLock(String id,
long millis) |
void |
drop() |
DBVersion |
getCurrentVersion() |
List<DBVersion> |
getDBVersions() |
String |
getPreviousVersion() |
void |
init() |
boolean |
isDBMSchemaCurrent() |
void |
logStatement(SQLStatement sqlState,
boolean success,
int rows,
String err) |
void |
releaseLock(DBMLock lock) |
void |
releaseLock(String ID) |
DBMLock |
selectLock(String id) |
void |
setVersion(String version,
String action,
String path,
boolean rollback,
String checksum,
String notes,
String rollbackSql) |
public DBMData(ConnectionInfo ci) throws SQLException
SQLExceptionpublic void drop()
throws SQLException
SQLExceptionpublic void init()
throws SQLException,
IOException
SQLExceptionIOExceptionpublic boolean isDBMSchemaCurrent()
throws SQLException
SQLExceptionpublic void logStatement(SQLStatement sqlState, boolean success, int rows, String err) throws SQLException
SQLExceptionpublic void setVersion(String version, String action, String path, boolean rollback, String checksum, String notes, String rollbackSql) throws SQLException
SQLExceptionpublic DBVersion getCurrentVersion() throws SQLException
SQLExceptionpublic String getPreviousVersion() throws SQLException
SQLExceptionpublic List<DBVersion> getDBVersions() throws SQLException
SQLExceptionpublic DBMLock selectLock(String id) throws SQLException
SQLExceptionpublic DBMLock acquireLock(String id, long millis) throws InterruptedException, SQLException
InterruptedExceptionSQLExceptionpublic void releaseLock(DBMLock lock) throws SQLException
SQLExceptionpublic void releaseLock(String ID) throws SQLException
SQLExceptionCopyright © 2015. All rights reserved.