Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.controller.backup.OctopusConstants Class Reference

List of all members.

Static Public Member Functions

String getOctopusType (String type)
String getOctopusDriver (String type)
String getUrlPrefix (String type)

Static Package Functions

 [static initializer]

Static Package Attributes

final int FROM_URL = 0
final int DRIVER = 1
final int FULL_NAME = 2
final int PREFIX_URL = 3
final String[] HSQL
final String[] CSV = {"csv", "csv", "Csv", "jdbc:relique:csv:"}
final String[] MYSQL = {"mysql", "mm", "MySQL", "jdbc:mysql://"}
final String[] POSTGRESQL
final String[] ORACLE
final String[] JTURBO
final String[] MSSQL
final Hashtable TYPES

Detailed Description

Class to map useful values for octopus

Author:
Nicolas Modrzyk

Definition at line 34 of file OctopusConstants.java.


Member Function Documentation

String org.objectweb.cjdbc.controller.backup.OctopusConstants.getOctopusDriver String  type  )  [static]
 

Get octopus driver.

Parameters:
type from url
Returns:
value from hashtable or null

Definition at line 93 of file OctopusConstants.java.

00094   {
00095     if (type == null)
00096       return null;
00097     return ((String[]) TYPES.get(type))[DRIVER];
00098   }

String org.objectweb.cjdbc.controller.backup.OctopusConstants.getOctopusType String  type  )  [static]
 

Get octopus type.

Parameters:
type from url
Returns:
value from hashtable or null

Definition at line 80 of file OctopusConstants.java.

00081   {
00082     if (type == null)
00083       return null;
00084     return ((String[]) TYPES.get(type))[FULL_NAME];
00085   }

String org.objectweb.cjdbc.controller.backup.OctopusConstants.getUrlPrefix String  type  )  [static]
 

Get Octopus url prefix

Parameters:
type from url
Returns:
value from hashtable or null

Definition at line 106 of file OctopusConstants.java.

00107   {
00108     if (type == null)
00109       return null;
00110     return ((String[]) TYPES.get(type))[PREFIX_URL];
00111   }


Member Data Documentation

final String [] org.objectweb.cjdbc.controller.backup.OctopusConstants.HSQL [static, package]
 

Initial value:

 {"hsqldb", "hsql", "HypersonicSQL",
      "jdbc:hsqldb:"                }

Definition at line 48 of file OctopusConstants.java.

final String [] org.objectweb.cjdbc.controller.backup.OctopusConstants.JTURBO [static, package]
 

Initial value:

 {"jTurbo", "jTurbo", "MSQL",
      "jdbc:JTurbo://"              }

Definition at line 56 of file OctopusConstants.java.

final String [] org.objectweb.cjdbc.controller.backup.OctopusConstants.MSSQL [static, package]
 

Initial value:

 {"microsoft", "microsoft", "MSQL",
      "jdbc:microsoft:sqlserver://" }

Definition at line 58 of file OctopusConstants.java.

final String [] org.objectweb.cjdbc.controller.backup.OctopusConstants.ORACLE [static, package]
 

Initial value:

 {"oracle", "oracle", "Oracle",
      "jdbc:oracle:thin:"           }

Definition at line 54 of file OctopusConstants.java.

final String [] org.objectweb.cjdbc.controller.backup.OctopusConstants.POSTGRESQL [static, package]
 

Initial value:

 {"postgresql", "postgresql",
      "PostgreSQL", "jdbc:postgresql://"}

Definition at line 52 of file OctopusConstants.java.


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:03:27 2005 for C-JDBC by  doxygen 1.3.9.1