public class DbModelPostgresqlFtp extends DbModelPostgresql
DbModelPostgresql.DBType, DbModelPostgresql.DbTypeResolverPostgreSQL
DbModelAbstract.DbTypeResolver
useIsValid
dbTypeResolver, MAX_BINARY, MAX_KEY_VARCHAR, MAX_LONGVARCHAR, MAX_VARCHAR
Constructor and Description |
---|
DbModelPostgresqlFtp()
Create the object and initialize if necessary the driver
|
Modifier and Type | Method and Description |
---|---|
void |
createTables(DbSession session)
Create all necessary tables into the database
|
boolean |
needUpgradeDb(DbSession session,
String version,
boolean tryFix)
Check if Database is ok from version
|
long |
nextSequence(DbSession dbSession) |
void |
resetSequence(DbSession session,
long newvalue)
Reset the sequence (example)
|
boolean |
upgradeDb(DbSession session,
String version)
Upgrade Database from version
|
getDbType, limitRequest, validConnectionString
closeInternalConnection, currentNumberOfPooledConnections, getDbConnection, getDbTypeResolver, releaseResources, validConnection, validConnectionSelect
public DbModelPostgresqlFtp() throws WaarpDatabaseNoConnectionException
public final void createTables(DbSession session) throws WaarpDatabaseNoConnectionException
DbModel
session
- SQL sessionWaarpDatabaseNoConnectionException
public final void resetSequence(DbSession session, long newvalue)
DbModel
resetSequence
in interface DbModel
resetSequence
in class DbModelPostgresql
session
- SQL sessionpublic final long nextSequence(DbSession dbSession)
nextSequence
in interface DbModel
nextSequence
in class DbModelPostgresql
public final boolean upgradeDb(DbSession session, String version)
DbModel
Copyright © 2009–2022 Waarp. All rights reserved.