
public abstract class DbModelOracle extends DbModelAbstract
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DbModelOracle.DBType |
protected static class |
DbModelOracle.DbTypeResolverOracle |
DbModelAbstract.DbTypeResolver| Modifier and Type | Field and Description |
|---|---|
protected oracle.jdbc.pool.OracleConnectionPoolDataSource |
oracleConnectionPoolDataSource |
protected DbConnectionPool |
pool |
dbTypeResolver, MAX_BINARY, MAX_KEY_VARCHAR, MAX_LONGVARCHAR, MAX_VARCHAR| Modifier | Constructor and Description |
|---|---|
protected |
DbModelOracle()
Create the object and initialize if necessary the driver
|
protected |
DbModelOracle(String dbserver,
String dbuser,
String dbpasswd)
Create the object and initialize if necessary the driver
|
protected |
DbModelOracle(String dbserver,
String dbuser,
String dbpasswd,
Timer timer,
long delay)
Create the object and initialize if necessary the driver
|
| Modifier and Type | Method and Description |
|---|---|
int |
currentNumberOfPooledConnections() |
Connection |
getDbConnection(String server,
String user,
String passwd) |
DbType |
getDbType() |
String |
limitRequest(String allfields,
String request,
int nb)
Add a limit on the request to get the "limit" first rows.
|
long |
nextSequence(DbSession dbSession) |
void |
releaseResources()
Release any internal resources if needed
|
void |
resetSequence(DbSession session,
long newvalue)
Reset the sequence (example)
|
protected String |
validConnectionString() |
closeInternalConnection, getDbTypeResolver, validConnection, validConnectionSelectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTables, needUpgradeDb, upgradeDbprotected oracle.jdbc.pool.OracleConnectionPoolDataSource oracleConnectionPoolDataSource
protected DbConnectionPool pool
protected DbModelOracle(String dbserver, String dbuser, String dbpasswd, Timer timer, long delay) throws WaarpDatabaseNoConnectionException
dbserver - dbuser - dbpasswd - timer - delay - WaarpDatabaseNoConnectionExceptionprotected DbModelOracle(String dbserver, String dbuser, String dbpasswd) throws WaarpDatabaseNoConnectionException
dbserver - dbuser - dbpasswd - WaarpDatabaseNoConnectionExceptionprotected DbModelOracle()
throws WaarpDatabaseNoConnectionException
public final DbType getDbType()
public final void releaseResources()
DbModelreleaseResources in interface DbModelreleaseResources in class DbModelAbstractpublic final int currentNumberOfPooledConnections()
currentNumberOfPooledConnections in interface DbModelcurrentNumberOfPooledConnections in class DbModelAbstractpublic final Connection getDbConnection(String server, String user, String passwd) throws SQLException
getDbConnection in interface DbModelgetDbConnection in class DbModelAbstractSQLExceptionpublic void resetSequence(DbSession session, long newvalue) throws WaarpDatabaseNoConnectionException
DbModelsession - SQL sessionWaarpDatabaseNoConnectionExceptionpublic long nextSequence(DbSession dbSession) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException, WaarpDatabaseNoDataException
WaarpDatabaseNoConnectionExceptionWaarpDatabaseSqlExceptionWaarpDatabaseNoDataExceptionprotected final String validConnectionString()
validConnectionString in class DbModelAbstractpublic final String limitRequest(String allfields, String request, int nb)
DbModel
On Oracle: select allfield from (request) where rownnum <= limit
On others: request LIMIT limit
allfields - string representing the equivalent to "*" in
"select
*" but more precisely as "field1,
field2" in "select field1, field2"Copyright © 2009–2022 Waarp. All rights reserved.