com.github.miemiedev.mybatis.paginator.domain
类 Order

java.lang.Object
  继承者 com.github.miemiedev.mybatis.paginator.domain.Order
所有已实现的接口:
Serializable

public class Order
extends Object
implements Serializable

作者:
miemiedev
另请参见:
序列化表格

嵌套类摘要
static class Order.Direction
          PropertyPath implements the pairing of an Order.Direction and a property.
 
构造方法摘要
Order(String property, Order.Direction direction, String orderExpr)
           
 
方法摘要
static Order create(String property, String direction)
           
static Order create(String property, String direction, String orderExpr)
           
static List<Order> formString(String orderSegment)
           
static List<Order> formString(String orderSegment, String orderExpr)
           
 Order.Direction getDirection()
           
 String getOrderExpr()
           
 String getProperty()
           
static boolean isSQLInjection(String str)
           
 void setDirection(Order.Direction direction)
           
 void setOrderExpr(String orderExpr)
           
 void setProperty(String property)
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

Order

public Order(String property,
             Order.Direction direction,
             String orderExpr)
方法详细信息

getDirection

public Order.Direction getDirection()

getProperty

public String getProperty()

getOrderExpr

public String getOrderExpr()

setDirection

public void setDirection(Order.Direction direction)

setProperty

public void setProperty(String property)

setOrderExpr

public void setOrderExpr(String orderExpr)

isSQLInjection

public static boolean isSQLInjection(String str)

toString

public String toString()
覆盖:
Object 中的 toString

formString

public static List<Order> formString(String orderSegment)

formString

public static List<Order> formString(String orderSegment,
                                     String orderExpr)
参数:
orderSegment - ex: "id.asc,code.desc" or "code.desc"

create

public static Order create(String property,
                           String direction)

create

public static Order create(String property,
                           String direction,
                           String orderExpr)
参数:
property -
direction -
orderExpr - placeholder is "?", in oracle like: "nlssort( ? ,'NLS_SORT=SCHINESE_PINYIN_M')". Warning: you must prevent orderExpr SQL injection.
返回:


Copyright © 2015. All rights reserved.