Class CamelResource
java.lang.Object
org.apache.camel.quarkus.component.jdbc.CamelResource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.camel.CamelContext(package private) io.agroal.api.AgroalDataSource(package private) String(package private) org.apache.camel.ProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteStatement(String statement) getIdKey()getSpeciesById(String id) voidintervalPolling(String selectResult) (package private) void
-
Field Details
-
dataSource
@Inject @DataSource("cameldb") io.agroal.api.AgroalDataSource dataSource -
template
@Inject org.apache.camel.ProducerTemplate template -
context
@Inject org.apache.camel.CamelContext context -
dbKind
String dbKind
-
-
Constructor Details
-
CamelResource
public CamelResource()
-
-
Method Details
-
postConstruct
- Throws:
Exception
-
getSpeciesById
@Path("/species/{id}") @GET @Produces("text/plain") public String getSpeciesById(@PathParam("id") String id) throws Exception - Throws:
Exception
-
getSpeciesByIdWithSelectList
@Path("/species/{id}/list") @GET @Produces("text/plain") public String getSpeciesByIdWithSelectList(@PathParam("id") String id) throws Exception - Throws:
Exception
-
getSpeciesByIdWithDefinedType
@Path("/species/{id}/type") @GET @Produces("text/plain") public String getSpeciesByIdWithDefinedType(@PathParam("id") String id) throws Exception - Throws:
Exception
-
executeStatement
@Path("/execute") @POST @Consumes("text/plain") @Produces("text/plain") public String executeStatement(String statement) throws Exception - Throws:
Exception
-
generatedKeysRows
@Path("/generated-keys/rows") @GET @Produces("application/json") public List generatedKeysRows() throws Exception- Throws:
Exception
-
headersFromInsertOrUpdate
@Path("/headers/insert") @GET @Produces("application/json") public String headersFromInsertOrUpdate() throws Exception- Throws:
Exception
-
headersFromSelect
@Path("/headers/select") @GET @Produces("application/json") public String headersFromSelect() throws Exception- Throws:
Exception
-
headersAsParameters
@Path("/named-parameters/headers-as-parameters") @GET @Produces("application/json") public String headersAsParameters() throws Exception- Throws:
Exception
-
headersAsParametersMap
@Path("/named-parameters/headers-as-parameters-map") @GET @Produces("application/json") public String headersAsParametersMap() throws Exception- Throws:
Exception
-
intervalPolling
@Path("/interval-polling") @GET @Produces("application/json") public void intervalPolling(String selectResult) throws Exception - Throws:
Exception
-
moveBetweenDatasources
@Path("/move-between-datasources") @POST @Produces("application/json") public String moveBetweenDatasources() throws Exception- Throws:
Exception
-
getIdKey
-