nl.gx.webmanager.services.datasource
Class ProviderAdapter

java.lang.Object
  extended by nl.gx.webmanager.services.datasource.ProviderAdapter
All Implemented Interfaces:
Provider

public abstract class ProviderAdapter
extends java.lang.Object
implements Provider

Author:
hallok

Field Summary
protected  java.sql.Driver driverInstance
          Driver holding the instance of the specific underlaid database driver.
 
Constructor Summary
ProviderAdapter()
           
 
Method Summary
 java.sql.Connection createConnection(java.lang.String url)
           
 java.sql.Connection createConnection(java.lang.String url, java.lang.String username, java.lang.String password)
           
abstract  java.lang.String getDriverClassName()
           
abstract  java.lang.String getSpecification()
          Deprecated. 
 java.lang.String getValidationQuery()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driverInstance

protected java.sql.Driver driverInstance
Driver holding the instance of the specific underlaid database driver.

Constructor Detail

ProviderAdapter

public ProviderAdapter()
Method Detail

createConnection

public java.sql.Connection createConnection(java.lang.String url)
                                     throws java.sql.SQLException
Specified by:
createConnection in interface Provider
Throws:
java.sql.SQLException

createConnection

public java.sql.Connection createConnection(java.lang.String url,
                                            java.lang.String username,
                                            java.lang.String password)
                                     throws java.sql.SQLException
Specified by:
createConnection in interface Provider
Throws:
java.sql.SQLException

getDriverClassName

public abstract java.lang.String getDriverClassName()
Specified by:
getDriverClassName in interface Provider

getSpecification

@Deprecated
public abstract java.lang.String getSpecification()
Deprecated. 

Returns specification of provided DataSource in a human readable format.

Specified by:
getSpecification in interface Provider
Returns:
specification of provided DataSource in a human readable format.

getValidationQuery

public java.lang.String getValidationQuery()
Specified by:
getValidationQuery in interface Provider


Copyright © 2007-2011 GX Software BV. All Rights Reserved.