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

DBConfig.java

Go to the documentation of this file.
00001 package cedar.jetweb.db;
00002 
00003 import java.sql.*;
00004 
00005 
00012 public abstract class DBConfig{
00013 
00014     public static String JETWEB;
00015     private static DBConnectionManager db = new DBConnectionManager();
00016 
00017     //just a wrapper for DBConnectionManager now
00018 
00019     public static void init(){
00020     JETWEB = "jetweb";
00021     db.init();
00022     return;
00023     }
00024 
00025     public static synchronized Connection getConnection(){
00026     return(db.getConnection());
00027     }
00028 
00029     public static DBConnectionManager getDBConnectionManager(){
00030     return(db);
00031     }
00032 
00033 
00034 }
00035 

Generated Wed Jan 17 09:14:27 GMT 2007