Class MybatisResource

java.lang.Object
org.apache.camel.quarkus.component.mybatis.it.MybatisResource

@Path("/mybatis") @ApplicationScoped public class MybatisResource extends Object
  • Field Details

    • context

      @Inject org.apache.camel.CamelContext context
    • template

      @Inject org.apache.camel.ProducerTemplate template
  • Constructor Details

    • MybatisResource

      public MybatisResource()
  • Method Details

    • selectOne

      @Path("/selectOne") @GET @Produces("application/json") public Account selectOne(@QueryParam("id") Integer id)
    • selectList

      @Path("/selectList") @GET @Produces("application/json") public List selectList()
    • insertOne

      @Path("/insertOne") @POST @Consumes("application/json") @Produces("text/plain") public Integer insertOne(Account account)
    • insertList

      @Path("/insertList") @POST @Consumes("application/json") @Produces("text/plain") public Integer insertList(List<Account> accounts)
    • deleteOne

      @Path("/deleteOne") @DELETE @Produces("text/plain") public Integer deleteOne(@QueryParam("id") Integer id)
    • deleteList

      @Path("/deleteList") @DELETE @Produces("text/plain") public Integer deleteList(List<Integer> ids)
    • updateOne

      @Path("/updateOne") @PATCH @Consumes("application/json") @Produces("text/plain") public Integer updateOne(Account account)
    • updateList

      @Path("/updateList") @PATCH @Consumes("application/json") @Produces("text/plain") public Integer updateList(Map<String,Object> params)
    • consumer

      @Path("/consumer") @GET @Produces("text/plain") public Integer consumer() throws Exception
      Throws:
      Exception
    • afterConsumer

      @Path("/afterConsumer") @GET @Produces("application/json") public List afterConsumer()