|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dss.dataSource.client.QueryManager
Main QueryManager bean. This bean performs services for all the Query beans that it tracks. These services include providing database support and providing methods to add, create, remove, or close Query
objects.
Constructor Summary | |
QueryManager() Constructor for the QueryManager .Example: QueryManager queryManager = new QueryManager (); | |
QueryManager(oracle.jbo.ComponentObject dso) Alternate constructor that creates a client-side QueryManager using an existing middle tier (server-side) proxy as a parameter. |
Method Summary | |
void |
addErrorHandler(ErrorHandler eh) Adds a single error handler to this QueryManager bean. |
int |
addQuery(Query query) Adds the specified Query object to the list of Queries that are tracked by this QueryManager . |
boolean |
cancel() Cancels current processes on this connection, if possible. |
java.lang.Object |
clone() Clones this QueryManager object. |
void |
close() Closes any open Query objects, releases the storage that is associated with those objects, and shuts down the QueryManager . |
void |
closeQueries(com.sun.java.util.collections.List queryList) Closes a specified list of Query objects. |
Query |
createQuery() Creates an empty Query object. |
boolean |
getFetchPageEdge() Returns whether entire page edges are fetched. |
int |
getFetchSize() Returns the currently-set fetch buffer size |
java.util.Locale |
getLocale() |
MetadataManager |
getMetadataManager() Retrieves the MetadataManager object that is currently associated with this QueryManager object. |
java.lang.String |
getName() Retrieves the name of this QueryManager object. |
PersistableAttributes |
getPersistableAttributes(PersistableAttributes oldAttrs) |
java.util.Enumeration |
getQueries() Retrieves a list of all of the Query objects that are being tracked by this QueryManager object. |
BISession |
getSession() Get the BISession object |
java.lang.String |
getTagName() |
java.lang.Object |
getXML( con) |
void |
initialize(java.util.Hashtable env) |
boolean |
isAsymmetricDrilling() Indicates whether asymmetric drilling is set. |
boolean |
isDebugMode() Indicates whether debug printouts will be produced. |
boolean |
isHierarchicalDrilling() Indicates whether hierarchical drilling is set exclusively. |
boolean |
isPrintQueryState() Indicates whether query state printouts should be produced on every query operation. |
boolean |
isSeparatePage() Indicates whether page cursors are fetched separately from data cursors |
boolean |
isXMLValidated() Indicates whether the QueryManager validates XML against its DTD. |
void |
removeErrorHandler() Removes the error handler from this QueryManager bean. |
void |
removeQuery(Query query) Removes the specified Query object from the list of Query objects that are tracked by this QueryManager . |
void |
setAsymmetricDrilling(boolean asymmetric) Indicates whether asymmetric drilling should be used |
void |
setDebugMode(boolean mode) Indicates whether debug printouts should be produced. |
void |
setFetchPageEdge(boolean fullfetch) Sets whether entire page edges are fetched. |
void |
setFetchSize(int size) Sets fetch buffer size |
void |
setHierarchicalDrilling(boolean mode) Specifies whether hierarchical drilling should be used exclusively. |
void |
setLocale(java.util.Locale loc) |
void |
setMetadataManager(MetadataManager manager) Specifies the MetadataManager object that is to be associated with this QueryManager . |
void |
setName(java.lang.String n) Specifies the name of this QueryManager object. |
void |
setPersistableAttributes(PersistableAttributes attrs) |
void |
setPrintQueryState(boolean mode) Indicates whether query state printouts should be produced on every query operation. |
void |
setSeparatePage(boolean separate) Indicates whether pages are fetched as separate cursors |
void |
setSession(BISession session) Set the BISession object |
void |
setXML( context, java.lang.Object node) |
void |
setXMLValidated(boolean validate) Specifies whether the QueryManager validates XML against its DTD. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QueryManager()
Constructor for theQueryManager
.
Example: QueryManager queryManager = new QueryManager ();
public QueryManager(oracle.jbo.ComponentObject dso)
QueryManager
using an existing middle tier (server-side) proxy as a parameter. This constructor is used when cloning. For example, use this class when you have created a middle tier QueryManager
clone first and you want to connect it to a clone on the client-side.dso
- An existing QueryManager
proxy for cloning. For example, the proxy obtained through cloning a middle tier QueryManager
. Subclasses of QueryManager
must override this proxy and pass the argument to the QueryManager
superclass.Method Detail |
public void setSession(BISession session)
session
- User's BISession objectpublic BISession getSession()
public void setLocale(java.util.Locale loc)
public java.util.Locale getLocale()
public int addQuery(Query query)
Query
object to the list of Queries that are tracked by this QueryManager
. This addition lets the newly added Query
object have state and evaluate.addQuery
in interface QueryManager
query
- The Query
object to affiliate with the middle tier state.Query
object.public void removeQuery(Query query)
Query
object from the list of Query
objects that are tracked by this QueryManager
. Also releases the storage that was associated with the removed Query
object.removeQuery
in interface QueryManager
query
- The Query
object to remove.public java.util.Enumeration getQueries()
Query
objects that are being tracked by this QueryManager
object.getQueries
in interface QueryManager
Query
objects.public Query createQuery()
Query
object.createQuery
in interface QueryManager
Query
object. Returns null
if the call failed.public void initialize(java.util.Hashtable env)
public void setXMLValidated(boolean validate)
QueryManager
validates XML against its DTD.validate
- true
indicates that XML should be validated; false
indicates that the QueryManager
should apply the XML without testing for validity.public boolean isXMLValidated()
QueryManager
validates XML against its DTD.true
if the QueryManager
validates XML; false
if the QueryManager
applies XML without validation.public PersistableAttributes getPersistableAttributes(PersistableAttributes oldAttrs)
public void setPersistableAttributes(PersistableAttributes attrs)
public java.lang.String getTagName()
public java.lang.Object getXML( con)
public void setXML( context, java.lang.Object node)
public MetadataManager getMetadataManager()
MetadataManager
object that is currently associated with this QueryManager
object.MetadataManager
object or null.public void setMetadataManager(MetadataManager manager)
MetadataManager
object that is to be associated with this QueryManager
. In order to function properly, the QueryManager
requires that this property be set. Note this method may throw a QueryRuntimeException.manager
- A reference to the MetadataManager
that provides access to the logical database that the QueryManager will use when supplying data to its Query
objects.public void addErrorHandler(ErrorHandler eh)
QueryManager
bean. The error handler will be called when the visual component traps an error from other parts of the system.addErrorHandler
in interface ErrorHandlerCallback
eh
- Error handler object.public void removeErrorHandler()
QueryManager
bean.removeErrorHandler
in interface ErrorHandlerCallback
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
QueryManager
object.QueryManager
.java.lang.CloneNotSupportedException
- If a QueryManager
cannot be cloned.public void setName(java.lang.String n)
QueryManager
object.n
- The name of this QueryManager
object.public java.lang.String getName()
QueryManager
object.getName
in interface QueryManager
QueryManager
object.public void setDebugMode(boolean mode)
mode
- true
produces debug printouts on both client and server; false
does not produce debug printouts.public boolean isDebugMode()
true
indicates that debug printouts will be produced; false
indicates that debug printouts will not be produced.public void setPrintQueryState(boolean mode)
mode
- true
produces state printouts on server; false
does not produce state printouts.public boolean isPrintQueryState()
true
indicates that state printouts will be produced; false
indicates that state printouts will not be produced.public void setFetchSize(int size)
size
- integer indicating number of values to fetch per buffer read for cursors. -1 turns partial fetching off and fetches the entire cursorpublic int getFetchSize()
public void setFetchPageEdge(boolean fullfetch)
true
.fullfetch
- if true
, the page edge is fully fetched. If not, partial fetching applies.public boolean getFetchPageEdge()
true
if entire page edges are fetched.public void setSeparatePage(boolean separate)
separate
- code>true to separate page cursors from the data cursorpublic boolean isSeparatePage()
true
if page cursors are separate false
if the entire query is one cursorpublic void setAsymmetricDrilling(boolean asymmetric)
asymmetric
- true
to use asymmetric drillingpublic boolean isAsymmetricDrilling()
true
if asymmetric drilling is set; false
if asymmetric drilling is not set.public void setHierarchicalDrilling(boolean mode)
hierDrill
- true
indicates always use hierarchical drilling; false
indicates drilling is not restricted exclusively to hierarchical.public boolean isHierarchicalDrilling()
true
if hierarchical drilling is used exclusively; false
if hierarchical drilling is not set exclusively.public boolean cancel()
cancel
in interface QueryManager
true
if the code was found to send an interrupt; false
if the code did not send an interrupt.public void closeQueries(com.sun.java.util.collections.List queryList)
Query
objects. Note this method may throw a QueryRuntimeException.closeQueries
in interface QueryManager
queryList
- List of the query objects to close.public void close()
Query
objects, releases the storage that is associated with those objects, and shuts down the QueryManager
. Note this method may throw a QueryRuntimeException.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |