public abstract class AbstractJDBCComponent extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_DATASOURCE_NAME |
| Constructor and Description |
|---|
AbstractJDBCComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkNotNullAndLog(String argName,
Object value) |
protected static void |
checkNotNullAndLog(String argName,
Object[] values) |
protected int |
getFetchSize() |
static DataSource |
lookupDataSource(String dataSourceName)
Looks up a
DataSource by name from JNDI. |
protected static final String DEFAULT_DATASOURCE_NAME
public static DataSource lookupDataSource(String dataSourceName) throws TasteException
Looks up a DataSource by name from JNDI. "java:comp/env/" is prepended to the argument before
looking up the name in JNDI.
dataSourceName - JNDI name where a DataSource is bound (e.g. "jdbc/taste")DataSource under that JNDI nameTasteException - if a JNDI error occursprotected int getFetchSize()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.