Make your own free website on Tripod.com

API cont... Find...()

To retrieve an entity, use one of the GenericDelegator find methods:

Collection contactMech = delegator.findByAnd("PartyContactMech", 
    UtilMisc.toMap("partyId", partyId));
GenericValue product = delegator.findByPrimaryKey("Product", 
    UtilitMisc.toMap("productId", productId);
Map fields = UtilMisc.toMap("productId", productId,
    "productFeatureAndAppl", "SELECTABLE_FEATURE");
List order = UtilMisc.toList("sequenceNum", "productFeatureTypeId");
Collection features = 
    delegator.findByAnd("ProductFeatureAndAppl", fields, order);