Excludes are now done as a Set instead of a List.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892144 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -19,15 +19,15 @@
|
||||
package org.ofbiz.sql;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.ofbiz.base.util.StringUtil;
|
||||
|
||||
public final class FieldAll extends Atom implements Iterable<String> {
|
||||
private final String alias;
|
||||
private final List<String> exclude;
|
||||
private final Set<String> exclude;
|
||||
|
||||
public FieldAll(String alias, List<String> exclude) {
|
||||
public FieldAll(String alias, Set<String> exclude) {
|
||||
this.alias = alias;
|
||||
this.exclude = exclude;
|
||||
}
|
||||
|
||||
@@ -42,9 +42,11 @@ package org.ofbiz.sql;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import javolution.util.FastList;
|
||||
import javolution.util.FastMap;
|
||||
import javolution.util.FastSet;
|
||||
|
||||
public final class Parser {
|
||||
private boolean deleteSupportsUsing = true;
|
||||
@@ -524,7 +526,7 @@ private void FieldDef(Map<String, FieldDef> fieldDefs, List<FieldAll> fieldAlls)
|
||||
StaticValue v;
|
||||
String n, fieldAlias = null, fieldName, exc;
|
||||
FieldDef def;
|
||||
List<String> excludeList = FastList.newInstance();
|
||||
Set<String> excludeList = FastSet.newInstance();
|
||||
}
|
||||
{
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user