ch.sahits.codegen.util.db
Class JDBCConnection

java.lang.Object
  extended by ch.sahits.codegen.util.db.JDBCConnection

public final class JDBCConnection
extends java.lang.Object

This class provides funcuonality concerning JDBC pased on a database product. The implementation is based upon information found at "http://www.redmountainsw.com/wordpress/archives/jdbc-connection-urls", "http://www.schemaresearch.com/products/srtransport/doc/modules/jdbcconf.html", "http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_iclient_conn", "http://lists.mysql.com/maxdb/24785", "http://www.mckoi.com/database/JDBCDriver.html", "http://www.ipd.uka.de/~oosem/mobiledb/pb/docs/server_embedded/html/htmlfiles/dev_tutorial.html" and "http://www.sybase.com/detail?id=1009876"

Since:
1.2.0
Author:
Andi Hotz

Constructor Summary
JDBCConnection(java.lang.String dbProduct)
          Initialize the Database product constant
 
Method Summary
 java.lang.String getConnectionURL()
          Retrieve the connection URL.
 java.lang.String getDriverClass()
          Retrieve the default driver class for the database product
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCConnection

public JDBCConnection(java.lang.String dbProduct)
Initialize the Database product constant

Parameters:
dbProduct - that is initialized
Method Detail

getDriverClass

public java.lang.String getDriverClass()
Retrieve the default driver class for the database product

Returns:
Driver class name

getConnectionURL

public java.lang.String getConnectionURL()
Retrieve the connection URL. The URL contains place holders HOST, PORT, DATABASE, USER

Returns:
connection URL with placeholders