⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orderbyvalue.java

📁 J2EE eclipse 下开发数据库一个插件
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -