orderbyvalue.java
来自「eclipse的hibernate插件,支持eclipse2.*版本」· Java 代码 · 共 71 行
JAVA
71 行
package com.tanghan.util.sql;/** * * 本类用以记录一个排序条件 * * @author Jerry Tang * @version v0.1.0 * @createdate 2003-3-25 * @copyright (C) 2003 Tanghan工作组 */public class OrderByValue { /** * 排序字段 * */ private int orderBy = -100; /** 排序的顺序 *distinct = false 从大到小排序 *distinct = true 从小到大排序 */ private boolean distinct = false; /** * Constructor for OrderByValue. */ public OrderByValue() { } /** * Constructor for OrderByValue. * @param orderBy 排序字段 * @param distinct 排序的顺序 */ public OrderByValue(int orderBy,boolean distinct){ this.orderBy = orderBy; this.distinct = distinct; } /** * Returns the distinct. * @return boolean */ public boolean isDistinct() { return distinct; } /** * Returns the orderBy. * @return int */ public int getOrderBy() { return orderBy; } /** * Sets the distinct. * @param distinct The distinct to set */ public void setDistinct(boolean distinct) { this.distinct = distinct; } /** * Sets the orderBy. * @param orderBy The orderBy to set */ public void setOrderBy(int orderBy) { this.orderBy = orderBy; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?