Record Class OrderByColumn
java.lang.Object
java.lang.Record
org.nervousync.database.query.orderby.OrderByColumn
- Record Components:
entityClass- The Alias name.identifyKey- The Identify key.orderByType- The Order by type.
public record OrderByColumn(OrderByColumn.OrderByType orderByType, Class<?> entityClass, String identifyKey)
extends Record
The type Order by column.
- Version:
- $Revision : 1.0 $ $Date: 9/14/2020 5:15 PM $
- Author:
- Steven Wee wmkm0113@Hotmail.com
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOrderByColumn(OrderByColumn.OrderByType orderByType, Class<?> entityClass, String identifyKey) Instantiates a new Order by column. -
Method Summary
Modifier and TypeMethodDescriptioncacheKey()Class<?>Gets entity class.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Gets identify key.Gets order by type.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrderByColumn
public OrderByColumn(OrderByColumn.OrderByType orderByType, Class<?> entityClass, String identifyKey) Instantiates a new Order by column.- Parameters:
orderByType- the order by typeentityClass- the entity classidentifyKey- the identify key
-
-
Method Details
-
identifyKey
Gets identify key.- Returns:
- the identify key
-
entityClass
Gets entity class.- Returns:
- the entity class
-
orderByType
Gets order by type.- Returns:
- the orderByType
-
cacheKey
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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).
-