Constructor and Description |
---|
OAFinder() |
OAFinder(F fromObject,
String propPath) |
OAFinder(Hub<F> fromHub,
String propPath) |
OAFinder(Hub<F> fromHub,
String propPath,
boolean bUseAll) |
OAFinder(String propPath) |
Modifier and Type | Method and Description |
---|---|
protected ArrayList<T> |
_find(Hub<F> hubRoot,
F objectLastUsed)
Given the propertyPath, find all of the objects from a Hub,
starting after objectLastFound
|
void |
addAndFilter()
This will create an And with the existing filter and the next filter that is added.
|
void |
addBetweenFilter(String pp,
Object val1,
Object val2) |
void |
addBetweenOrEqualFilter(String pp,
Object val1,
Object val2) |
void |
addEmptyFilter(String pp) |
void |
addEqualFilter(String pp,
Object val) |
void |
addEqualFilter(String pp,
Object matchValue,
boolean bIgnoreCase) |
void |
addFalseFilter(String pp) |
void |
addFilter(OAFilter<T> filter) |
void |
addGreaterFilter(String pp,
Object val) |
void |
addGreaterOrEqualFilter(String pp,
Object val) |
void |
addLessFilter(String pp,
Object val) |
void |
addLessOrEqualFilter(String pp,
Object val) |
void |
addLikeFilter(String pp,
Object val) |
void |
addNotEmptyFilter(String pp) |
void |
addNotLikeFilter(String pp,
Object val) |
void |
addNotNullFilter(String pp) |
void |
addNullFilter(String pp) |
void |
addOrFilter()
This will create an Or with the existing filter and the next filter that is added.
|
void |
addOrFilter(OAFilter f1,
OAFilter f2) |
void |
addTrueFilter(String pp) |
boolean |
canFindFirst(F objectRoot)
Returns true if a matching value is found.
|
void |
clearFilters() |
protected HubFilter |
createHubFilter(String name)
This will be called to create a filter that is in the propertyPaths.
|
ArrayList<T> |
find() |
ArrayList<T> |
find(ArrayList<F> alRoot) |
ArrayList<T> |
find(ArrayList<F> alRoot,
F objectLastUsed) |
ArrayList<T> |
find(F objectRoot)
Given the propertyPath, find all of the objects from a root object.
|
ArrayList<T> |
find(Hub<F> hubRoot)
Given the propertyPath, find all of the objects from a Hub.
|
ArrayList<T> |
find(Hub<F> hubRoot,
F objectLastUsed) |
protected void |
find(Object obj,
int pos) |
T |
findFirst(F objectRoot)
Finds the first matching value.
|
T |
findFirst(Hub<F> hub) |
T |
findNext(Hub<F> hub,
F objectLastUsed) |
boolean |
getAllowRecursiveRoot()
Flag to know if the root object/hub should allow for recursive duing the find.
|
int |
getMaxFound() |
OAPropertyPath |
getPropertyPath() |
int |
getRootHubPos() |
Object[] |
getStackObjects()
The objects that are in the current stack.
|
String[] |
getStackPropertyNames()
The property name of the objects that are in the current stack.
|
boolean |
getStop() |
boolean |
getUseOnlyLoadedData()
Flag (default=false) to only use data that is already in memory and not to load from server or datasource.
|
protected boolean |
isUsed(T obj)
Called for all objects that are found, and pass the filter.
|
protected void |
onDataNotFound()
Called during a find when data was not found.
|
protected void |
onFound(T obj)
Add the found object to the list that is returned by find.
|
void |
setAllowRecursiveRoot(boolean b) |
void |
setCascade(OACascade cascade) |
void |
setEnabledStack(boolean b)
This will have the internal stack updated when a find is being performed.
|
void |
setMaxFound(int x) |
void |
setRoot(F obj) |
void |
setRoot(Hub<F> hub) |
protected void |
setup(Class c) |
void |
setUseOnlyLoadedData(boolean b) |
void |
stop()
This is used to stop the current find that is in process.
|
public OAFinder()
public OAFinder(String propPath)
public void setAllowRecursiveRoot(boolean b)
public boolean getAllowRecursiveRoot()
protected void onFound(T obj)
to be able to have the find stop searching.
protected void onDataNotFound()
public void stop()
public boolean getStop()
public void setUseOnlyLoadedData(boolean b)
public boolean getUseOnlyLoadedData()
public void setMaxFound(int x)
public int getMaxFound()
public void setRoot(F obj)
public ArrayList<T> find(Hub<F> hubRoot)
public int getRootHubPos()
protected ArrayList<T> _find(Hub<F> hubRoot, F objectLastUsed)
public void clearFilters()
public boolean canFindFirst(F objectRoot)
public T findFirst(F objectRoot)
public ArrayList<T> find(F objectRoot)
objectRoot
- starting object to begin navigating through the propertyPath.public OAPropertyPath getPropertyPath()
protected void setup(Class c)
protected void find(Object obj, int pos)
protected HubFilter createHubFilter(String name)
name
- name of the filter in the propertyPathprotected boolean isUsed(T obj)
public void setEnabledStack(boolean b)
b,
- default is falsepublic Object[] getStackObjects()
to enable this information.
public String[] getStackPropertyNames()
to enable this information.
public void addEmptyFilter(String pp)
public void addNotEmptyFilter(String pp)
public void addTrueFilter(String pp)
public void addFalseFilter(String pp)
public void addNullFilter(String pp)
public void addNotNullFilter(String pp)
public void addOrFilter()
public void addAndFilter()
public void setCascade(OACascade cascade)
Copyright © 1999–2019 ViaOA. All rights reserved.