framework/entity/src/org/ofbiz/entity/GenericDelegator.java
GenericDelegator
has 136 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class GenericDelegator implements Delegator {
private static final Debug.OfbizLogger module = Debug.getOfbizLogger(java.lang.invoke.MethodHandles.lookup().lookupClass());
protected ModelReader modelReader = null;
Method findListIteratorByCondition
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public EntityListIterator findListIteratorByCondition(DynamicViewEntity dynamicViewEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Collection<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions) throws GenericEntityException {
Method find
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public EntityListIterator find(String entityName, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Set<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions) throws GenericEntityException {
Method findList
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public List<GenericValue> findList(String entityName, EntityCondition entityCondition, Set<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions, boolean useCache) throws GenericEntityException {
Avoid deeply nested control flow statements. Open
Open
if (currentSeqId.startsWith(sequencedIdPrefix)) {
currentSeqId = currentSeqId.substring(sequencedIdPrefix.length());
} else {
continue;
}
Method createEntityAuditLogSingle
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected void createEntityAuditLogSingle(GenericValue value, ModelField mf, boolean isUpdate, boolean isRemove, Timestamp nowTimestamp) throws GenericEntityException {
Method getRelated
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public List<GenericValue> getRelated(String relationName, Map<String, ? extends Object> byAndFields, List<String> orderBy, GenericValue value, boolean useCache) throws GenericEntityException {
Avoid too many return
statements within this method. Open
Open
return helperInfo;