net.sf.jasperreports.jsf.engine.converters
Class JndiSourceConverter

java.lang.Object
  extended by net.sf.jasperreports.jsf.engine.converters.SourceConverterBase
      extended by net.sf.jasperreports.jsf.engine.converters.DatabaseSourceConverter
          extended by net.sf.jasperreports.jsf.engine.converters.JndiSourceConverter
All Implemented Interfaces:
Serializable, SourceConverter

public final class JndiSourceConverter
extends DatabaseSourceConverter

Converter implementation which obtains a JDBC connection from a JNDI datasource name.

Author:
A. Alonso Dominguez
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.jasperreports.jsf.engine.converters.SourceConverterBase
NULL_SOURCE
 
Constructor Summary
JndiSourceConverter()
           
 
Method Summary
protected  Connection getConnection(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 
Methods inherited from class net.sf.jasperreports.jsf.engine.converters.DatabaseSourceConverter
createSource, executeQuery
 
Methods inherited from class net.sf.jasperreports.jsf.engine.converters.SourceConverterBase
convertFromSource, convertFromValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiSourceConverter

public JndiSourceConverter()
Method Detail

getConnection

protected Connection getConnection(javax.faces.context.FacesContext context,
                                   javax.faces.component.UIComponent component)
                            throws SourceException
Specified by:
getConnection in class DatabaseSourceConverter
Throws:
SourceException


Copyright © 2011 SourceForge.net. All Rights Reserved.