1 22 23 package org.ofbiz.entity.datasource; 24 25 26 import java.util.Collection ; 27 import java.util.List ; 28 import java.util.Map ; 29 import java.util.Set ; 30 31 import org.ofbiz.entity.GenericEntityException; 32 import org.ofbiz.entity.GenericPK; 33 import org.ofbiz.entity.GenericValue; 34 import org.ofbiz.entity.condition.EntityCondition; 35 import org.ofbiz.entity.model.ModelEntity; 36 import org.ofbiz.entity.model.ModelRelation; 37 import org.ofbiz.entity.util.EntityFindOptions; 38 import org.ofbiz.entity.util.EntityListIterator; 39 40 41 49 public interface GenericHelper { 50 51 54 public String getHelperName(); 55 56 59 public GenericValue create(GenericValue value) throws GenericEntityException; 60 61 65 public GenericValue findByPrimaryKey(GenericPK primaryKey) throws GenericEntityException; 66 67 72 public GenericValue findByPrimaryKeyPartial(GenericPK primaryKey, Set keys) throws GenericEntityException; 73 74 78 public List findAllByPrimaryKeys(List primaryKeys) throws GenericEntityException; 79 80 84 public int removeByPrimaryKey(GenericPK primaryKey) throws GenericEntityException; 85 86 public List findByMultiRelation(GenericValue value, ModelRelation modelRelationOne, ModelEntity modelEntityOne, 87 ModelRelation modelRelationTwo, ModelEntity modelEntityTwo, List orderBy) throws GenericEntityException; 88 89 99 public EntityListIterator findListIteratorByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, 100 EntityCondition havingEntityCondition, Collection fieldsToSelect, List orderBy, EntityFindOptions findOptions) 101 throws GenericEntityException; 102 103 public long findCountByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition) throws GenericEntityException; 104 105 110 public int removeByCondition(ModelEntity modelEntity, EntityCondition condition) throws GenericEntityException; 111 112 119 public int storeByCondition(ModelEntity modelEntity, Map fieldsToSet, EntityCondition condition) throws GenericEntityException; 120 121 125 public int store(GenericValue value) throws GenericEntityException; 126 127 132 public void checkDataSource(Map modelEntities, List messages, boolean addMissing) throws GenericEntityException; 133 } 134 | Popular Tags |