1 10 package org.mmbase.module.database; 11 12 import java.sql.*; 13 14 24 public interface JDBCInterface { 25 26 29 public String makeUrl(); 30 33 public String makeUrl(String dbm); 34 37 public String makeUrl(String host, String dbm); 38 41 public String makeUrl(String host, int port, String dbm); 42 43 47 public MultiConnection getConnection(String url, String name, String password) throws SQLException; 48 49 52 public MultiConnection getConnection(String url) throws SQLException; 53 54 57 public Connection getDirectConnection(String url) throws SQLException; 58 59 62 public Connection getDirectConnection(String url, String name, String password) throws SQLException; 63 64 67 public String getUser(); 68 69 72 public String getPassword(); 73 74 77 public String getDatabaseName(); 78 79 82 public void checkTime(); 83 } 84 | Popular Tags |