public class JdbcDataAdapterService extends AbstractClasspathAwareDataAdapterService
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_MESSAGE_KEY_CONNECTION_NOT_CREATED |
static String |
EXCEPTION_MESSAGE_KEY_INVALID_URL |
static String |
EXCEPTION_MESSAGE_KEY_PASSWORD_REQUIRED |
CURRENT_CLASS_LOADERSECRETS_CATEGORY| Constructor and Description |
|---|
JdbcDataAdapterService(ParameterContributorContext paramContribContext,
JdbcDataAdapter jdbcDataAdapter) |
| Modifier and Type | Method and Description |
|---|---|
void |
contributeParameters(Map<String,Object> parameters) |
void |
dispose() |
protected Boolean |
getAutoCommit(JdbcDataAdapter dataAdapter,
JRPropertiesUtil props,
JRDataset dataset) |
Connection |
getConnection() |
JdbcDataAdapter |
getJdbcDataAdapter() |
String |
getPassword() |
protected Boolean |
getReadOnly(JdbcDataAdapter dataAdapter,
JRPropertiesUtil props,
JRDataset dataset) |
protected Integer |
getTransactionIsolation(JdbcDataAdapter dataAdapter,
JRPropertiesUtil props,
JRDataset dataset) |
protected void |
setupConnection(JdbcDataAdapter dataAdapter) |
getClassLoader, getPathClassloadergetDataAdapter, getJasperReportsContext, getName, getParameterContributorContext, setDataAdapter, setName, testpublic static final String EXCEPTION_MESSAGE_KEY_PASSWORD_REQUIRED
public static final String EXCEPTION_MESSAGE_KEY_INVALID_URL
public static final String EXCEPTION_MESSAGE_KEY_CONNECTION_NOT_CREATED
public JdbcDataAdapterService(ParameterContributorContext paramContribContext, JdbcDataAdapter jdbcDataAdapter)
public JdbcDataAdapter getJdbcDataAdapter()
public void contributeParameters(Map<String,Object> parameters) throws JRException
contributeParameters in interface ParameterContributorcontributeParameters in class AbstractDataAdapterServiceJRExceptionpublic Connection getConnection() throws SQLException
SQLExceptionprotected void setupConnection(JdbcDataAdapter dataAdapter) throws SQLException
SQLExceptionprotected Boolean getAutoCommit(JdbcDataAdapter dataAdapter, JRPropertiesUtil props, JRDataset dataset)
protected Boolean getReadOnly(JdbcDataAdapter dataAdapter, JRPropertiesUtil props, JRDataset dataset)
protected Integer getTransactionIsolation(JdbcDataAdapter dataAdapter, JRPropertiesUtil props, JRDataset dataset)
public String getPassword() throws JRException
JRExceptionpublic void dispose()
dispose in interface ParameterContributordispose in class AbstractDataAdapterServiceCopyright © 2020 TIBCO Software Inc.. All rights reserved.