|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E10684-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.view.rich.model.QueryModel
public abstract class QueryModel
The model for query component, it is used to manage QueryDescriptor objects.
A user can perform various operations on saved searches while interacting with a query component. These actions include creating, deleting, duplicating, selecting, resetting and updating a saved search.
The above actions result in a QueryDescriptor
object to be created, deleted, duplicated, updated, reset or retrieved. The methods that perform the above actions are typically called during the 'Invoke Application' phase of the JSF lifecycle.
Constructor Summary | |
---|---|
QueryModel() |
Method Summary | |
---|---|
abstract QueryDescriptor |
create(java.lang.String name, QueryDescriptor qdBase) Creates or retrieves a QueryDescriptor with the specified name. |
abstract void |
delete(QueryDescriptor qd) Removes the specified QueryDescriptor. |
abstract java.util.List<AttributeDescriptor> |
getAttributes() Returns the List of AttributeDescriptor objects by their names. |
abstract java.util.List<QueryDescriptor> |
getSystemQueries() Returns the list of QueryDescriptor objects that are 'system saved searches'. |
abstract java.util.List<QueryDescriptor> |
getUserQueries() Returns the list of QueryDescriptor objects that are 'user saved searches'. |
abstract void |
reset(QueryDescriptor qd) Resets the QueryDescriptor to its last saved state. |
abstract void |
setCurrentDescriptor(QueryDescriptor qd) Sets the current descriptor on the QueryModel. |
abstract void |
update(QueryDescriptor qd, java.util.Map<java.lang.String,java.lang.Object> uiHints) Updates the QueryDescriptor using the changed UIHint values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryModel()
Method Detail |
---|
public abstract QueryDescriptor create(java.lang.String name, QueryDescriptor qdBase)
The query component registers an internal listener for the QueryOperationEvent and invokes this method. NOTE: For more information regarding the event and its contents refer to QueryOperationEvent
.
name
- unique name to use for the (about to be) cloned QueryDescriptor or the name of an existing QueryDescriptor if retrieving an existing one.qdBase
- QueryDescriptor that is used to clone the new one or null (when retrieving an existing one).public abstract void delete(QueryDescriptor qd)
This method in the 'Invoke Application' phase of the JSF lifecycle.
The query component registers an internal listener for the QueryOperationEvent and invokes this method. NOTE: For more information regarding the event and its contents refer to QueryOperationEvent
.
qd
- QueryDescriptor instance to be deletedQueryDescriptor
public abstract java.util.List<AttributeDescriptor> getAttributes()
AttributeDescriptor
public abstract java.util.List<QueryDescriptor> getSystemQueries()
public abstract java.util.List<QueryDescriptor> getUserQueries()
public abstract void reset(QueryDescriptor qd)
This method is invoked during the 'Invoke Application' phase of the JSF lifecyle. Subclasses can override this method to reset the QueryDescriptor to its original state.
qd
- QueryDescriptor to be restored to its last saved state.public abstract void setCurrentDescriptor(QueryDescriptor qd)
qd
- the QueryDescriptor that will be the current descriptor.public abstract void update(QueryDescriptor qd, java.util.Map<java.lang.String,java.lang.Object> uiHints)
This method is called when the user personalizes a saved search by changing its name or its UI hints. This method is invoked during the 'Invoke Application' phase of the JSF lifecyle. The query component registers an internal listener for the QueryOperationEvent and invokes this method. NOTE: For more information regarding the event and its contents refer to QueryOperationEvent
.
qd
- QueryDescriptor object to updateduiHints
- Map of uiHints that contain the changed values.QueryDescriptor
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E10684-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |