Record Class OrderBy
java.lang.Object
java.lang.Record
top.magstar.framework.database.query.OrderBy
排序条件类。
用于构建 SQL 查询的 ORDER BY 子句。
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Berry_so
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OrderBy创建升序排序条件。static OrderBy创建降序排序条件。获取排序方向。final booleanIndicates whether some other object is "equal to" this one.field()获取字段名。final inthashCode()Returns a hash code value for this object.@NotNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrderBy
构造一个排序条件。- Parameters:
field- 字段名direction- 排序方向
-
-
Method Details
-
asc
-
desc
-
field
-
direction
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
-