public class SMYLDOracleConnection extends DBConnection
| Modifier and Type | Field and Description |
|---|---|
static int |
DRIVER_OCI |
static int |
DRIVER_SERVER |
static int |
DRIVER_THIN |
static String |
TXT_DRIVER_DEFAULT |
static String |
TXT_DRIVER_OCI |
static String |
TXT_DRIVER_SERVER |
static String |
TXT_DRIVER_THIN |
connected, connectionListeners, DB_RECONNECT_SLEEP_TIME, dbConnection, internalConnectionListeners, reconnecting, settingsNEW_LINE, OS_NEW_LINE| Constructor and Description |
|---|
SMYLDOracleConnection() |
SMYLDOracleConnection(Connection DBConnection) |
SMYLDOracleConnection(DBSettings newSettings) |
SMYLDOracleConnection(DBSettings newSettings,
boolean withPooling) |
SMYLDOracleConnection(int driver,
DBSettings newSettings) |
SMYLDOracleConnection(int driver,
String newUserName,
String newUserPass,
String newDBName,
String newPort,
String newHost) |
SMYLDOracleConnection(String path) |
SMYLDOracleConnection(String newUserName,
String newUserPass,
String newDBName,
String newPort,
String newHost) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearClientID() |
Object |
clone() |
Connection |
createConnection() |
Connection |
getConnection()
This methode will return the data base connection according to the
required distination and will be updated from time to time, to fullfill
the required environment
|
String |
getDB_URL()
Read the parameters in the properties file and create the db url string
to create the db connection
|
static int |
getDriverType(DBSettings oraDBSett) |
String |
getInternalServerDBURL() |
String |
getOCIDBTNSURL() |
String |
getOCIDBURL() |
String |
getThinDBURL() |
void |
releaseConnections() |
void |
setClientID(String connectionClientID) |
static void |
setClientIDValue(Connection conn,
String value) |
void |
setExplicitCachingEnabled(boolean enable) |
void |
setImplicitCachingEnabled(boolean enable) |
addDBConnectionListener, addDBConnectionListener, addInternalDBConnectionListener, addInternalDBConnectionListener, detectConnectionError, getConnectionPath, getSettings, isConnected, isReconnecting, loadDBParams, reconnect, run, setConnectionPath, setSettingsdebug, getLenName, insertInstanceValue, printInstanceValues, toStringpublic static final String TXT_DRIVER_THIN
public static final String TXT_DRIVER_OCI
public static final String TXT_DRIVER_SERVER
public static final String TXT_DRIVER_DEFAULT
public static final int DRIVER_THIN
public static final int DRIVER_OCI
public static final int DRIVER_SERVER
public SMYLDOracleConnection(Connection DBConnection)
public SMYLDOracleConnection(String newUserName, String newUserPass, String newDBName, String newPort, String newHost) throws Exception
Exceptionpublic SMYLDOracleConnection(int driver,
String newUserName,
String newUserPass,
String newDBName,
String newPort,
String newHost)
throws Exception
Exceptionpublic SMYLDOracleConnection(int driver,
DBSettings newSettings)
throws Exception
Exceptionpublic SMYLDOracleConnection(DBSettings newSettings, boolean withPooling) throws Exception
Exceptionpublic SMYLDOracleConnection(DBSettings newSettings) throws Exception
Exceptionpublic static int getDriverType(DBSettings oraDBSett)
public void setClientID(String connectionClientID) throws SQLException
SQLExceptionpublic void clearClientID()
throws SQLException
SQLExceptionpublic static void setClientIDValue(Connection conn, String value) throws SQLException
SQLExceptionpublic void setImplicitCachingEnabled(boolean enable)
throws SQLException
SQLExceptionpublic void setExplicitCachingEnabled(boolean enable)
throws SQLException
SQLExceptionpublic void releaseConnections()
throws SQLException
releaseConnections in class DBConnectionSQLExceptionpublic Connection getConnection()
getConnection in class DBConnectionSQLException - if the connection to the database failedpublic Connection createConnection() throws SQLException
createConnection in class DBConnectionSQLExceptionpublic Object clone()
clone in class DBConnectionpublic String getDB_URL()
public String getInternalServerDBURL()
public String getOCIDBURL()
public String getOCIDBTNSURL()
public String getThinDBURL()
Copyright © 2019 SMYLD. All rights reserved.