Example usage for javax.sql DataSource interface-usage

List of usage examples for javax.sql DataSource interface-usage

Introduction

In this page you can find the example usage for javax.sql DataSource interface-usage.

Usage

From source file net.ageto.gyrex.persistence.jdbc.pool.internal.PoolDataSource.java

/**
 * A data source which wraps another data source and configures the returned
 * connection to use a specific catalog.
 */
public class PoolDataSource implements DataSource {

From source file org.apache.ode.utils.LoggingDataSourceWrapper.java

/**
 * @author Matthieu Riou <mriou at apache dot org>
 */
public class LoggingDataSourceWrapper implements DataSource {

    private DataSource _wrapped;

From source file org.latticesoft.util.resource.dao.DataSourceBean.java

public class DataSourceBean implements DataSource {

    private static final Log log = LogFactory.getLog(DataSourceBean.class);
    private DataSource dataSource;
    private String user;
    private String password;

From source file com.amazon.carbonado.repo.jdbc.LoggingDataSource.java

/**
 * Wraps another DataSource such that all SQL statements are logged as debug.
 *
 * @author Brian S O'Neill
 */
public class LoggingDataSource implements DataSource {

From source file org.wso2.carbon.registry.core.jdbc.utils.RegistryDataSource.java

/**
 * Use {@link DataAccessManager#createDatabase()}.
 */
@Deprecated
public class RegistryDataSource implements DataSource {

From source file org.nuxeo.ecm.directory.sql.SimpleDataSource.java

/**
 * This class is used for tests, where datasources are set up from a driver, url
 * and user/password instead of a JNDI name.
 */
public class SimpleDataSource implements DataSource {

From source file org.nuxeo.runtime.datasource.DataSourceFromUrl.java

/**
 * This class is used for tests, where datasources are set up from a jdbc: url and user/password instead of a JNDI name.
 */
public class DataSourceFromUrl implements DataSource {

    private static final Log log = LogFactory.getLog(DataSourceFromUrl.class);

From source file org.jasig.portal.rdbm.TransientDatasource.java

/**
 * A DataSource implementation backed by an in-memory HSQLDb instance,
 * suitable for implementing testcases for DataSource-consuming DAO impls.
 * @author andrew.petro@yale.edu
 * @version $Revision$ $Date$
 */

From source file org.jboss.dashboard.database.ExternalDataSource.java

/**
 * A data source implementation that bounds its connections to the underlying transaction.
 * <p>When a connection is requested it gets a connection from the pool and attach such connection
 * to the current transaction. When the transaction completes the data source
 * connection is automatically completed as well.
 */

From source file commonline.query.sql.RecordParserDataSource.java

public class RecordParserDataSource implements DataSource, InitializingBean {
    private static final RecordLayoutSqlTableFactory sqlTableFactory = new RecordLayoutSqlTableFactory();
    private DriverManagerDataSource delegate;
    private String driverClassName;
    private String url;
    private String username;