nl.gx.webmanager.taglib.sql
Class DataSourceUtil

java.lang.Object
  extended by nl.gx.webmanager.taglib.sql.DataSourceUtil

public class DataSourceUtil
extends java.lang.Object

A simple DataSource utility for the standard DriverManager class. TO DO: need to cache DataSource

Author:
Justyna Horwat

Constructor Summary
DataSourceUtil()
           
 
Method Summary
static javax.sql.DataSource getDataSource(java.lang.Object rawDataSource, javax.servlet.jsp.PageContext pc)
          If dataSource is a String first DataSourceManager lookup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceUtil

public DataSourceUtil()
Method Detail

getDataSource

public static javax.sql.DataSource getDataSource(java.lang.Object rawDataSource,
                                                 javax.servlet.jsp.PageContext pc)
                                          throws javax.servlet.jsp.JspException
If dataSource is a String first DataSourceManager lookup. If lookup fails parse String like it was a set of JDBC parameters Otherwise check to see if dataSource is a DataSource object and use as is

Throws:
javax.servlet.jsp.JspException


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