cn.vonce.sql.bean.Order Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vonce-sqlbean-core Show documentation
Show all versions of vonce-sqlbean-core Show documentation
This is the core project of Sqlbean.
package cn.vonce.sql.bean;
import cn.vonce.sql.enumerate.SqlSort;
import java.io.Serializable;
/**
* Order By
*/
public class Order extends Column implements Serializable {
private static final long serialVersionUID = 1L;
private SqlSort sqlSort = SqlSort.ASC;
public Order() {
super();
}
public Order(String name, SqlSort sqlSort) {
this("", name, sqlSort);
}
public Order(Column column, SqlSort sqlSort) {
this(column.getTableAlias(), column.getName(), sqlSort);
}
public Order(String tableAlias, String name, SqlSort sqlSort) {
super(tableAlias, name, "");
this.sqlSort = sqlSort;
}
public SqlSort getSqlSort() {
return sqlSort;
}
public void setSqlSort(SqlSort sqlSort) {
this.sqlSort = sqlSort;
}
@Override
public String toString() {
return "Order{" +
"sqlSort=" + sqlSort +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy