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

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.JdbcSourceConverter
All Implemented Interfaces:
Serializable, SourceConverter

public final class JdbcSourceConverter
extends DatabaseSourceConverter

Converter implementation which obtains a JDBC connection from a JDBC url and some additional attributes added to the requesting component.

Author:
A. Alonso Dominguez
See Also:
Serialized Form

Field Summary
static String ATTR_DRIVER_CLASS_NAME
           
static String ATTR_PASSWORD
           
static String ATTR_USERNAME
           
 
Fields inherited from class net.sf.jasperreports.jsf.engine.converters.SourceConverterBase
NULL_SOURCE
 
Constructor Summary
JdbcSourceConverter()
           
 
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
 

Field Detail

ATTR_DRIVER_CLASS_NAME

public static final String ATTR_DRIVER_CLASS_NAME
See Also:
Constant Field Values

ATTR_USERNAME

public static final String ATTR_USERNAME
See Also:
Constant Field Values

ATTR_PASSWORD

public static final String ATTR_PASSWORD
See Also:
Constant Field Values
Constructor Detail

JdbcSourceConverter

public JdbcSourceConverter()
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.