public abstract class Query<E extends Entity,Q extends Query> extends Object implements QueryJoin<Q>, QueryWhere<Q>, QueryOrder<Q>, QueryLimit<Q>, QueryHaving<Q>, QuerySetOperator<Q>, RemoteQuery<Q>, ILoggerBean
Modifier and Type | Field and Description |
---|---|
boolean |
_cache |
boolean |
_calcJoins |
List<Column<?,?,?>> |
_groupBy |
protected String |
_nativeQuery |
boolean |
_unique |
protected Order |
orderBy |
protected boolean |
refreshCasheWhenNoResult |
Modifier | Constructor and Description |
---|---|
protected |
Query() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, joinByFlag1, joinByFlag1, joinByFlag2, joinByFlag2, joinByFlag3, joinByFlag3, joinByFlag4, joinByFlag4, joinByPk, joinByPk, joinPk, joinPk, joinPk, joinRoute, joinRoute, joinThrough, joinThrough, joinWhere, joinWhere
whereAnd, whereBetween, whereBetween, whereEqual, whereEqual, whereEqual, whereEqual, whereEqual, whereEqual, whereGreater, whereGreater, whereGreater, whereGreater, whereGreater, whereGreaterOrEqual, whereGreaterOrEqual, whereGreaterOrEqual, whereGreaterOrEqual, whereGreaterOrEqual, whereIfNotNull, whereIn, whereIn, whereIn, whereIn, whereIn, whereIsNull, whereLess, whereLess, whereLess, whereLess, whereLess, whereLessOrEqual, whereLessOrEqual, whereLessOrEqual, whereLessOrEqual, whereLessOrEqual, whereLike, whereLike, whereLike, whereNotEqual, whereNotEqual, whereNotEqual, whereNotEqual, whereNotEqual, whereNotIn, whereNotIn, whereNotIn, whereNotIn, whereNotIn, whereNotLike, whereNotLike, whereNotNull, whereOR, whereOr
orderAscBy, orderBy, orderBy, orderDescBy
limitBy, limitBy, limitBy, page, setLimit, setTempPage
having, having, having, havingAnd, havingBetween, havingBetween, havingEqual, havingEqual, havingEqual, havingEqual, havingEqual, havingGreater, havingGreater, havingGreater, havingGreater, havingGreaterOrEqual, havingGreaterOrEqual, havingGreaterOrEqual, havingGreaterOrEqual, havingIfNotNull, havingIn, havingIn, havingIn, havingIsNotNull, havingIsNull, havingLess, havingLess, havingLess, havingLess, havingLessOrEqual, havingLessOrEqual, havingLessOrEqual, havingLessOrEqual, havingLike, havingNotEqual, havingNotEqual, havingNotEqual, havingNotIn, havingNotIn, havingNotIn, havingOR
public boolean _unique
public boolean _cache
public boolean _calcJoins
protected Order orderBy
protected boolean refreshCasheWhenNoResult
protected String _nativeQuery
public List<SetOperator> getSetOperatorList()
public void addSetOperator(SetOperator union)
addSetOperator
in interface QuerySetOperator<Q extends Query>
public Q doIfElse(boolean active, UnaryOperator<Q> logicIf, UnaryOperator<Q> logicElse)
public Q doIf(boolean active, UnaryOperator<Q> logic)
protected void init(QueryTarget target, String entityName)
protected void init(QueryTarget target, Entity entity)
public Where getWhereWrapper()
getWhereWrapper
in interface QueryWhere<Q extends Query>
public void setWhereWrapper(Where whereWrapper)
setWhereWrapper
in interface QueryWhere<Q extends Query>
public List<TableColumn> getFields()
protected void setFields(List<TableColumn> fields)
public Set<String> getAllEntitiesRelated()
public IdentifierStorage getIdentifierStorage()
protected void setIdentifierStorage(IdentifierStorage identifierStorage)
public Q where(Where whereWrapper)
where
in interface QueryWhere<Q extends Query>
public QueryTarget getTarget()
protected void setTarget(QueryTarget target)
public Q having(Having having)
having
in interface QueryHaving<Q extends Query>
public Order getOrderBy()
public Q orderBy(Order orderBy)
orderBy
in interface QueryOrder<Q extends Query>
public Count getCount()
protected void setTempCount(Count c)
public Limit getLimit()
public void setTempLimit(Limit limit)
setTempLimit
in interface QueryLimit<Q extends Query>
public Q logQuery()
public boolean isLogQueryEnabled()
public Q distinct()
public Q smartJoins()
public Q noCache()
public String getEntityName()
getEntityName
in interface QueryJoin<Q extends Query>
public void setEntityName(String entityName)
public Class getEntityClass()
public void setEntityClass(Class entityClass)
public Having getHavingWrapper()
public void setHavingWrapper(Having havingWrapper)
setHavingWrapper
in interface QueryHaving<Q extends Query>
public List<JoinWrapper> getJoins()
public void setJoins(List<JoinWrapper> joins)
public Map<String,Object> toRemote(boolean singleResult)
toRemote
in interface RemoteQuery<Q extends Query>
public void fromRemote(QueryTarget target, Map<String,Object> rv)
public String geNativeQuery()
protected Q modifyQuery()
public org.slf4j.Logger getLog()
getLog
in interface ILoggerBean
public String getIdentifier()
public abstract QueryType getQueryType()
protected TableColumn getInfoColumn(ColumnFunction column)
protected TableColumn getInfoColumn(Column column)
public abstract String toSqlQuery()
public String getSentQuery()
public void setSentQuery(String sentQuery)
Copyright © 2021. All rights reserved.