org.objectweb.jonas.jtests.util
Class Env

java.lang.Object
  |
  +--org.objectweb.jonas.jtests.util.Env

public class Env
extends java.lang.Object

Utility class about the environment.

Author:
Helene Joanin

Field Summary
static int DB_ORACLE
           
static int DB_POSGRESQL
           
static int DB_UNKNOWN
           
 
Constructor Summary
Env()
           
 
Method Summary
static int getDatabaseType(java.sql.Connection c)
          Get the type of a Database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DB_UNKNOWN

public static final int DB_UNKNOWN

DB_ORACLE

public static final int DB_ORACLE

DB_POSGRESQL

public static final int DB_POSGRESQL
Constructor Detail

Env

public Env()
Method Detail

getDatabaseType

public static int getDatabaseType(java.sql.Connection c)
                           throws java.sql.SQLException
Get the type of a Database
Parameters:
connection - to the databse
Returns:
the type DB_ORACLE, DB_POSGRESQL or DB_UNKNOWN if unknown