Module io.github.mmm.orm
Package io.github.mmm.orm.statement
Class AbstractEntitiesClause<R,E extends io.github.mmm.entity.bean.EntityBean,SELF extends AbstractEntitiesClause<R,E,SELF>>
java.lang.Object
io.github.mmm.orm.statement.AbstractDbClause
io.github.mmm.orm.statement.AbstractTypedClause<R,SELF>
io.github.mmm.orm.statement.AbstractEntityClause<R,E,SELF>
io.github.mmm.orm.statement.AbstractEntitiesClause<R,E,SELF>
- Type Parameters:
R- type of the result. Only different from <E> for complex selects.E- type of theentity.SELF- type of this class itself.
- All Implemented Interfaces:
DbClause,TypedClause<R>
- Direct Known Subclasses:
FromClause,UpdateClause
public abstract class AbstractEntitiesClause<R,E extends io.github.mmm.entity.bean.EntityBean,SELF extends AbstractEntitiesClause<R,E,SELF>>
extends AbstractEntityClause<R,E,SELF>
A
AbstractEntitiesClause is a DbClause of an SQL DbStatement that specifies the
entity and/or entity name (table) to operate on.- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of propertyAbstractEntityClause.getEntityName()for marshalling.Fields inherited from class io.github.mmm.orm.statement.AbstractEntityClause
entity, NAME_ALIAS, NAME_ENTITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractEntitiesClause(AliasMap aliasMap, E entity, String entityName) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionand(io.github.mmm.entity.bean.EntityBean additionalEntity) protected SELFand(EntitySubClause<?, ?> entityFragment) List<EntitySubClause<?, ?>> Methods inherited from class io.github.mmm.orm.statement.AbstractEntityClause
getAlias, getAliasMap, getEntity, getEntityName, hasAlias, setEntityNameMethods inherited from class io.github.mmm.orm.statement.AbstractTypedClause
selfMethods inherited from class io.github.mmm.orm.statement.AbstractDbClause
toString
-
Field Details
-
NAME_ADDITIONAL_ENTITIES
Name of propertyAbstractEntityClause.getEntityName()for marshalling.- See Also:
-
-
Constructor Details
-
AbstractEntitiesClause
The constructor.- Parameters:
aliasMap- thealiasMap.entity- theentityto operate on.entityName- theentity name.
-
-
Method Details
-
and
-
and
-
and
public SELF and(String entityName, io.github.mmm.entity.bean.EntityBean additionalEntity, String alias) - Parameters:
entityName- theentity name.additionalEntity- the additionalentityto access (similar to a JOIN).alias- thealias.- Returns:
- this
DbClauseitself for fluent API calls.
-
and
- Parameters:
entityFragment- theEntitySubClauseto add.- Returns:
- this
DbClauseitself for fluent API calls.
-
as
- Overrides:
asin classAbstractEntityClause<R,E extends io.github.mmm.entity.bean.EntityBean, SELF extends AbstractEntitiesClause<R, E, SELF>> - Parameters:
entityAlias- the alias (variable name) for theEntityBeanto query.- Returns:
- this
DbClauseitself for fluent API calls. - See Also:
-
getAdditionalEntities
- Returns:
- the
ListofEntitySubClauses in addition to themain entity.
-