Module io.github.mmm.entity.bean
Class SelectFrom<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,SELF>
-
- io.github.mmm.entity.bean.sql.AbstractEntityClause<E,SELF>
-
- io.github.mmm.entity.bean.sql.AbstractEntitiesClause<E,SELF>
-
- io.github.mmm.entity.bean.sql.From<E,SelectFrom<E>>
-
- io.github.mmm.entity.bean.sql.select.SelectFrom<E>
-
- Type Parameters:
E- type of theentity.
- All Implemented Interfaces:
Clause,MainClause<E>,ClauseWithGroupBy<E>,ClauseWithOrderBy<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 SelectFrom<E extends EntityBean> extends From<E,SelectFrom<E>> implements ClauseWithGroupBy<E>, ClauseWithOrderBy<E>
- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from class io.github.mmm.entity.bean.sql.AbstractEntitiesClause
NAME_ADDITIONAL_ENTITIES
-
Fields inherited from class io.github.mmm.entity.bean.sql.AbstractEntityClause
entity, NAME_ALIAS, NAME_ENTITY
-
-
Constructor Summary
Constructors Constructor Description SelectFrom(Select select, E entity)The constructor.SelectFrom(Select select, E entity, String entityName)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectStatement<E>get()SelectWhere<E>where(io.github.mmm.property.criteria.CriteriaPredicate predicate)SelectWhere<E>where(io.github.mmm.property.criteria.CriteriaPredicate... predicates)-
Methods inherited from class io.github.mmm.entity.bean.sql.From
getMarshallingName
-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractEntitiesClause
and, and, and, and, getAdditionalEntities, readProperty, writeProperties
-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractEntityClause
as, getAlias, getEntity, getEntityName, setEntityName
-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractTypedClause
self
-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractClause
toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.mmm.entity.bean.sql.select.ClauseWithGroupBy
groupBy, groupBy
-
Methods inherited from interface io.github.mmm.entity.bean.sql.select.ClauseWithOrderBy
orderBy, orderBy
-
-
-
-
Method Detail
-
where
public SelectWhere<E> where(io.github.mmm.property.criteria.CriteriaPredicate predicate)
- Specified by:
wherein classFrom<E extends EntityBean,SelectFrom<E extends EntityBean>>- Parameters:
predicate- theCriteriaPredicateto add asWhere-clause.- Returns:
- the
Where-Clausefor fluent API calls.
-
where
public SelectWhere<E> where(io.github.mmm.property.criteria.CriteriaPredicate... predicates)
- Specified by:
wherein classFrom<E extends EntityBean,SelectFrom<E extends EntityBean>>- Parameters:
predicates- theCriteriaPredicates to add asWhere-clause. They will be combined withAND.- Returns:
- the
Where-Clausefor fluent API calls.
-
get
public SelectStatement<E> get()
- Specified by:
getin interfaceClauseWithGroupBy<E extends EntityBean>- Specified by:
getin interfaceClauseWithOrderBy<E extends EntityBean>- Specified by:
getin interfaceMainClause<E extends EntityBean>- Returns:
- the actual
Statementcontaining allClauses and representing your entire SQL.
-
-