@UriEndpoint(scheme="jdbc")
public class JdbcEndpoint
extends org.apache.camel.impl.DefaultEndpoint
| Constructor and Description |
|---|
JdbcEndpoint() |
JdbcEndpoint(String endpointUri,
org.apache.camel.Component component,
DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
protected String |
createEndpointUri() |
org.apache.camel.Producer |
createProducer() |
BeanRowMapper |
getBeanRowMapper() |
DataSource |
getDataSource() |
String |
getOutputClass() |
JdbcOutputType |
getOutputType() |
Map<String,Object> |
getParameters() |
JdbcPrepareStatementStrategy |
getPrepareStatementStrategy() |
int |
getReadSize() |
boolean |
isAllowNamedParameters() |
boolean |
isResetAutoCommit() |
boolean |
isSingleton() |
boolean |
isTransacted() |
boolean |
isUseHeadersAsParameters() |
boolean |
isUseJDBC4ColumnNameAndLabelSemantics() |
void |
setAllowNamedParameters(boolean allowNamedParameters) |
void |
setBeanRowMapper(BeanRowMapper beanRowMapper) |
void |
setDataSource(DataSource dataSource) |
void |
setOutputClass(String outputClass) |
void |
setOutputType(JdbcOutputType outputType) |
void |
setParameters(Map<String,Object> parameters)
Optional parameters to the
Statement. |
void |
setPrepareStatementStrategy(JdbcPrepareStatementStrategy prepareStatementStrategy) |
void |
setReadSize(int readSize) |
void |
setResetAutoCommit(boolean resetAutoCommit) |
void |
setTransacted(boolean transacted) |
void |
setUseHeadersAsParameters(boolean useHeadersAsParameters) |
void |
setUseJDBC4ColumnNameAndLabelSemantics(boolean useJDBC4ColumnNameAndLabelSemantics)
Sets whether to use JDBC 4 or JDBC 3.0 or older semantic when retrieving column name.
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic JdbcEndpoint()
public JdbcEndpoint(String endpointUri, org.apache.camel.Component component, DataSource dataSource)
public boolean isSingleton()
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic int getReadSize()
public void setReadSize(int readSize)
public boolean isTransacted()
public void setTransacted(boolean transacted)
public boolean isResetAutoCommit()
public void setResetAutoCommit(boolean resetAutoCommit)
public DataSource getDataSource()
public void setDataSource(DataSource dataSource)
public void setParameters(Map<String,Object> parameters)
Statement.
For example to set maxRows, fetchSize etc.parameters - parameters which will be set using reflectionpublic boolean isUseJDBC4ColumnNameAndLabelSemantics()
public void setUseJDBC4ColumnNameAndLabelSemantics(boolean useJDBC4ColumnNameAndLabelSemantics)
useJDBC4ColumnNameAndLabelSemantics - true to use JDBC 4.0 semantics, false to use JDBC 3.0.public JdbcPrepareStatementStrategy getPrepareStatementStrategy()
public void setPrepareStatementStrategy(JdbcPrepareStatementStrategy prepareStatementStrategy)
public boolean isAllowNamedParameters()
public void setAllowNamedParameters(boolean allowNamedParameters)
public boolean isUseHeadersAsParameters()
public void setUseHeadersAsParameters(boolean useHeadersAsParameters)
public JdbcOutputType getOutputType()
public void setOutputType(JdbcOutputType outputType)
public String getOutputClass()
public void setOutputClass(String outputClass)
public BeanRowMapper getBeanRowMapper()
public void setBeanRowMapper(BeanRowMapper beanRowMapper)
protected String createEndpointUri()
createEndpointUri in class org.apache.camel.impl.DefaultEndpointApache Camel