com.ados.hestia.sdk.session
Class SessionProcessorPredefined

java.lang.Object
  extended by com.ados.hestia.sdk.session.SessionProcessorPredefined

public class SessionProcessorPredefined
extends Object

Contains set of helper function to return SessionProcessors over wellknown DB. TODO Name of class is not good. Rename.

Version:
$Revision: 1199 $Date: 2005/10/04 21:51:19 $

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

SessionProcessorPredefined

public SessionProcessorPredefined()
Method Detail

getHSQLProcessor

public static SessionProcessor getHSQLProcessor(File folder)
Allocate default DB connection over local instance of HSQL.

Parameters:
folder - optional parameter specify folder where DB should be allocated;
Returns:
allocated default DB connection over local instance of HSQL.

getOracleProcessor

public static SessionProcessor getOracleProcessor(String host,
                                                  int port,
                                                  String sid,
                                                  String user,
                                                  String password)
Allocate connection over Oracle DB. Note! Oracle driver must be present at classpath.

Parameters:
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.
Returns:
connection over Oracle DB. Note! Oracle driver must be present at classpath.

getMySQLProcessor

public static SessionProcessor getMySQLProcessor(String host,
                                                 int port,
                                                 String dbname,
                                                 String user,
                                                 String password)
Allocate connection over MYSQL DB. Note! MySQL drivers must be present at classpath.

Parameters:
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.
Returns:
connection over MYSQL DB.


Copyright © 2005-2006 ADOS Co.,Ltd.. All Rights Reserved.