KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > module > database > JDBCInterface


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.module.database;
11
12 import java.sql.*;
13
14 /**
15  * JDBCInterface is _only_ the module JDBC interface who setup the connections
16  * it has nothing tofo with the JDBC interface.
17  *
18  * @duplicate Not really needed. Remove and reference JDBC directly. Note that direct
19  * references to JDBC will be removed from most of the core (only the storagemanagerfactory
20  * will reference the JDBC module directly)
21  * @author vpro
22  * @version $Id: JDBCInterface.java,v 1.7 2004/10/07 17:22:35 pierre Exp $
23  */

24 public interface JDBCInterface {
25
26     /**
27      * @javadoc
28      */

29     public String JavaDoc makeUrl();
30     /**
31      * @javadoc
32      */

33     public String JavaDoc makeUrl(String JavaDoc dbm);
34     /**
35      * @javadoc
36      */

37     public String JavaDoc makeUrl(String JavaDoc host, String JavaDoc dbm);
38     /**
39      * @javadoc
40      */

41     public String JavaDoc makeUrl(String JavaDoc host, int port, String JavaDoc dbm);
42
43     // JDBC Pools
44
/**
45      * @javadoc
46      */

47     public MultiConnection getConnection(String JavaDoc url, String JavaDoc name, String JavaDoc password) throws SQLException;
48
49     /**
50      * @javadoc
51      */

52     public MultiConnection getConnection(String JavaDoc url) throws SQLException;
53
54     /**
55      * @javadoc
56      */

57     public Connection getDirectConnection(String JavaDoc url) throws SQLException;
58
59     /**
60      * @javadoc
61      */

62     public Connection getDirectConnection(String JavaDoc url, String JavaDoc name, String JavaDoc password) throws SQLException;
63
64     /**
65      * @javadoc
66      */

67     public String JavaDoc getUser();
68
69     /**
70      * @javadoc
71      */

72     public String JavaDoc getPassword();
73
74     /**
75      * @javadoc
76      */

77     public String JavaDoc getDatabaseName();
78
79     /**
80      * @javadoc
81      */

82     public void checkTime();
83 }
84
Popular Tags