/** Get the named Related Entity for the GenericValue from the persistent * store and order it, looking first in a cache associated with this entity which is * destroyed with this ValueObject when no longer used. *@param relationName String containing the relation name which is the combination of relation.title and relation.rel-entity-name as specified in the entity XML definition file *@param orderBy the order that they should be returned *@return List of GenericValue instances as specified in the relation definition */ public List getRelatedOrderByEmbeddedCache(String relationName, List orderBy) throws GenericEntityException { return EntityUtil.orderBy(getRelatedEmbeddedCache(relationName), orderBy); }
/** Get the named Related Entity for the GenericValue from the persistent * store and filter it, looking first in a cache associated with this entity which is * destroyed with this ValueObject when no longer used. *@param relationName String containing the relation name which is the combination of relation.title and relation.rel-entity-name as specified in the entity XML definition file *@param fields the fields that must equal in order to keep *@return List of GenericValue instances as specified in the relation definition */ public List getRelatedByAndEmbeddedCache(String relationName, Map fields) throws GenericEntityException { return EntityUtil.filterByAnd(getRelatedEmbeddedCache(relationName), fields); }
/** * Get the named Related Entity for the GenericValue from the persistent * store and order it, looking first in a cache associated with this entity which is * destroyed with this ValueObject when no longer used. * * @param relationName String containing the relation name which is the combination of relation.title and relation.rel-entity-name as specified in the entity XML definition file * @param orderBy the order that they should be returned * @return List of GenericValue instances as specified in the relation definition */ public List<GenericValue> getRelatedOrderByEmbeddedCache(String relationName, List<String> orderBy) throws GenericEntityException { return EntityUtil.orderBy(getRelatedEmbeddedCache(relationName), orderBy); }
/** Get the named Related Entity for the GenericValue from the persistent * store and order it, looking first in a cache associated with this entity which is * destroyed with this ValueObject when no longer used. *@param relationName String containing the relation name which is the combination of relation.title and relation.rel-entity-name as specified in the entity XML definition file *@param orderBy the order that they should be returned *@return List of GenericValue instances as specified in the relation definition */ public List getRelatedOrderByEmbeddedCache(String relationName, List orderBy) throws GenericEntityException { return EntityUtil.orderBy(getRelatedEmbeddedCache(relationName), orderBy); }
/** * Get the named Related Entity for the GenericValue from the persistent * store and filter it, looking first in a cache associated with this entity which is * destroyed with this ValueObject when no longer used. * * @param relationName String containing the relation name which is the combination of relation.title and relation.rel-entity-name as specified in the entity XML definition file * @param fields the fields that must equal in order to keep * @return List of GenericValue instances as specified in the relation definition */ public List<GenericValue> getRelatedByAndEmbeddedCache(String relationName, Map<String, ?> fields) throws GenericEntityException { return EntityUtil.filterByAnd(getRelatedEmbeddedCache(relationName), fields); }
/** Get the named Related Entity for the GenericValue from the persistent * store and filter it, looking first in a cache associated with this entity which is * destroyed with this ValueObject when no longer used. *@param relationName String containing the relation name which is the combination of relation.title and relation.rel-entity-name as specified in the entity XML definition file *@param fields the fields that must equal in order to keep *@return List of GenericValue instances as specified in the relation definition */ public List getRelatedByAndEmbeddedCache(String relationName, Map fields) throws GenericEntityException { return EntityUtil.filterByAnd(getRelatedEmbeddedCache(relationName), fields); }
/** Get the named Related Entity for the GenericValue from the persistent * store, looking first in a cache associated with this entity which is * destroyed with this ValueObject when no longer used. *@param relationName String containing the relation name which is the combination of relation.title and relation.rel-entity-name as specified in the entity XML definition file * @param byAndFields the fields that must equal in order to keep; may be null * @param orderBy The fields of the named entity to order the query by; may be null; * optionally add a " ASC" for ascending or " DESC" for descending *@return List of GenericValue instances as specified in the relation definition */ public List getRelatedEmbeddedCache(String relationName, Map byAndFields, List orderBy) throws GenericEntityException { List col = getRelatedEmbeddedCache(relationName); if (byAndFields != null) col = EntityUtil.filterByAnd(col, byAndFields); if (UtilValidate.isNotEmpty(orderBy)) col = EntityUtil.orderBy(col, orderBy); return col; }
/** Get the named Related Entity for the GenericValue from the persistent * store, looking first in a cache associated with this entity which is * destroyed with this ValueObject when no longer used. *@param relationName String containing the relation name which is the combination of relation.title and relation.rel-entity-name as specified in the entity XML definition file * @param byAndFields the fields that must equal in order to keep; may be null * @param orderBy The fields of the named entity to order the query by; may be null; * optionally add a " ASC" for ascending or " DESC" for descending *@return List of GenericValue instances as specified in the relation definition */ public List getRelatedEmbeddedCache(String relationName, Map byAndFields, List orderBy) throws GenericEntityException { List col = getRelatedEmbeddedCache(relationName); if (byAndFields != null) col = EntityUtil.filterByAnd(col, byAndFields); if (UtilValidate.isNotEmpty(orderBy)) col = EntityUtil.orderBy(col, orderBy); return col; }
/** * Get the named Related Entity for the GenericValue from the persistent * store, looking first in a cache associated with this entity which is * destroyed with this ValueObject when no longer used. * * @param relationName String containing the relation name which is the combination of relation.title and relation.rel-entity-name as specified in the entity XML definition file * @param byAndFields the fields that must equal in order to keep; may be null * @param orderBy The fields of the named entity to order the query by; may be null; * optionally add a " ASC" for ascending or " DESC" for descending * @return List of GenericValue instances as specified in the relation definition */ public List<GenericValue> getRelatedEmbeddedCache(String relationName, Map<String, ?> byAndFields, List<String> orderBy) throws GenericEntityException { List<GenericValue> col = getRelatedEmbeddedCache(relationName); if (byAndFields != null) col = EntityUtil.filterByAnd(col, byAndFields); if (UtilValidate.isNotEmpty(orderBy)) col = EntityUtil.orderBy(col, orderBy); return col; }