|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.connection.ConnectionManager
public class ConnectionManager
Basic class for establish connection with OBEROn database or RMI/HTTP servers
Field Summary | |
---|---|
static java.lang.String |
ADMUSR
Administrator user name |
static java.lang.String |
appName
Application name |
static java.lang.String |
build
OBEROn client current build number |
static java.lang.String |
CONFIG_FILE
Config File Name |
static java.lang.String |
copyright
OBEROn copyright text |
static java.lang.String |
credits
OBEROn credits text |
static java.lang.String |
PROP_APPLICATION
"application" config property |
static java.lang.String |
PROP_CONNECTIONS
"connections" config property |
static java.lang.String |
PROP_DEBUG
"debug" config property |
static java.lang.String |
PROP_JSON
"json" config property |
static java.lang.String |
PROP_MAILSERVER
"mailserver" config property |
static java.lang.String |
PROP_OBPWD
"pwd" config property |
static java.lang.String |
PROP_OBUSR
"uid" config property |
static java.lang.String |
PROP_SERVERURL
"serverURL" config property |
static java.lang.String |
PROP_SHOWSQL
"showSQL" config property |
static java.lang.String |
PROP_SVNURL
"svn" config property |
static java.lang.String |
PROP_TMPDIR
"tmpdir" config property |
static java.lang.String |
version
OBEROn current version |
Constructor Summary | |
---|---|
ConnectionManager()
|
Method Summary | |
---|---|
static void |
closeConnections(Application app)
Close all OBEROn connections |
static OBConnection |
getConnection(Framework framework)
Get a connection from the connection POOL |
static OBConnection |
getConnection(Framework framework,
Application app)
Get the OBEROn connection from the connection POOL |
static java.lang.String |
getDBBuild()
Get the OBEROn database current build number |
static java.lang.String |
getUploadDir()
Get the server-side upload directory |
static boolean |
isConnected()
Check if the application client is connected to database (directly or indirectly (RMI/HTTP)) |
static boolean |
isDBConnection()
Check if OBEROn connection is direct to DB |
static boolean |
isHTTPConnection()
Check if OBEROn connection is through an HTTP server |
static boolean |
isRMIConnection()
Check if OBEROn connection is through an RMI server |
static void |
loadDatabaseProperties(Configuration conf)
Load the Database configuration Properties from the Configuration |
static void |
loadInternalProperties(Configuration conf,
Application app)
Load Application Properties from the Configuration |
static Configuration |
loadProperties()
Load Application Properties from the resource Bundle |
static void |
openConnections(Application app)
Open direct connections with database or RMI/HTTP connections (create a connection POOL) Get the configuration parameters from the input application or from default .ini file |
static void |
openConnections(Configuration conf,
Application app)
Open direct connections with database or RMI/HTTP connections (create a connection POOL) |
static void |
releaseConnection(Framework framework)
Release the framework connection after the use |
static void |
releaseConnection(OBConnection conn,
Framework framework)
Release the OBEROn connection after the use |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String appName
public static final java.lang.String version
public static final java.lang.String build
public static final java.lang.String copyright
public static final java.lang.String credits
public static final java.lang.String CONFIG_FILE
public static final java.lang.String ADMUSR
public static final java.lang.String PROP_CONNECTIONS
public static final java.lang.String PROP_DEBUG
public static final java.lang.String PROP_SHOWSQL
public static final java.lang.String PROP_APPLICATION
public static final java.lang.String PROP_MAILSERVER
public static final java.lang.String PROP_SERVERURL
public static final java.lang.String PROP_TMPDIR
public static final java.lang.String PROP_SVNURL
public static final java.lang.String PROP_OBUSR
public static final java.lang.String PROP_OBPWD
public static final java.lang.String PROP_JSON
Constructor Detail |
---|
public ConnectionManager()
Method Detail |
---|
public static void openConnections(Application app) throws java.lang.Exception
app
- the application (can be null)
java.lang.Exception
public static void openConnections(Configuration conf, Application app) throws java.lang.Exception
conf
- configuration parametersapp
- the application
java.lang.Exception
public static boolean isDBConnection()
public static boolean isRMIConnection()
public static boolean isHTTPConnection()
public static OBConnection getConnection(Framework framework)
public static OBConnection getConnection(Framework framework, Application app)
public static void releaseConnection(Framework framework)
public static void releaseConnection(OBConnection conn, Framework framework)
public static void closeConnections(Application app)
app
- the application (can be null)public static boolean isConnected()
public static Configuration loadProperties() throws java.lang.Exception
java.lang.Exception
public static void loadDatabaseProperties(Configuration conf)
public static void loadInternalProperties(Configuration conf, Application app)
public static java.lang.String getDBBuild()
public static java.lang.String getUploadDir()
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |