Class OrderClause<E extends EntityType>
java.lang.Object
com.hades.builder.sqlCommand.clauseBuilder.ClauseElements
com.hades.builder.sqlCommand.clauseBuilder.order.OrderClause<E>
- All Implemented Interfaces:
SQLOrderClause<E>
- Author:
- alireza_bayat created on 11/1/21
-
Field Summary
Fields inherited from class com.hades.builder.sqlCommand.clauseBuilder.ClauseElements
clause -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(E e) create instanceClassof given entity to be used in Order clausesorder(Selection fieldName, OrderArrange orderArrange) create and order clause for given field name with with givenOrderArrange.order(String fieldName, OrderArrange orderArrange) create and order clause for given field name with with givenOrderArrange.Methods inherited from class com.hades.builder.sqlCommand.clauseBuilder.ClauseElements
getClause, setClause
-
Constructor Details
-
OrderClause
-
OrderClause
public OrderClause()
-
-
Method Details
-
createInstance
Description copied from interface:SQLOrderClausecreate instance
Classof given entity to be used in Order clauses- Specified by:
createInstancein interfaceSQLOrderClause<E extends EntityType>- Parameters:
e- passed entity object- Returns:
- SQLOrderClause
object
-
order
Description copied from interface:SQLOrderClausecreate and order clause for given field name with with given
OrderArrange.OrderArrangecan be null in case of multi field in order clause- Specified by:
orderin interfaceSQLOrderClause<E extends EntityType>- Parameters:
fieldName- string of field nameColumn.name()orderArrange-OrderArrangeASC|DESC
-
order
Description copied from interface:SQLOrderClausecreate and order clause for given field name with with given
OrderArrange.OrderArrangecan be null in case of multi field in order clauseexistence of field will be tested in
Selection- Specified by:
orderin interfaceSQLOrderClause<E extends EntityType>- Parameters:
fieldName-Selectionof field nameColumn.name()orderArrange-OrderArrangeASC|DESC
-