|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.jbo.common.BaseViewCriteriaManagerImpl
public abstract class BaseViewCriteriaManagerImpl
This class provides implementation for most of the ViewCriteriaManager interface for a View Object.
| Field Summary | |
|---|---|
static java.lang.Class |
CLASS_INSTANCE
|
| Fields inherited from interface oracle.jbo.ViewCriteriaManager |
|---|
DFLT_VIEW_CRITERIA_NAME, IMPLICIT_VIEW_CRITERIA_NAME, QUICKSEARCH_VIEW_CRITERIA_NAME |
| Constructor Summary | |
|---|---|
BaseViewCriteriaManagerImpl(ViewCriteriaManagerOwner owner)
Creates an view criteria manager for the view criteria held by the owner. |
|
| Method Summary | |
|---|---|
void |
applyViewCriteria(ViewCriteria vc)
Apply the view criteria passed as the argument. |
void |
applyViewCriteria(ViewCriteria vc,
boolean bAppend)
Apply the view crtieria passed as the argument. |
abstract CriteriaClauses |
buildViewCriteriaClauses(ViewCriteria criteria)
This method is used by the framework to generate a query clause for a particular view criteria. |
void |
clearViewCriterias()
Clear all view criteria, both applied and unapplied help by this manager |
void |
criteriaChanged(ViewCriteria vc)
The criteria manager can track changes to applied view criteria. |
protected void |
ensureStorage()
Creates a default storage for view crtieria. |
java.lang.String[] |
getAllViewCriteriaNames()
Returns a list of both applied and unapplied view criterias managed by this object. |
ViewCriteria[] |
getAllViewCriterias()
Returns a list of both applied and unapplied view criterias managed by this object. |
ArrayList |
getApplyAllViewCriterias(int criteriaMode)
|
java.lang.String[] |
getApplyJoinedViewCriteriaNames()
|
ViewCriteria[] |
getApplyJoinedViewCriterias(int criteriaMode)
Return a list view criteria that are applied in filtering a declarative view object with entity joins |
java.lang.String[] |
getApplyViewCriteriaNames()
|
ViewCriteria[] |
getApplyViewCriterias(int criteriaMode)
Return a list of applied view criteria that have the mode passed in the argument turned on. |
java.lang.String[] |
getAvailableViewCriteriaNames()
Returns a list of view criteria names that are unapplied and managed by this object |
ArrayList |
getJoinedViewCriteriaList()
|
ViewCriteriaManagerOwner |
getOwner()
|
ViewCriteria |
getViewCriteria()
Returns the default view criteria of the manager. |
ViewCriteria |
getViewCriteria(java.lang.String name)
Returns a reference to the view criteria with a specific name if it is found. |
java.lang.String |
getViewCriteriaClause(boolean forQuery)
This method is used by the framework to generate a query clause for the applied view criterias. |
ViewCriteria |
getViewLinkReqdVC()
|
ViewCriteria |
getViewObjectReqdVC()
Deprecated. use getViewObjectRequiredViewCriteria() |
ViewCriteria |
getViewObjectRequiredViewCriteria()
|
protected void |
initViewCriteriaManager()
Subclasses can instantiate the contents of the manager lazily. |
boolean |
isViewCriteriaApplied(ViewCriteria vc)
A convenience API to check if a view criteria is in the applied view criteria list |
boolean |
isViewCriteriaNameApplied(java.lang.String name)
A convenience API to check if a name is in the applied view criteria list |
void |
putViewCriteria(java.lang.String name,
ViewCriteria vc)
Add a view criteria to be managed by this object |
boolean |
removeApplyViewCriteriaName(java.lang.String name)
Unapplied the view criteria if it is applied. |
ViewCriteria |
removeViewCriteria(java.lang.String name)
Removes the view criteria from this manager. |
void |
setApplyJoinedViewCriteriaNames(java.lang.String[] names)
A list of view criteria that are applied in filtering a declarative view object with entity joins |
void |
setApplyViewCriteriaName(java.lang.String name)
Apply the view criteria name passed as the argument. |
void |
setApplyViewCriteriaName(java.lang.String name,
boolean bAppend)
Apply the view crtieria name passed as the argument. |
void |
setApplyViewCriteriaNames(java.lang.String[] names)
Apply a set of view criteria names passed as the argument. |
protected void |
setSqlGen()
Sets this manager into a declarative sql mode if the view object is in declarative sql mode. |
void |
setViewLinkReqdVC(ViewCriteria vc)
Set a give view criteria as a required view criteria when a view link is traversed in a declarative view object. |
void |
setViewObjectReqdVC(ViewCriteria vc)
Deprecated. use setViewObjectRequiredViewCriteria() |
void |
setViewObjectRequiredViewCriteria(ViewCriteria vc)
Set a give view criteria as a required view criteria. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Class CLASS_INSTANCE
| Constructor Detail |
|---|
public BaseViewCriteriaManagerImpl(ViewCriteriaManagerOwner owner)
owner - the object that has the view criteria metadata| Method Detail |
|---|
public ViewCriteria getViewCriteria(java.lang.String name)
ViewCriteriaManager
getViewCriteria in interface ViewCriteriaManagername - view criteria name
public ViewCriteria getViewCriteria()
ViewCriteriaManagerViewCriteriaManager.DFLT_VIEW_CRITERIA_NAME then it is considered to be the default. The default name is
also assigned when a view criteria with a null name is applied.
getViewCriteria in interface ViewCriteriaManagerpublic ViewCriteria[] getAllViewCriterias()
ViewCriteriaManager
getAllViewCriterias in interface ViewCriteriaManagerpublic java.lang.String[] getAllViewCriteriaNames()
ViewCriteriaManager
getAllViewCriteriaNames in interface ViewCriteriaManagerpublic java.lang.String[] getAvailableViewCriteriaNames()
ViewCriteriaManager
getAvailableViewCriteriaNames in interface ViewCriteriaManager
public void putViewCriteria(java.lang.String name,
ViewCriteria vc)
ViewCriteriaManager
putViewCriteria in interface ViewCriteriaManagername - Name of the view criteriavc - view criteria referencepublic void clearViewCriterias()
ViewCriteriaManager
clearViewCriterias in interface ViewCriteriaManagerpublic ViewCriteria removeViewCriteria(java.lang.String name)
ViewCriteriaManagerremoveApplyViewCriteriaName
API.
removeViewCriteria in interface ViewCriteriaManagername - The view criteria name that needs to be removed
public boolean removeApplyViewCriteriaName(java.lang.String name)
ViewCriteriaManager
removeApplyViewCriteriaName in interface ViewCriteriaManagername - The view criteria name that need to be unapplied.
true if the view criteria was found to be applied, false
otherwise.public void applyViewCriteria(ViewCriteria vc)
ViewCriteriaManager
applyViewCriteria in interface ViewCriteriaManagervc - the criteria to be applied.
public void applyViewCriteria(ViewCriteria vc,
boolean bAppend)
ViewCriteriaManager
bAppend is true the passed
view criteria will be applied in addition to the existing ones. If bAppend is
false this method is identical to ViewCriteriaManager.applyViewCriteria(ViewCriteria)
applyViewCriteria in interface ViewCriteriaManagervc - the criteria to be appliedbAppend - pass true if the view criteria needs to be appended to the applied
list otherwise the list is cleared out.public void setApplyViewCriteriaName(java.lang.String name)
ViewCriteriaManager
setApplyViewCriteriaName in interface ViewCriteriaManagername - the criteria to be applied.
public void setApplyViewCriteriaName(java.lang.String name,
boolean bAppend)
ViewCriteriaManager
bAppend is true the
passed view criteria will be applied in addition to the existing ones. If bAppend
is false this method is identical to ViewCriteriaManager.setApplyViewCriteriaName(String)
setApplyViewCriteriaName in interface ViewCriteriaManagername - the criteria to be appliedbAppend - pass true if the view criteria needs to be appended to the applied
list otherwise the list is cleared out.public void setApplyViewCriteriaNames(java.lang.String[] names)
ViewCriteriaManager
setApplyViewCriteriaNames in interface ViewCriteriaManagernames - the criterias to be applied.public ViewCriteria[] getApplyViewCriterias(int criteriaMode)
ViewCriteriaManagerViewCriteria.CRITERIA_MODE_CACHE and ViewCriteria.CRITERIA_MODE_QUERY
for more information. View criterias that have both modes turned on are also qualified.
getApplyViewCriterias in interface ViewCriteriaManagercriteriaMode - the mode to match the criteria.
public java.lang.String[] getApplyViewCriteriaNames()
getApplyViewCriteriaNames in interface ViewCriteriaManagerpublic java.lang.String getViewCriteriaClause(boolean forQuery)
ViewCriteriaManager
getViewCriteriaClause in interface ViewCriteriaManagerforQuery - true if the clause is needed for a database query, false
for in-memory filtering.
public abstract CriteriaClauses buildViewCriteriaClauses(ViewCriteria criteria)
ViewCriteriaManagerViewCriteriaManager.getViewCriteriaClause(boolean)
buildViewCriteriaClauses in interface ViewCriteriaManagercriteria - the view criteria whose criteria needs to be generated
public void criteriaChanged(ViewCriteria vc)
ViewCriteriaManager
criteriaChanged in interface ViewCriteriaManagervc - the view criteria that has changedpublic ViewCriteriaManagerOwner getOwner()
public boolean isViewCriteriaNameApplied(java.lang.String name)
name - name of the view criteria to check
true if applied, false otherwisepublic boolean isViewCriteriaApplied(ViewCriteria vc)
vc - view criteria to check
true if applied, false otherwisepublic java.lang.String[] getApplyJoinedViewCriteriaNames()
public void setApplyJoinedViewCriteriaNames(java.lang.String[] names)
public ArrayList getJoinedViewCriteriaList()
public void setViewObjectRequiredViewCriteria(ViewCriteria vc)
vc - required view criteriapublic void setViewLinkReqdVC(ViewCriteria vc)
vc - required view criteriapublic ViewCriteria getViewObjectRequiredViewCriteria()
setViewObjectRequiredViewCriteria(oracle.jbo.ViewCriteria)public ViewCriteria getViewLinkReqdVC()
setViewLinkReqdVC(oracle.jbo.ViewCriteria)public ViewCriteria[] getApplyJoinedViewCriterias(int criteriaMode)
criteriaMode - the join view criteria with a matching mode are returned
public ArrayList getApplyAllViewCriterias(int criteriaMode)
protected void initViewCriteriaManager()
protected void ensureStorage()
protected void setSqlGen()
public ViewCriteria getViewObjectReqdVC()
getViewObjectRequiredViewCriteria()
instead.
public void setViewObjectReqdVC(ViewCriteria vc)
setViewObjectRequiredViewCriteria()
instead.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||