Class SqlResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.sql.it.SqlResource
-
@Path("/sql") @ApplicationScoped public class SqlResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.CamelContextcamelContext(package private) io.agroal.api.AgroalDataSourcedataSource(package private) StringdbKind(package private) org.apache.camel.ProducerTemplateproducerTemplate(package private) Map<String,List>results
-
Constructor Summary
Constructors Constructor Description SqlResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcallStoredProcedure(int numA, int numB)ListconsumerResults(String resultId)StringgetCamel(String species)StringgetCamelSelectList(String species)StringgetCamelSelectListWithType(String species)javax.ws.rs.core.Responseinsert(String table, Map<String,Object> values)ObjecttoDirect(String directId, String body, Map<String,Object> headers)javax.ws.rs.core.Responseupdate(String table, Map<String,Object> values)
-
-
-
Method Detail
-
getCamel
@Path("/get/{species}") @GET @Produces("text/plain") public String getCamel(@PathParam("species") String species) throws Exception- Throws:
Exception
-
getCamelSelectList
@Path("/get/{species}/list") @GET @Produces("text/plain") public String getCamelSelectList(@PathParam("species") String species) throws Exception- Throws:
Exception
-
getCamelSelectListWithType
@Path("/get/{species}/list/type") @GET @Produces("text/plain") public String getCamelSelectListWithType(@PathParam("species") String species) throws Exception- Throws:
Exception
-
insert
@Path("/insert/") @POST @Consumes("application/json") @Produces("text/plain") public javax.ws.rs.core.Response insert(@QueryParam("table") String table, Map<String,Object> values) throws Exception- Throws:
Exception
-
update
@Path("/update/") @POST @Consumes("application/json") @Produces("text/plain") public javax.ws.rs.core.Response update(@QueryParam("table") String table, Map<String,Object> values) throws Exception- Throws:
Exception
-
callStoredProcedure
@Path("/storedproc") @GET @Produces("text/plain") public String callStoredProcedure(@QueryParam("numA") int numA, @QueryParam("numB") int numB)
-
consumerResults
@Path("/get/results/{resultId}") @GET @Produces("application/json") public List consumerResults(@PathParam("resultId") String resultId) throws Exception- Throws:
Exception
-
-