public interface TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>
TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addEquals(String property, Object value)
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 toTopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addNotEquals(String property, Object value)
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 toTopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addIn(String property, Collection<?> values)
property - the name of a field of the queried entity, must be a one-to-one or a many-to-one propertyvalues - a collection of values the field of the entity must be equals toTopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addNotIn(String property, Collection<?> values)
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 toTopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addContains(String property, Object value)
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 valueTopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addNotContains(String property, Object value)
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 valueTopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addNull(String property)
property - the name of a field of the queried entity, must be a one-to-one or a many-to-one propertyTopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addNotNull(String property)
property - the name of a field of the queried entity, must be a one-to-one or a many-to-one propertyTopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addTopiaIdEquals(String property, String topiaId)
addEquals(String, Object) but you don't need to have the entity but
only the topiaId.
This method is useful when you want to do a addEquals(String, Object) but you don't
have the entity you want to give as an argument, you only have the topiaId.
// given that we want to find an entity that has a boat property valued to a
// boat which topiaId is boatId, we could write:
addEquals("boat.topiaId", boatId); // boatId is a topiaId
// but instead, you can write
addTopiaIdEquals("boat", boatId); // boat is a topia entity
property - the name of a field of the queried entity, must be a one-to-one or a many-to-one propertytopiaId - the value the topiaId of the entity must be equals toTopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addTopiaIdNotEquals(String property, String topiaId)
addNotEquals(String, Object) but you don't need to have the entity
but only the topiaId.property - the name of a field of the queried entity, must be a one-to-one or a many-to-one propertytopiaId - the value the topiaId of the entity must not be equals toTopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addTopiaIdIn(String property, Collection<String> topiaIds)
addIn(String, Collection) but you don't need to have the entity but
only the topiaId.property - the name of a field of the queried entity, must be a one-to-one or a many-to-one propertytopiaIds - a collection of values the topiaId of the entity must be equals toTopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addTopiaIdNotIn(String property, Collection<String> topiaIds)
addNotIn(String, Collection) but you don't need to have the entity
but only the topiaId.property - the name of a field of the queried entity, must be a one-to-one or a many-to-one propertytopiaIds - a collection of values the topiaId of the entity must not be equals toTopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addFetch(String property)
property - a property to load (fetch) with the entity(ies) (in a single query)TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addAllFetches(String property, String... otherProperties)
property - a property to load (fetch) with the entity(ies) (in a single query)otherProperties - an optional array of additional properties to load (fetch) with the entity(ies)TopiaQueryBuilderAddCriteriaOrRunQueryStep<E> addAllFetches(Collection<String> properties)
properties - a collection of properties to load (fetch) with the entity(ies) (in a single query)TopiaQueryBuilderRunQueryStep<E> setOrderByArguments(LinkedHashSet<String> orderByArguments)
orderByArguments - list of arguments that will be added as order byTopiaQueryBuilderRunQueryStep<E> setOrderByArguments(String... orderByArguments)
orderByArguments - list of arguments that will be added as order byTopiaQueryBuilderRunQueryStep<E> setOrderByArguments(Collection<org.nuiton.util.pagination.PaginationOrder> paginationOrders)
paginationOrders - list of PaginationOrder that will be added as order byPaginationOrderCopyright © 2004–2017 CodeLutin. All rights reserved.