ilscipio/scipio-erp

View on GitHub
framework/entity/src/org/ofbiz/entity/Delegator.java

Summary

Maintainability
F
3 days
Test Coverage

Delegator has 138 methods (exceeds 20 allowed). Consider refactoring.
Open

public interface Delegator {

    enum OperationType {INSERT, UPDATE, DELETE}

    /**
Severity: Major
Found in framework/entity/src/org/ofbiz/entity/Delegator.java - About 2 days to fix

    Method findListIteratorByCondition has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        EntityListIterator findListIteratorByCondition(DynamicViewEntity dynamicViewEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Collection<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions) throws GenericEntityException;
    Severity: Minor
    Found in framework/entity/src/org/ofbiz/entity/Delegator.java - About 45 mins to fix

      Method find has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          EntityListIterator find(String entityName, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Set<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions) throws GenericEntityException;
      Severity: Minor
      Found in framework/entity/src/org/ofbiz/entity/Delegator.java - About 45 mins to fix

        Method findList has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            List<GenericValue> findList(String entityName, EntityCondition entityCondition, Set<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions, boolean useCache) throws GenericEntityException;
        Severity: Minor
        Found in framework/entity/src/org/ofbiz/entity/Delegator.java - About 45 mins to fix

          Method getRelated has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              List<GenericValue> getRelated(String relationName, Map<String, ? extends Object> byAndFields, List<String> orderBy, GenericValue value, boolean useCache) throws GenericEntityException;
          Severity: Minor
          Found in framework/entity/src/org/ofbiz/entity/Delegator.java - About 35 mins to fix

            Avoid too many return statements within this method.
            Open

                        return getDefault();
            Severity: Major
            Found in framework/entity/src/org/ofbiz/entity/Delegator.java - About 30 mins to fix

              There are no issues that match your filters.

              Category
              Status