Class SqlQueryBuilder2.SqlSelectionVisitor
java.lang.Object
io.micronaut.data.model.query.builder.sql.AbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
io.micronaut.data.model.query.builder.sql.SqlQueryBuilder2.SqlSelectionVisitor
- All Implemented Interfaces:
ExpressionVisitor
,SelectionVisitor
- Enclosing class:
- SqlQueryBuilder2
protected class SqlQueryBuilder2.SqlSelectionVisitor
extends AbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
-
Field Summary
Fields inherited from class io.micronaut.data.model.query.builder.sql.AbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
annotationMetadata, columnAlias, distinct, entity, query, queryState, tableAlias
-
Constructor Summary
ConstructorDescriptionSqlSelectionVisitor
(AbstractSqlLikeQueryBuilder2.QueryState queryState, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, boolean distinct) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendRowCount
(String logicalName) Appends a row count projection to the query string.protected void
appendRowCountDistinct
(String logicalName) Appends a row count distinct projection to the query string.void
selectAllColumns
(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, PersistentEntity entity, String alias) Selects all columns for the given entity and alias.protected void
Select all the columns from the entity and the joined entities.protected void
selectAllColumnsFromJoinPaths
(Collection<JoinPath> allPaths, @Nullable Map<JoinPath, String> joinAliasOverride) Does nothing but subclasses might override and implement new behavior.Methods inherited from class io.micronaut.data.model.query.builder.sql.AbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
appendAssociationProjection, appendCompoundAssociationProjection, appendCompoundPropertyProjection, appendProperty, appendPropertyProjection, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.data.model.jpa.criteria.impl.ExpressionVisitor
visit
Methods inherited from interface io.micronaut.data.model.jpa.criteria.impl.SelectionVisitor
visit, visit
-
Constructor Details
-
SqlSelectionVisitor
public SqlSelectionVisitor(AbstractSqlLikeQueryBuilder2.QueryState queryState, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, boolean distinct)
-
-
Method Details
-
appendRowCount
Description copied from class:AbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
Appends a row count projection to the query string.- Overrides:
appendRowCount
in classAbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
- Parameters:
logicalName
- The alias to the table name
-
appendRowCountDistinct
Description copied from class:AbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
Appends a row count distinct projection to the query string.- Overrides:
appendRowCountDistinct
in classAbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
- Parameters:
logicalName
- The alias to the table name
-
selectAllColumnsAndJoined
protected void selectAllColumnsAndJoined()Description copied from class:AbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
Select all the columns from the entity and the joined entities.- Overrides:
selectAllColumnsAndJoined
in classAbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
-
selectAllColumnsFromJoinPaths
@Internal protected void selectAllColumnsFromJoinPaths(Collection<JoinPath> allPaths, @Nullable @Nullable Map<JoinPath, String> joinAliasOverride) Description copied from class:AbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
Does nothing but subclasses might override and implement new behavior.- Overrides:
selectAllColumnsFromJoinPaths
in classAbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
- Parameters:
allPaths
- The join pathsjoinAliasOverride
- The join alias override
-
selectAllColumns
public void selectAllColumns(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, PersistentEntity entity, String alias) Selects all columns for the given entity and alias.- Overrides:
selectAllColumns
in classAbstractSqlLikeQueryBuilder2.SqlSelectionVisitor
- Parameters:
annotationMetadata
- The annotation metadataentity
- The entityalias
- The alias
-