Package com.google.code.lightssh.common.model.page

Examples of com.google.code.lightssh.common.model.page.ListPage


   * TODO 考虑其它数据库
   */
  @SuppressWarnings({ "unchecked", "rawtypes" })
  protected ListPage<?> query(String from_sql,NativeQuery query, ListPage<?> page ){
    if( page == null )
      page = new ListPage();
   
    //TODO 只实现oracle,待完善
    String pagenation_sql = ORACLE_PAGINATION_SQL.replace("#{SQL}"
        ,SQL_SELECT_DATA + from_sql + addOrderBy(page));
   
View Full Code Here


   * 查询
   */
  @SuppressWarnings({ "unchecked", "rawtypes" })
  protected ListPage<?> query(Query query, ListPage<?> page ){
    if( page == null )
      page = new ListPage();
   
    OrderBy orderBy = page.getOrderBy();
    if( orderBy != null ){
      if( ListPage.OrderType.DESCENDING.equals(orderBy.getType()) )
        query.desc();
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.common.model.page.ListPage

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.