|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.jdbc.JdbcEndpoint
public class JdbcEndpoint
| Constructor Summary | |
|---|---|
JdbcEndpoint()
|
|
JdbcEndpoint(String endpointUri,
Component component,
DataSource dataSource)
|
|
| Method Summary | |
|---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
protected String |
createEndpointUri()
A factory method to lazily create the endpointUri if none is specified |
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint |
DataSource |
getDataSource()
|
Map<String,Object> |
getParameters()
|
int |
getReadSize()
|
boolean |
isSingleton()
Whether this class supports being singleton or not. |
boolean |
isUseJDBC4ColumnNameAndLabelSemantics()
|
void |
setDataSource(DataSource dataSource)
|
void |
setParameters(Map<String,Object> parameters)
Optional parameters to the Statement. |
void |
setReadSize(int readSize)
|
void |
setUseJDBC4ColumnNameAndLabelSemantics(boolean useJDBC4ColumnNameAndLabelSemantics)
Sets whether to use JDBC 4 or JDBC 3.0 or older semantic when retrieving column name. |
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
|---|
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcEndpoint()
public JdbcEndpoint(String endpointUri,
Component component,
DataSource dataSource)
| Method Detail |
|---|
public boolean isSingleton()
IsSingleton
public Consumer createConsumer(Processor processor)
throws Exception
Endpoint
processor - the given processor
Exception - can be thrown
public Producer createProducer()
throws Exception
Endpoint
Exception - can be thrownpublic int getReadSize()
public void setReadSize(int readSize)
public DataSource getDataSource()
public void setDataSource(DataSource dataSource)
public Map<String,Object> getParameters()
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.protected String createEndpointUri()
DefaultEndpoint
createEndpointUri in class DefaultEndpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||