Package | Description |
---|---|
org.waarp.common.database |
Classes implementing Database access
|
org.waarp.common.database.data |
Classes implementing Database Data model
|
org.waarp.common.database.model |
Classes implementing Database Model (H2, Oracle, PostgreSQL, MySQL, MariaDB)
|
Modifier and Type | Method and Description |
---|---|
DbSession |
DbPreparedStatement.getDbSession() |
DbSession |
DbAdmin.getSession() |
Modifier and Type | Method and Description |
---|---|
static void |
DbAdmin.addConnection(UUID id,
DbSession session)
Add a Connection into the list
|
void |
DbAdmin.setSession(DbSession session) |
Constructor and Description |
---|
DbPreparedStatement(DbSession ls)
Create a DbPreparedStatement from DbSession object
|
DbPreparedStatement(DbSession ls,
String request)
Create a DbPreparedStatement from DbSession object and a request
|
DbPreparedStatement(DbSession ls,
String request,
int nbFetch)
Create a DbPreparedStatement from DbSession object and a request
|
DbRequest(DbSession ls)
Create a new request from the DbSession
|
Modifier and Type | Field and Description |
---|---|
protected DbSession |
AbstractDbData.dbSession
The DbSession to use
|
Modifier and Type | Method and Description |
---|---|
static DbPreparedStatement |
DbDataModel.getUpdatedPrepareStament(DbSession session) |
Constructor and Description |
---|
AbstractDbData(DbSession dbSession)
Abstract constructor to set the DbSession to use
|
AbstractDbDataWithCommit(DbSession dbSession)
Abstract constructor to set the DbSession to use
|
DbDataModel(DbSession dbSession,
String hostid) |
DbDataModel(DbSession dbSession,
String hostid,
long rg,
long wg,
long rs,
long ws,
long del) |
Modifier and Type | Method and Description |
---|---|
protected void |
DbModelAbstract.closeInternalConnection(DbSession dbSession)
Internal use for closing connection while validating it
|
void |
DbModel.createTables(DbSession session)
Create all necessary tables into the database
|
void |
DbModelOracle.createTables(DbSession session) |
void |
DbModelPostgresql.createTables(DbSession session) |
void |
DbModelMysql.createTables(DbSession session) |
void |
DbModelH2.createTables(DbSession session) |
void |
EmptyDbModel.createTables(DbSession session) |
void |
DbModelMariadb.createTables(DbSession session) |
boolean |
DbModel.needUpgradeDb(DbSession session,
String version,
boolean tryFix)
Check if Database is ok from version
|
boolean |
EmptyDbModel.needUpgradeDb(DbSession session,
String version,
boolean tryFix) |
long |
DbModel.nextSequence(DbSession dbSession) |
long |
DbModelOracle.nextSequence(DbSession dbSession) |
long |
DbModelPostgresql.nextSequence(DbSession dbSession) |
long |
DbModelMysql.nextSequence(DbSession dbSession) |
long |
DbModelH2.nextSequence(DbSession dbSession) |
long |
EmptyDbModel.nextSequence(DbSession dbSession) |
long |
DbModelMariadb.nextSequence(DbSession dbSession) |
void |
DbModel.resetSequence(DbSession session,
long newvalue)
Reset the sequence (example)
|
void |
DbModelOracle.resetSequence(DbSession session,
long newvalue) |
void |
DbModelPostgresql.resetSequence(DbSession session,
long newvalue) |
void |
DbModelMysql.resetSequence(DbSession session,
long newvalue) |
void |
DbModelH2.resetSequence(DbSession session,
long newvalue) |
void |
EmptyDbModel.resetSequence(DbSession session,
long newvalue) |
void |
DbModelMariadb.resetSequence(DbSession session,
long newvalue) |
boolean |
DbModel.upgradeDb(DbSession session,
String version)
Upgrade Database from version
|
boolean |
EmptyDbModel.upgradeDb(DbSession session,
String version) |
void |
DbModel.validConnection(DbSession dbSession)
Validate connection
|
void |
DbModelPostgresql.validConnection(DbSession dbSession) |
void |
DbModelAbstract.validConnection(DbSession dbSession) |
void |
EmptyDbModel.validConnection(DbSession dbSession) |
protected void |
DbModelAbstract.validConnectionSelect(DbSession dbSession) |
Copyright © 2009–2019 Waarp. All rights reserved.