@Internal
protected final class AbstractSqlLikeQueryBuilder.QueryState
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addParameterType(java.lang.String name,
DataType dataType)
Add a parameter type.
|
void |
addRequiredParameters(java.lang.String name)
Add a required parameter.
|
java.lang.String |
applyJoin(JoinPath joinPath)
Applies a join for the given association.
|
java.lang.String |
computeAlias(java.lang.String associationPath)
Computes the alias for the given association path given the current state of the joins.
|
java.util.Set<java.lang.String> |
getAdditionalRequiredParameters()
The additional required parameters.
|
java.lang.String |
getCurrentAlias() |
Embedded |
getCurrentEmbedded() |
PersistentEntity |
getEntity() |
java.util.Map<java.lang.String,java.lang.String> |
getParameters() |
java.util.Map<java.lang.String,DataType> |
getParameterTypes() |
java.lang.StringBuilder |
getQuery() |
QueryModel |
getQueryModel() |
java.lang.StringBuilder |
getWhereClause() |
boolean |
isAllowJoins() |
AbstractSqlLikeQueryBuilder.Placeholder |
newParameter()
Constructs a new parameter placeholder.
|
void |
setCurrentAlias(java.lang.String currentAlias)
Sets the current logic name.
|
void |
setCurrentEmbedded(Embedded currentEmbedded) |
void |
setEntity(PersistentEntity entity)
Sets the current entity.
|
boolean |
shouldEscape() |
@Nullable public java.lang.String getCurrentAlias()
public void setCurrentAlias(@Nullable
java.lang.String currentAlias)
currentAlias - The current alias@Nullable public Embedded getCurrentEmbedded()
public void setCurrentEmbedded(@Nullable
Embedded currentEmbedded)
currentEmbedded - The current embeddedpublic PersistentEntity getEntity()
public void setEntity(@NonNull
PersistentEntity entity)
entity - The entity to setpublic java.util.Map<java.lang.String,java.lang.String> getParameters()
public java.util.Map<java.lang.String,DataType> getParameterTypes()
public void addParameterType(@NonNull
java.lang.String name,
@NonNull
DataType dataType)
name - The namedataType - The typepublic void addRequiredParameters(@NonNull
java.lang.String name)
name - The namepublic java.lang.StringBuilder getQuery()
public java.lang.StringBuilder getWhereClause()
public boolean isAllowJoins()
public QueryModel getQueryModel()
public AbstractSqlLikeQueryBuilder.Placeholder newParameter()
public java.lang.String applyJoin(@NonNull
JoinPath joinPath)
joinPath - The join path@NonNull public java.lang.String computeAlias(java.lang.String associationPath)
associationPath - The assocation path.public boolean shouldEscape()
@Nullable public java.util.Set<java.lang.String> getAdditionalRequiredParameters()