Package pl.matsuo.core.model.query
Class AbstractQuery<E extends AbstractEntity>
java.lang.Object
pl.matsuo.core.model.query.AbstractQuery<E>
- All Implemented Interfaces:
Query<E>
public class AbstractQuery<E extends AbstractEntity> extends Object implements Query<E>
Abstract superclass for queries.
-
Field Summary
Fields Modifier and Type Field Description static DateFormatdateFormatprotected javax.persistence.EntityManagerentityManagerprotected ThreadLocal<Long>idBucketprotected List<Initializer<? super E>>initializers -
Constructor Summary
Constructors Constructor Description AbstractQuery(Class<E> clazz) -
Method Summary
Modifier and Type Method Description AbstractQuery<E>condition(Condition... conditions)protected AbstractQuery<E>from(FromPart fromPart)AbstractQuery<E>groupBy(String fieldName)AbstractQuery<E>having(Condition condition)AbstractQuery<E>initializer(Initializer<? super E>... initializer)AbstractQuery<E>limit(Integer limit)AbstractQuery<E>offset(Integer offset)AbstractQuery<E>orderBy(String fieldName)AbstractQuery<E>parts(QueryPart... queryParts)StringprintQuery()Tworzy tekstową reprezentację danego zapytania.StringpropertyValue(Object value)List<E>query(Long idBucketValue)StringresolveFieldName(Function<E,?> getter)AbstractQuery<E>select(String name)protected AbstractQuery<E>select(SelectPart selectPart)
-
Field Details
-
dateFormat
-
entityManager
protected javax.persistence.EntityManager entityManager -
initializers
-
idBucket
-
-
Constructor Details
-
AbstractQuery
-
-
Method Details
-
resolveFieldName
-
select
-
select
-
from
-
condition
-
parts
-
groupBy
-
having
-
orderBy
-
limit
-
offset
-
initializer
-
propertyValue
-
query
- Specified by:
queryin interfaceQuery<E extends AbstractEntity>
-
printQuery
Tworzy tekstową reprezentację danego zapytania.
-