Package org.jrest4guice.client

Examples of org.jrest4guice.client.Pagination


  }

  @Transactional(type = TransactionalType.READOLNY)
  public Page<${context.entityName}> list${context.entityName}s(int pageIndex, int pageSize)
      throws RuntimeException {
    return this.entityManager.pageByNamedQuery("list", new Pagination(
        pageIndex, pageSize));
  }
View Full Code Here


  }

  @Transactional(type = TransactionalType.READOLNY)
  @RolesAllowed("admin")
  public Page<Role> getAllRoles(int pageIndex, int pageSize) {
    return this.roleEntityManager.page("named:list", new Pagination(
        pageIndex, pageSize));
  }
View Full Code Here

  }

  @Transactional(type = TransactionalType.READOLNY)
  @RolesAllowed("admin")
  public Page<User> getAllUsers(int pageIndex, int pageSize) {
    return this.userEntityManager.page("named:list", new Pagination(
        pageIndex, pageSize));
  }
View Full Code Here

  @Transactional(type=TransactionalType.READOLNY)//覆盖类级别的事务类型为只读
  @Interceptor(ListContactsInterceptor.class)//覆盖类级别的拦截器
  public Page<Contact> listContacts(int pageIndex, int pageSize)
      throws RuntimeException {
    return this.entityManager.page("named:list",
        new Pagination(pageIndex, pageSize));
  }
View Full Code Here

TOP

Related Classes of org.jrest4guice.client.Pagination

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.