Module io.github.mmm.entity.bean
Class OrderBy<E extends EntityBean>
- java.lang.Object
-
- io.github.mmm.marshall.AbstractMarshallingObject
-
- io.github.mmm.entity.bean.sql.AbstractClause
-
- io.github.mmm.entity.bean.sql.AbstractTypedClause<E,OrderBy<E>>
-
- io.github.mmm.entity.bean.sql.select.OrderBy<E>
-
- Type Parameters:
E- type of theentity.
- All Implemented Interfaces:
Clause,MainClause<E>,TypedClause<E>,io.github.mmm.marshall.MarshallableObject,io.github.mmm.marshall.Marshaller<Object>,io.github.mmm.marshall.Marshalling<Object>,io.github.mmm.marshall.MarshallingObject,io.github.mmm.marshall.UnmarshallableObject,io.github.mmm.marshall.Unmarshaller<Object>
public class OrderBy<E extends EntityBean> extends AbstractTypedClause<E,OrderBy<E>> implements MainClause<E>
- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME_ORDER_BYName ofOrderByfor marshaling.static StringNAME_ORDERINGSName ofgetOrderings()for marshaling.
-
Constructor Summary
Constructors Constructor Description OrderBy(SelectStatement<E> statement)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderBy<E>and(io.github.mmm.property.criteria.CriteriaOrdering ordering)OrderBy<E>and(io.github.mmm.property.criteria.CriteriaOrdering... criteriaOrderings)SelectStatement<E>get()protected StringgetMarshallingName()List<io.github.mmm.property.criteria.CriteriaOrdering>getOrderings()booleanisOmit()protected voidreadProperty(io.github.mmm.marshall.StructuredReader reader, String name)protected voidwriteProperties(io.github.mmm.marshall.StructuredWriter writer)-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractTypedClause
self
-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractClause
toString
-
-
-
-
Field Detail
-
NAME_ORDER_BY
public static final String NAME_ORDER_BY
Name ofOrderByfor marshaling.- See Also:
- Constant Field Values
-
NAME_ORDERINGS
public static final String NAME_ORDERINGS
Name ofgetOrderings()for marshaling.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OrderBy
public OrderBy(SelectStatement<E> statement)
The constructor.- Parameters:
statement- the owningSelectStatement.
-
-
Method Detail
-
getMarshallingName
protected String getMarshallingName()
- Specified by:
getMarshallingNamein classAbstractClause- Returns:
- the name of the property for this clause.
-
isOmit
public boolean isOmit()
-
and
public OrderBy<E> and(io.github.mmm.property.criteria.CriteriaOrdering ordering)
- Parameters:
ordering- theCriteriaOrderingto add.- Returns:
- this
OrderBy-class itself for fluent API calls.
-
and
public OrderBy<E> and(io.github.mmm.property.criteria.CriteriaOrdering... criteriaOrderings)
- Parameters:
criteriaOrderings- theCriteriaOrderings to add.- Returns:
- this
OrderBy-class itself for fluent API calls.
-
getOrderings
public List<io.github.mmm.property.criteria.CriteriaOrdering> getOrderings()
- Returns:
- the
ListofCriteriaOrderings to order by.
-
get
public SelectStatement<E> get()
- Specified by:
getin interfaceMainClause<E extends EntityBean>- Returns:
- the actual
Statementcontaining allClauses and representing your entire SQL.
-
writeProperties
protected void writeProperties(io.github.mmm.marshall.StructuredWriter writer)
- Overrides:
writePropertiesin classAbstractClause
-
readProperty
protected void readProperty(io.github.mmm.marshall.StructuredReader reader, String name)- Overrides:
readPropertyin classAbstractClause
-
-