public static class AbstractTopiaDao.InnerTopiaQueryBuilderAddCriteriaOrRunQueryStep<E extends TopiaEntity> extends Object implements TopiaQueryBuilderAddCriteriaOrRunQueryStep<E>
| Modifier and Type | Field and Description |
|---|---|
protected HqlAndParametersBuilder<E> |
hqlAndParametersBuilder |
protected AbstractTopiaDao<E> |
topiaDAO |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTopiaDao.InnerTopiaQueryBuilderAddCriteriaOrRunQueryStep(AbstractTopiaDao<E> topiaDAO,
HqlAndParametersBuilder<E> hqlAndParametersBuilder) |
protected AbstractTopiaDao<E extends TopiaEntity> topiaDAO
protected HqlAndParametersBuilder<E extends TopiaEntity> hqlAndParametersBuilder
protected AbstractTopiaDao.InnerTopiaQueryBuilderAddCriteriaOrRunQueryStep(AbstractTopiaDao<E> topiaDAO, HqlAndParametersBuilder<E> hqlAndParametersBuilder)
public AbstractTopiaDao.InnerTopiaQueryBuilderRunQueryStep<E> setOrderByArguments(Set<String> orderByArguments)
setOrderByArguments in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>public AbstractTopiaDao.InnerTopiaQueryBuilderRunQueryStep<E> setOrderByArguments(String... orderByArguments)
setOrderByArguments in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>public TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addEquals(String property, Object value)
addEquals in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>property - the name of a field of the queried entity, must be
a one-to-one or a many-to-one property.value - the value the field of the entity must be equals to argumentpublic TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addNotEquals(String property, Object value)
addNotEquals in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>property - the name of a field of the queried entity, must be
a one-to-one or a many-to-one property.value - the value the field of the entity must not be equals to argumentpublic TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addIn(String property, Collection<?> values)
addIn in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>property - the name of a field of the queried entity, must be
a one-to-one or a many-to-one propertyvalues - the value the field of the entity must be equals to one of the given valuespublic TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addNotIn(String property, Collection<?> values)
addNotIn in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>property - the name of a field of the queried entity, must be
a one-to-one or a many-to-one propertyvalues - the value the field of the entity must not be equals to any of the given valuespublic TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addContains(String property, Object value)
addContains in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>property - the name of a field of the queried entity, must be
a one-to-many or a many-to-many propertyvalue - the property of the entity must be a collection that contains valuepublic TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addNotContains(String property, Object value)
addNotContains in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>property - the name of a field of the queried entity, must be
a one-to-many or a many-to-many propertyvalue - the property of the entity must be a collection that doesn't contain valuepublic TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addNull(String property)
addNull in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>property - the name of a field of the queried entity, must be
a one-to-one or a many-to-one propertypublic TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addNotNull(String property)
addNotNull in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>property - the name of a field of the queried entity, must be
a one-to-one or a many-to-one propertypublic TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addTopiaIdEquals(String property, String topiaId)
TopiaQueryBuilderAddCriteriaStepTopiaQueryBuilderAddCriteriaStep.addEquals(String, Object) but
you don't need to have the entity but only the topiaId.addTopiaIdEquals in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>property - the name of a field of the queried entity, must be
a one-to-one or a many-to-one propertytopiaId - thepublic TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addTopiaIdIn(String property, Collection<String> topiaIds)
addTopiaIdIn in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>public TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addTopiaIdNotEquals(String property, String topiaId)
addTopiaIdNotEquals in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>public TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addTopiaIdNotIn(String property, Collection<String> topiaIds)
addTopiaIdNotIn in interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>public boolean exists()
exists in interface TopiaQueryBuilderRunQueryWithUniqueResultStep<E extends TopiaEntity>public E findAnyOrNull()
findAnyOrNull in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public E findUniqueOrNull()
findUniqueOrNull in interface TopiaQueryBuilderRunQueryWithUniqueResultStep<E extends TopiaEntity>public E findAny()
findAny in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public E findUnique()
findUnique in interface TopiaQueryBuilderRunQueryWithUniqueResultStep<E extends TopiaEntity>public E findFirst()
TopiaQueryBuilderRunQueryStepfindFirst in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public E findFirstOrNull()
TopiaQueryBuilderRunQueryStepTopiaQueryBuilderRunQueryStep.tryFindFirst()
but allows you to prevent using Guava in you project.findFirstOrNull in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public com.google.common.base.Optional<E> tryFindAny()
tryFindAny in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public com.google.common.base.Optional<E> tryFindFirst()
TopiaQueryBuilderRunQueryStepTopiaQueryBuilderRunQueryStep.tryFindFirst()
but allows you to prevent using Guava in you project.
If the call must return a result, prefer TopiaQueryBuilderRunQueryStep.findFirst()tryFindFirst in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public com.google.common.base.Optional<E> tryFindUnique()
tryFindUnique in interface TopiaQueryBuilderRunQueryWithUniqueResultStep<E extends TopiaEntity>public List<E> findAll()
findAll in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public List<E> find(int startIndex, int endIndex)
find in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public List<E> find(org.nuiton.util.pagination.PaginationParameter page)
find in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public org.nuiton.util.pagination.PaginationResult<E> findPage(org.nuiton.util.pagination.PaginationParameter page)
findPage in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public Iterable<E> findAllLazy()
findAllLazy in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public Iterable<E> findAllLazy(int batchSize)
findAllLazy in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public long count()
TopiaQueryBuilderRunQueryStepCollection.size()
after doing a TopiaQueryBuilderRunQueryStep.findAll() but it may be faster.count in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public List<String> findIds(int startIndex, int endIndex)
findIds in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public List<String> findIds(org.nuiton.util.pagination.PaginationParameter page)
findIds in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public org.nuiton.util.pagination.PaginationResult<String> findIdsPage(org.nuiton.util.pagination.PaginationParameter page)
findIdsPage in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>public List<String> findAllIds()
findAllIds in interface TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>protected AbstractTopiaDao.InnerTopiaQueryBuilderRunQueryStep<E> getNextStep()
Copyright © 2004–2014 CodeLutin. All rights reserved.