|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ados.hestia.sdk.session.SessionProcessorPredefined
public class SessionProcessorPredefined
Contains set of helper function to return SessionProcessors over wellknown DB. TODO Name of class is not good. Rename.
Constructor Summary | |
---|---|
SessionProcessorPredefined()
|
Method Summary | |
---|---|
static SessionProcessor |
getHSQLProcessor(File folder)
Allocate default DB connection over local instance of HSQL. |
static SessionProcessor |
getMySQLProcessor(String host,
int port,
String dbname,
String user,
String password)
Allocate connection over MYSQL DB. |
static SessionProcessor |
getOracleProcessor(String host,
int port,
String sid,
String user,
String password)
Allocate connection over Oracle DB. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionProcessorPredefined()
Method Detail |
---|
public static SessionProcessor getHSQLProcessor(File folder)
folder
- optional parameter specify folder where DB should be allocated;
public static SessionProcessor getOracleProcessor(String host, int port, String sid, String user, String password)
host
- host name of Oracle database.port
- port of Oracle. For example 3306.sid
- sid identifier at Oracle DB.user
- name of user to connect.password
- password to connect.
public static SessionProcessor getMySQLProcessor(String host, int port, String dbname, String user, String password)
host
- host name of MySQL database.port
- port of MySQL. For example 3306.dbname
- name of db at MySQL.user
- name of user to connect.password
- password to connect.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |