@Path(value="/")
@Consumes(value={"application/json","application/x-www-form-urlencoded"})
@Produces(value="application/json")
public interface IGenericObjectQueryService
extends IQueryService<GenericObject>
| Modifier and Type | Method and Description |
|---|---|
Long |
count(Query<GenericObject> query) |
javax.ws.rs.core.Response |
getTestString()
Test method to see if service is up and running
|
GenericObject |
load(Long id) |
List<GenericObject> |
query(Query<GenericObject> query) |
List |
query(String ql) |
Page |
query(String ql,
PageInfo pageInfo) |
@POST @Path(value="count") @Produces(value="text/plain") Long count(@FormParam(value="query") Query<GenericObject> query) throws Exception
count in interface IQueryService<GenericObject>Exception@POST @Path(value="queryGenericObject") List<GenericObject> query(@FormParam(value="query") Query<GenericObject> query) throws Exception
query in interface IQueryService<GenericObject>Exception@POST
@Path(value="load/{id}")
@Consumes(value={"text/plain","application/x-www-form-urlencoded"})
GenericObject load(@PathParam(value="id")
Long id)
throws Exception
load in interface IQueryService<GenericObject>Exception@GET @Path(value="freeQuery") List query(@QueryParam(value="query") String ql) throws Exception
Exception@GET @Path(value="freeQueryPage") Page query(@QueryParam(value="query") String ql, @QueryParam(value="pageInfo") PageInfo pageInfo) throws Exception
Exception@GET @Path(value="test") @Consumes(value="text/plain") @Produces(value="text/plain") javax.ws.rs.core.Response getTestString()
Copyright © 2018. All rights reserved.