@Override public void addFetchAttributes(String fetchAttribute) { if (getFetchAttributes() == null) { setFetchAttributes(new ArrayList<>()); } getFetchAttributes().add(fetchAttribute); }
/** * Constructor. * * @param scopeId * The scope id of the {@link KapuaQuery} * @since 1.0.0 */ public AbstractKapuaQuery(KapuaId scopeId) { this(); setScopeId(scopeId); }
/** * Constructor. * * It defaults the {@link #sortCriteria} to order by the {@link KapuaEntity#getCreatedOn()} {@link SortOrder#ASCENDING}. * * @since 1.0.0 */ public AbstractKapuaQuery() { setSortCriteria(new FieldSortCriteria(KapuaEntityAttributes.CREATED_ON, SortOrder.ASCENDING)); }
/** * Constructor. * * It defaults the {@link #sortCriteria} to order by the {@link KapuaEntity#getCreatedOn()} {@link SortOrder#ASCENDING}. * * @since 1.0.0 */ public AbstractKapuaQuery() { setSortCriteria(new FieldSortCriteria(KapuaEntityAttributes.CREATED_ON, SortOrder.ASCENDING)); }
@Override public void addFetchAttributes(String fetchAttribute) { if (getFetchAttributes() == null) { setFetchAttributes(new ArrayList<>()); } getFetchAttributes().add(fetchAttribute); }
/** * Constructor. * * @param scopeId * The scope id of the {@link KapuaQuery} * @since 1.0.0 */ public AbstractKapuaQuery(KapuaId scopeId) { this(); setScopeId(scopeId); }