framework/entity/src/org/ofbiz/entity/GenericEntity.java
GenericEntity
has 178 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@SuppressWarnings("serial")
public class GenericEntity implements ScipioMap<String, Object>, LocalizedMap<Object>, Serializable, Comparable<GenericEntity>, Cloneable {
private static final Debug.OfbizLogger module = Debug.getOfbizLogger(java.lang.invoke.MethodHandles.lookup().lookupClass());
public static final GenericEntity NULL_ENTITY = new NullGenericEntity();
Avoid deeply nested control flow statements. Open
Open
if (memberModelEntity.getEntityName().equals(modelEntityToUse.getEntityName())) {
pkName = aliasField.getName();
break;
}
Avoid deeply nested control flow statements. Open
Open
for (ModelKeyMap mkm : relation.getKeyMaps()) {
if (this.get(mkm.getFieldName()) != null) {
newValue.set(mkm.getRelFieldName(), this.get(mkm.getFieldName()));
if (Debug.infoOn()) {
Debug.logInfo("Set [" + mkm.getRelFieldName() + "] to - " + this.get(mkm.getFieldName()), module);
Avoid deeply nested control flow statements. Open
Open
if (allFieldsSet) {
if (Debug.infoOn()) {
Debug.logInfo("Creating place holder value : " + newValue, module);
}
Method setAllFields
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public void setAllFields(Map<?, ?> fields, Boolean setIfEmpty, String namePrefix, Boolean pks, SetOptions options) {
Method get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private Object get(ModelEntity modelEntity, ModelEntity modelEntityToUse, String name, String resource, Locale locale) {
Avoid too many return
statements within this method. Open
Open
return tempResult;
Avoid too many return
statements within this method. Open
Open
return wrapper.getBytes();