|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
java.util.AbstractMap
oracle.jbo.common.JboAbstractMap
oracle.jbo.common.ws.WSObject
oracle.jbo.common.ws.WSAMComponent
oracle.jbo.common.ws.WSRowSetIteratorBase
oracle.jbo.common.ws.WSViewObjectImpl
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Field Summary |
| Fields inherited from class oracle.jbo.common.ws.WSRowSetIteratorBase |
mListeners, mMgmtListeners, mName |
| Fields inherited from interface oracle.jbo.RowSet |
FORWARD_ONLY, RANGE_PAGING, RANGE_PAGING_AUTO_POST, SCROLLABLE |
| Fields inherited from interface oracle.jbo.RowIterator |
ITER_MODE_LAST_PAGE_FULL, ITER_MODE_LAST_PAGE_PARTIAL, SLOT_BEFORE_FIRST, SLOT_BEYOND_LAST, SLOT_DELETED, SLOT_VALID |
| Fields inherited from interface oracle.jbo.XMLInterface |
XML_IGNORE_DEPTH_COUNT, XML_OPT_ALL_ROWS, XML_OPT_ASSOC_CONSISTENT, XML_OPT_CHANGES_ONLY, XML_OPT_LIMIT_RANGE |
| Method Summary | |
AttributeDef |
addDynamicAttribute(java.lang.String attrName)Adds a dynamic attribute (an AttributeDefImpl) to this View Object's row set. |
void |
applyViewCriteria(ViewCriteria criteria)Applies the view criteria to this View Object. |
void |
clearCache()Clears the View Object cache. |
void |
closeRowSet()Closes the Row Set. |
void |
closeRowSetIterator()Closes this row set iterator. |
RowSet |
createDetailRowSet(java.lang.String rsName, java.lang.String linkDefName)Creates a detail Row Set. |
RowSet |
createRowSet(java.lang.String name)Creates and returns a new (secondary) Row Ret for this View Object. |
RowSetIterator |
createRowSetIterator(java.lang.String name)Creates an iterator for the Row Set. |
ViewCriteria |
createViewCriteria()Creates a new view criteria (that is, "Query by Example") object for this View Object. |
void |
executeQuery()Executes the View Object's query. |
void |
executeQuery2(boolean resetCurrency, boolean force) |
AttributeDef |
findAttributeDef(java.lang.String name)Gets an attribute definition, given its name. |
RowSetIterator |
findOrCreateRowSetIterator(java.lang.String name) |
RowSet |
findRowSet(java.lang.String name)Gets the named Row Set that was created at runtime for this View Object. |
RowSetIterator |
findRowSetIterator(java.lang.String name)Gets the named Row Set Iterator that was created at runtime for this Row Set. |
AttributeDef |
findViewLinkAccessor(ViewLink vl)Finds the view link accessor attribute. |
WSRowSetImpl |
findWSRowSet(java.lang.String name) |
byte |
getAccessMode() |
AccTravDef |
getAccessorTraversalDef() |
ApplicationModule |
getApplicationModule()Gets the Row Set's Application Module that contains this Row Set. |
AttributeDef[] |
getAttrDefsForEntityAttr(java.lang.String eoName, java.lang.String eoAttrName)Returns the definitions of view attributes that are mapped to the entity attribute identified by the entity name (the eoName parameter) and the entity attribute name (the eoAttrName). |
int |
getAttributeCount()Returns the number of defined attributes. |
AttributeDef |
getAttributeDef(int index)Gets an attribute definition, given its index. |
AttributeDef[] |
getAttributeDefs()Gets the defined attributes. |
int |
getAttributeIndexOf(java.lang.String name)Finds the index (0-based) of the named attribute. |
java.lang.String |
getDefFullName()Returns the fully qualified name of the structure's base definition. |
java.lang.String |
getDefName()Returns the structure's base definition name (short form). |
RowSet[] |
getDetailRowSets()Gets an array of detail Row Sets for which this Iterator is the master. |
long |
getEstimatedRowCount()Counts the number of rows in the collection defined by the View Object's query. |
java.lang.String |
getFullName()Returns the structure's fully qualified name. |
java.lang.Object |
getImplObject() |
int |
getIterMode()Gets the current iteration mode. |
AttributeDef[] |
getKeyAttributeDefs()Returns the attribute definitions that make up the constituents of the Key object for Rows returned from this View Object. |
RowSetIterator[] |
getMasterRowSetIterators()Return all controlling masters of this Row Set. |
int |
getMaxFetchSize()Maximum number of rows to fetch for this View Object. |
java.lang.String |
getOrderByClause()Returns the query's ORDER BY clause. |
WSObject |
getParent() |
java.util.Hashtable |
getProperties()Gets the table of properties. |
java.lang.Object |
getProperty(java.lang.String hintName)Retrieves the specified property, if it exists. |
java.lang.String |
getQuery()Returns the query statement. |
java.lang.String |
getQueryOptimizerHint()Returns Query Optimizer Hint set for this ViewObject or for its definition object. |
int |
getRangeSize()Gets the size of the Row Set Iterator range. |
int |
getRangeStart()Gets the absolute row index of the first row in the Row Set Iterator range. |
RowSet |
getRowSet()Gets the Row Set that this Iterator belongs to. |
RowSetIterator[] |
getRowSetIterators()Gets all Row Set Iterators that belong to this Row Set. |
RowSet[] |
getRowSets()Gets all Row Sets that belong to this View Object. |
java.lang.Object |
getSyncLock()Gets the locking object for this Row Set Iterator. |
ViewCriteria |
getViewCriteria()Gets the view criteria for this View Object. |
java.lang.String[] |
getViewLinkNames()Constructs an array of names of View Links that involve this View Object. |
ViewObject |
getViewObject()Gets the View Object that contains this Row Set. |
java.lang.String |
getWhereClause()Gets the query's WHERE clause. |
java.lang.Object[] |
getWhereClauseParams()Gets the bind variable values to be used with the View Object's where-clause. |
boolean |
hasAccessorTraversalDef() |
java.lang.Object |
invokeExportedMethod(java.lang.String methodName, java.lang.String[] argTypes, java.lang.Object[] args) |
boolean |
isAssociationConsistent()Tests if association-consistent mode is on. |
boolean |
isExecuted()Returns true if the current ViewObject's query has been executed for this Row Set. |
boolean |
isExecuteQuery() |
boolean |
isFetchComplete()Tests if the query result set has been fetched to the end. |
boolean |
isForwardOnly()Tests if the Row Set is constrained to sequential access. |
boolean |
isInternal()Returns whether this View Object was created internally by BC4J or by an explicit user request. |
boolean |
isMaxFetchSizeExceeded()Tests if the query result has been fetched to the end and the end was reached due to hitting the maxFetchSize limit |
boolean |
isOnLine() |
boolean |
isReadOnly()Tests if the View Object is read-only. |
boolean |
isRefreshDataModel() |
boolean |
isRowValidation()Gets the validation flag on this iterator. |
AttributeDef |
lookupAttributeDef(java.lang.String name)Gets an attribute definition, given its name. |
void |
markForError(java.lang.Exception ex, boolean hasImplObject) |
void |
readRowXML(Element elem, int depthCount)Reads the data in XML form (in the format as generated by writeXML()) by finding a row that matches the key in the given XML and then reading in that row. |
void |
readRowXML(Element elem, int depthCount, XSLStylesheet xslt) |
void |
readXML(Element elem, int depthCount) |
void |
readXML(Element elem, int depthCount, XSLStylesheet xslt) |
void |
refreshDataModel() |
void |
refreshDataModel2(boolean resetCurrency, boolean force) |
java.lang.Object |
refreshProperty(java.lang.String hintName)Retrieves the specified property, if it exists. |
void |
remove()Deletes this component. |
boolean |
removeMasterRowSetIterator(RowSetIterator masterRSI)Removes a master Row Set Iterator. |
void |
requestEstimatedRowCount() |
int |
scrollRange(int amount)Moves the Row Set Iterator range up or down a given number of rows. |
int |
scrollRangeTo(Row row, int index)Scrolls the range to place a given row at a given range index. |
int |
scrollToRangePage(int amount)Moves the row set range start to the given page index where every page consists of RangeSize number of rows. |
void |
setAccessMode(byte accessMode)Constrains the row access based on the following settings: |
void |
setAccessorTraversalByNamePaths(java.lang.String[] namePaths) |
void |
setAccessorTraversalDef(AccTravDef accTravDef) |
void |
setAssociationConsistent(boolean isAssociationConsistent)Sets the association-consistent flag for this Row Set. |
void |
setForwardOnly(boolean isForwardOnly)Constrains the Row Set to sequential access. |
void |
setImplObject(java.lang.Object o) |
void |
setIterMode(int mode)Sets the iteration mode for this Row Iterator. |
boolean |
setMasterRowSetIterator(RowSetIterator masterRSI)Sets the master iterator. |
void |
setMaxFetchSize(int max)Maximum number of rows to fetch for this View Object. |
void |
setOrderByClause(java.lang.String expr)Sets the ORDER BY clause of the View Object's query statement. |
void |
setQueryOptimizerHint(java.lang.String hintText)If this ViewObject does not have an expert mode query, then this hint is added to the select clause of the SQL for this ViewObject before the columns are listed e.g., SELECT \/*+ <hintText> *\/ columns... |
int |
setRangeSize(int size)Modifies the size of the Row Set Iterator range. |
int |
setRangeStart(int start)Moves the Row Set Iterator range. |
void |
setRowValidation(boolean flag)Sets the validation flag on this iterator. |
void |
setWhereClause(java.lang.String cond)Sets a WHERE clause bind value of the View Object's query statement. |
void |
setWhereClauseParam(int index, java.lang.Object value)Specifies a single bind variable value to use with the View Object's where-clause. |
void |
setWhereClauseParams(java.lang.Object[] values)Specifies the bind variable values to use with the View Object's where-clause. |
Node |
writeXML(int depthCount, long options)Renders data in a canonical XML-format. |
Node |
writeXML(int depthCount, long options, XSLStylesheet xslt) |
Node |
writeXML(long options, com.sun.java.util.collections.HashMap voAttrMap)Renders data in a canonical XML-format. |
Node |
writeXML(long options, com.sun.java.util.collections.HashMap voAttrMap, XSLStylesheet xslt) |
| Methods inherited from class oracle.jbo.common.ws.WSObject |
get, getId |
| Methods inherited from class oracle.jbo.common.JboAbstractMap |
entrySet, equals, hashCode, internalGet |
| Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, isEmpty, keySet, put, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.jbo.StructureDef |
getName |
| Methods inherited from interface oracle.jbo.RowSet |
getName |
| Methods inherited from interface oracle.jbo.RowSetIterator |
addManagementListener, getEstimatedRangePageCount, getFilteredRows, getFilteredRowsInRange, getNextRangeSet, getPreviousRangeSet, isNameGenerated, removeManagementListener |
| Methods inherited from interface oracle.jbo.NavigatableRowIterator |
addListener, removeListener |
| Methods inherited from interface oracle.jbo.ComponentObject |
getName |
| Method Detail |
public boolean isOnLine()
public WSObject getParent()
getParent in class WSObjectpublic java.lang.Object getImplObject()
getImplObject in class WSObjectpublic void setImplObject(java.lang.Object o)
setImplObject in class WSObject
public void markForError(java.lang.Exception ex,
boolean hasImplObject)
markForError in class WSObjectpublic AttributeDef addDynamicAttribute(java.lang.String attrName)
ViewObjectDynamic attributes are typeless, in that the application can set the attribute value to any object. You can use a dynamic attribute to store information created at runtime that you want to store with the row data. It is used only by the View Object that created it. Attributes can be any Serializable object.
This method should not be overridden.
addDynamicAttribute in interface ViewObjectattrName - the name of the dynamic attribute.public void setWhereClause(java.lang.String cond)
ViewObjectBind variables can be specified using '?' as a place-holder for the value.
The new WHERE clause does not take effect until ViewObjectImpl.executeQuery() is called. For an example usage of this method, see ViewObjectImpl.setWhereClauseParam(int, Object).
Note that calling setWhereClause() does not clear the previous settings of WHERE clause parameters. To reset WHERE clause parameters in the middle tier, call ViewObjectImpl.setWhereClauseParams(Object[]) explicitly with a null value. For example:
vo.setWhereClauseParams(null);This method should not be overridden.
setWhereClause in interface ViewObjectcond - a WHERE clause, but excluding the 'WHERE' keyword.public java.lang.String getWhereClause()
ViewObjectThis WHERE clause is obtained from the View Object instance. In the middle tier, to get the WHERE clauses built from the View Object instance, the View definition, and the detail View Objects, use ViewObjectImpl.buildWhereClause(java.lang.StringBuffer, int)
getWhereClause in interface ViewObjectpublic void setOrderByClause(java.lang.String expr)
ViewObjectViewObjectImpl.executeQuery() is called.
This method should not be overridden.
setOrderByClause in interface ViewObjectpublic java.lang.String getOrderByClause()
ViewObjectThis method should not be overridden.
getOrderByClause in interface ViewObjectpublic java.lang.String getQuery()
ViewObjectViewObjectImpl.getUserDefinedQuery() this method will return a SQL statement regardless of whether the query was created in Expert or non-Expert Mode.getQuery in interface ViewObjectpublic boolean isReadOnly()
ViewObjectA view is read-only if it does not have Primary Keys or if all its entity references are reference-only.
This method should not be overridden.
isReadOnly in interface ViewObjecttrue if this View Object is read-only; false if it is updateable.public RowSet createRowSet(java.lang.String name)
ViewObjectcreateRowSet in interface ViewObjectname - the name for the new RowSet.public RowSet[] getRowSets()
ViewObjectgetRowSets in interface ViewObjectpublic RowSet findRowSet(java.lang.String name)
ViewObjectfindRowSet in interface ViewObjectname - a Row Set name. If null, it returns the the View Object.null if the named Row Set is not not found.public WSRowSetImpl findWSRowSet(java.lang.String name)
public java.lang.String[] getViewLinkNames()
ViewObjectA View Link may use this View Object as either its source or destination. This method should not be overridden.
getViewLinkNames in interface ViewObjectpublic ViewCriteria createViewCriteria()
ViewObjectA view criteria is a more structured way of creating a SQL query WHERE clause. After setting various conditions for the view criteria object, the application can call applyViewCriteria
This method should not be overridden.
createViewCriteria in interface ViewObjectViewCriteria, ViewObject.applyViewCriteria(ViewCriteria)public void applyViewCriteria(ViewCriteria criteria)
ViewObjectView criteria rows are ORed together, while entries in the same row are ANDed together.
This method should not be overridden.
applyViewCriteria in interface ViewObjectcriteria - a view criteria object.public ViewCriteria getViewCriteria()
ViewObjectThis method should not be overridden.
getViewCriteria in interface ViewObjectnull if none is specified.public AttributeDef findViewLinkAccessor(ViewLink vl)
ViewObjectfindViewLinkAccessor in interface ViewObjectvl - the view link whose accessor is being sought.null if not.public AttributeDef[] getKeyAttributeDefs()
ViewObjectThis method is used to pass AttributeDef[] to the Key.Key(String, AttributeDef[]) constructor to parse the constituent-bytes and convert them into value-objects that make up the Key.
Use this method to find out how the key is composed for the View row. The View Object's key is a composite key, consisting of view attributes mapped to the primary keys of its Entity Objects.
getKeyAttributeDefs in interface ViewObject
public AttributeDef[] getAttrDefsForEntityAttr(java.lang.String eoName,
java.lang.String eoAttrName)
ViewObjecteoName parameter) and the entity attribute name (the eoAttrName).
Note that it returns an array because more than one View Object attribute may be mapped to one entity attribute.
This method can be used to identify view attributes that map into a particular entity object attribute. In particular, if a validation error fails on an entity attribute, this method can be used to find view attributes that map into that entity attribute.
getAttrDefsForEntityAttr in interface ViewObjecteoName - fully qualified name of the entity object.eoAttrName - entity object attribute name.public void clearCache()
ViewObjectclearCache in interface ViewObjectpublic int getMaxFetchSize()
ViewObjectgetMaxFetchSize in interface ViewObjectpublic void setMaxFetchSize(int max)
ViewObjectPassing -1 to this method will retrieve an unlimited number of rows. This is the default.
Passing 0 to this method will cause the database query not to be executed. The View Object will initially work with an empty row set. If you want to execute query later, call setMaxFetchSize again with a non-zero argument, then call executeQuery().
setMaxFetchSize in interface ViewObjectpublic void setQueryOptimizerHint(java.lang.String hintText)
ViewObjectsetQueryOptimizerHint in interface ViewObjectpublic java.lang.String getQueryOptimizerHint()
ViewObjectgetQueryOptimizerHint in interface ViewObjectpublic boolean isInternal()
ViewObjectisInternal in interface ViewObject
public void readRowXML(Element elem,
int depthCount)
ViewObjectThe depthcount parameter represents to what level the rendering should recurse. A depthcount of zero (0) means do not traverse any View Links while rendering. One (1) means traverse the View Links on this object but no View Links thereafter, and so on.
readRowXML in interface ViewObject
public void readRowXML(Element elem,
int depthCount,
XSLStylesheet xslt)
readRowXML in interface ViewObjectpublic AttributeDef[] getAttributeDefs()
StructureDefgetAttributeDefs in interface StructureDefpublic int getAttributeCount()
StructureDefgetAttributeCount in interface StructureDefpublic AttributeDef findAttributeDef(java.lang.String name)
StructureDeffindAttributeDef in interface StructureDefname - the name of an AttributeDef.public AttributeDef lookupAttributeDef(java.lang.String name)
StructureDeflookupAttributeDef in interface StructureDefname - the name of an AttributeDef.public AttributeDef getAttributeDef(int index)
StructureDefgetAttributeDef in interface StructureDefindex - the index of an AttributeDef, where the leftmost attribute has index zero.public int getAttributeIndexOf(java.lang.String name)
StructureDefgetAttributeIndexOf in interface StructureDefname - the attribute's name.0 to getAttributeCount() - 1. If the named attribute is not found, it returns -1.public java.lang.String getDefName()
StructureDefgetName() returns the VO's instance name and getDefName() returns the View definition's name.getDefName in interface StructureDefpublic java.lang.String getDefFullName()
StructureDefgetFullName() returns the VO's full instance name and getDefFullName() returns the View definition's full name.getDefFullName in interface StructureDefpublic java.lang.String getFullName()
StructureDefgetFullName in interface StructureDefgetFullName in class WSObjectpublic void remove()
ComponentObjectremove in interface ComponentObjectpublic boolean setMasterRowSetIterator(RowSetIterator masterRSI)
RowSetsetMasterRowSetIterator in interface RowSetmasterRSI - a master Row Set Iterator.true if the operation succeeded.public ViewObject getViewObject()
RowSetIf this Row Set is the result of calling a View Link accessor, the returned View Object is an internal View Object. See .ViewObject.isInternal()
getViewObject in interface RowSetpublic void setWhereClauseParams(java.lang.Object[] values)
RowSetSetting the where-clause bind values through this method does not automatically execute the query. You must call to apply the new bind values.RowSet.executeQuery()
setWhereClauseParams in interface RowSetvalues - an array of bind values. If the View Object is using the JDBC style bindings ("?" for bind variable), values[n] is bound to the bind variable that appears in the n-th order (0 based indexing). If the View Object is using the Oracle style bindings (":1", ":2", etc. for bind variable), values[n] is bound to the bind variable :(n+1), i.e., values[0] is bound to :1, values[1] is bound to :2, etc.
public void setWhereClauseParam(int index,
java.lang.Object value)
RowSetSetting the where-clause bind values through this method does not automatically execute the query. You must call to apply the new bind values.RowSet.executeQuery()
setWhereClauseParam in interface RowSetindex - the index identifying the bind variable. If the View Object is using the JDBC style bindings ("?" for bind variable), value is bound to the bind variable that appears in the index-th order (0 based indexing). If the View Object is using the Oracle style bindings (":1", ":2", etc. for bind variable), value is bound to the bind variable :(index+1). If index is 0, value is bound to :1. If index is 1, value is bound to :2.value - the bind variable value.public java.lang.Object[] getWhereClauseParams()
RowSetgetWhereClauseParams in interface RowSetpublic void executeQuery()
RowSetexecuteQuery in interface RowSet
public void executeQuery2(boolean resetCurrency,
boolean force)
executeQuery2 in interface WSRowSetpublic boolean isExecuteQuery()
isExecuteQuery in interface WSRowSetpublic boolean isRefreshDataModel()
isRefreshDataModel in interface WSRowSetpublic void refreshDataModel()
refreshDataModel in interface WSRowSet
public void refreshDataModel2(boolean resetCurrency,
boolean force)
refreshDataModel2 in interface WSRowSetpublic void requestEstimatedRowCount()
requestEstimatedRowCount in interface WSRowSetpublic void setAccessorTraversalByNamePaths(java.lang.String[] namePaths)
setAccessorTraversalByNamePaths in interface WSRowSetpublic void setAccessorTraversalDef(AccTravDef accTravDef)
setAccessorTraversalDef in interface WSRowSetpublic AccTravDef getAccessorTraversalDef()
getAccessorTraversalDef in interface WSRowSetpublic boolean hasAccessorTraversalDef()
hasAccessorTraversalDef in interface WSRowSetpublic boolean isExecuted()
RowSetisExecuted in interface RowSettrue if query has been executed.public RowSetIterator createRowSetIterator(java.lang.String name)
RowSetcreateRowSetIterator in interface RowSetname - the name to be given to the iterator.this.public RowSetIterator[] getRowSetIterators()
RowSetgetRowSetIterators in interface RowSetpublic RowSetIterator findRowSetIterator(java.lang.String name)
RowSetfindRowSetIterator in interface RowSetname - a Row Set Iterator name. If null, it returns the the Row Set.null if the named Row Set Iterator is not not found.public RowSetIterator findOrCreateRowSetIterator(java.lang.String name)
findOrCreateRowSetIterator in interface WSRowSetpublic boolean removeMasterRowSetIterator(RowSetIterator masterRSI)
RowSetremoveMasterRowSetIterator in interface RowSettrue if masterRS was found, false otherwise.public RowSetIterator[] getMasterRowSetIterators()
RowSetgetMasterRowSetIterators in interface RowSetpublic ApplicationModule getApplicationModule()
RowSetStrictly speaking, a Row Set belongs to a View Object and the View Object to an Application Module. This method returns the Application Module that cotains the View Object, which contains this Row Set.
If this Row Set is the result of calling a View Link accessor, this Row Set belongs to an internal View Object (see ). Such an internal View Object belongs to the root Application Module. Put differently, if you call this method on a Row Set which is the result of calling a View Link accessor, it will return the root Application Module.ViewObject.isInternal()
getApplicationModule in interface RowSetpublic long getEstimatedRowCount()
RowSetThis number may fluxuate when the View Object is syncronized with its Entity Object.
getEstimatedRowCount in interface RowSetpublic boolean isForwardOnly()
RowSetisForwardOnly in interface RowSettrue if the Row Set is restricted to forward-only processing.RowSet.setForwardOnly(boolean)public void setForwardOnly(boolean isForwardOnly)
RowSetWhen set to true, a row preceeding the current row cannot be designated as the new current row. This restriction allows performance to be optimized.
setForwardOnly in interface RowSetisForwardOnly - true restricts the Row Set to forward-only processing, false otherwise.public byte getAccessMode()
getAccessMode in interface RowSetRowSet.setAccessMode(byte)public void setAccessMode(byte accessMode)
RowSetSCROLLABLE - if this RowSet should fetch rows and cache the ViewRows in a collection. This is the most flexible mode for accessing rows and working with a RowSet.FORWARD_ONLY - if this RowSet should only provide sequential access to Rows in its collection. The iterators on this RowSet will not allow scrolling back.RANGE_PAGING - if this RowSet should fetch rows in ranges (set using setRangeSize() - the default range size is -1 to fetch all rows), such that on scroll to the the next range or to fetch a row that's not in the current range, it's fetched back from the database using ROWNUM query and the row at the desired index is placed as the first row in the current range.
New rows inserted in this mode will be inserted at the beginning of the rowset to maintain their row indices.
If an attempt is made to get a row outside of the range when a new row is inserted or a row is removed in the current range, then an InvalidOperException is raised as the current set of changes needs to be posted to recalculate the right ROWNUM.
RANGE_PAGING_AUTO_POST - if this rowset should also post any changes in this transaction to access a row out of the current range.Switching access modes for a rowset will not take effect until the next explicit call to executeQuery. Switching accessmode back to SCROLLABLE from any other mode is not allowed.
setAccessMode in interface RowSetaccessMode - One of the four enumerated values SCROLLABLE, FORWARD_ONLY, RANGE_PAGING, RANGE_PAGING_AUTO_POSTpublic void setAssociationConsistent(boolean isAssociationConsistent)
RowSetAssociation-consistent mode allows the user to see data that includes changes not yet posted to database, but at the cost of degraded performance.
When association-consistency is on the Row Set will reflect rows with modified foreign keys, newly created rows, and removed (deleted) rows. When association-consistency is off the user must post pending changes to database to make them visible.
This method is relevant only if this Row Set was one returned from a call to an entity association accessor.
setAssociationConsistent in interface RowSetpublic boolean isAssociationConsistent()
RowSetisAssociationConsistent in interface RowSettrue if un-posted changes are visible, false otherwise.RowSet.setAssociationConsistent(boolean)public void closeRowSet()
RowSetcloseRowSet removes this Row Set from the master Row Set Iterator.closeRowSet in interface RowSetpublic boolean isFetchComplete()
RowSetisFetchComplete in interface RowSettrue if the result set has been fetched to the end.public boolean isMaxFetchSizeExceeded()
RowSetisMaxFetchSizeExceeded in interface RowSettrue if the result set has been fetched to the maxFetchSize limit and there are still more rows in the database.public java.lang.Object getProperty(java.lang.String hintName)
PropertiesgetProperty in interface PropertieshintName - Property name.null.public java.lang.Object refreshProperty(java.lang.String hintName)
PropertiesgetProperty.refreshProperty in interface PropertieshintName - Property name.null.public java.util.Hashtable getProperties()
PropertiesgetProperties in interface Properties
public Node writeXML(int depthCount,
long options)
XMLInterfaceViewObjectImpl and ViewRowImpl implement this method to render data in XML.
Use this method whenever data is required in XML format, either to present a UI (after converting XML data into some HTTP format using a stylesheet) or to pass the data as payload for messages via JMS.
The depthcount parameter represents to what level the rendering should recurse. A depthcount of zero (0) means do not traverse any View Links while rendering. One (1) means traverse the View Links on this object but no View Links thereafter, and so on.
The options parameter represents a set of bit flags that will control the writeXML behavior. The following bit flags have been defined:
EntityImpl.writeXML in interface XMLInterfacedepthCount - represents to what level the rendering should recurse.options - a set of bit flags that will control the writeXML behavior.
public Node writeXML(int depthCount,
long options,
XSLStylesheet xslt)
writeXML in interface XMLInterface
public void readXML(Element elem,
int depthCount)
readXML in interface XMLInterface
public void readXML(Element elem,
int depthCount,
XSLStylesheet xslt)
readXML in interface XMLInterface
public Node writeXML(long options,
com.sun.java.util.collections.HashMap voAttrMap)
XMLInterfaceViewObjectImpl and ViewRowImpl implement this method to render data in XML.
Use this method whenever data is required in XML format, either to present a UI (after converting XML data into some HTTP format using a stylesheet) or to pass the data as payload for messages via JMS.
The options parameter represents a set of bit flags that will control the writeXML behavior. The following bit flags have been defined:
EntityImpl.The voAttrMap parameter represents in a hashmap, the mapping between a given ViewObject's definition type and the corresponding Attributes/accessors to render. A null entry in the hashmap means, render all attributes and accessors of that viewobject type.
writeXML in interface XMLInterfaceoptions - a set of bit flags that will control the writeXMLvoAttrMap - HashMap containing Definition names of ViewObjects and an array of AttributeDef to render for a ViewObject of that definition type.
public Node writeXML(long options,
com.sun.java.util.collections.HashMap voAttrMap,
XSLStylesheet xslt)
writeXML in interface XMLInterfacepublic RowSet getRowSet()
RowSetIteratorgetRowSet in interface RowSetIteratorgetRowSet in class WSRowSetIteratorBasepublic RowSet[] getDetailRowSets()
RowSetIteratorIn a master-detail relationship in an Application Module, the master in reality is a Row Set Iterator. (Though we often speak of master View Object, in reality, it is the Iterator behind the View Object which is playing the role of the master). Whenever the currency of this master Iterator moves, the detail Row Sets are re-executed to show related Rows.
Calling this method returns an array of Row Sets that are related to this Iterator as detail Row Sets.
getDetailRowSets in interface RowSetIteratorgetDetailRowSets in class WSRowSetIteratorBase
public RowSet createDetailRowSet(java.lang.String rsName,
java.lang.String linkDefName)
RowSetIteratorRowSetIterator.getDetailRowSets() for explanation of detail Row Sets.
This method creates a new detail Row Set for this Iterator.
createDetailRowSet in interface RowSetIteratorcreateDetailRowSet in class WSRowSetIteratorBasepublic void closeRowSetIterator()
RowSetIteratorcloseRowSetIterator closes all detail row sets.
After that, it fires a RowSetManagementListener.iteratorClosed() event to its RowSetManagementListener's.
Then, it deregisters this row set iterator from the owning row set, and deregisters all its listeners.
closeRowSetIterator in interface RowSetIteratorcloseRowSetIterator in class WSRowSetIteratorBasepublic java.lang.Object getSyncLock()
RowSetIteratorApplicationModule.getSyncLock() for details.getSyncLock in interface RowSetIteratorgetSyncLock in class WSRowSetIteratorBasepublic int setRangeSize(int size)
RowIteratorThis method takes effect when the next set of data is fetched. For an example usage of setRangeSize, see setRangeStart.
setRangeSize in interface RowIteratorsetRangeSize in class WSRowSetIteratorBasepublic int getRangeSize()
RowIteratorgetRangeSize in interface RowIteratorgetRangeSize in class WSRowSetIteratorBasepublic int getRangeStart()
RowIteratorThe absolute index is 0-based, and is the row's index relative to the entire result set.
getRangeStart in interface RowIteratorgetRangeStart in class WSRowSetIteratorBasepublic int setRangeStart(int start)
RowIteratorNote that the index is 0-based. When you call setRangeStart(1), the range start will be positioned at the second table row.
Another behavior of setRangeStart (and also setRangeSize) is that it tries to position the range, so as to fill up the range as much as possible. For example, assume you have View Object vo focused on a table with four rows (A, B, C, D), and you execute the following code:
vo.setRangeStart(4);
vo.setRangeSize(3);
Row[] rows = vo.getAllRowsInRange();
In this case, rows contains the last 3 rows (B, C, D). When you call setRangeStart(4), it will try to position you at row 4. Since the index is 0-based, it finds that there is no row. Since the default range size is 1, it will position you to the last row (row index 3).
Then, when you call getRangeSize(3), it tries to fill up the range from the bottom. This is why you get (B, C, D).
setRangeStart in interface RowIteratorsetRangeStart in class WSRowSetIteratorBasepublic int scrollRange(int amount)
RowIteratorscrollRange in interface RowIteratorscrollRange in class WSRowSetIteratorBasepublic int scrollToRangePage(int amount)
RowSetIterator(rangeSize * (pageSize-1)) - getRangeStart();
scrollToRangePage in interface RowSetIteratorscrollToRangePage in class WSRowSetIteratorBase
public int scrollRangeTo(Row row,
int index)
RowIteratorscrollRangeTo in interface RowIteratorscrollRangeTo in class WSRowSetIteratorBasepublic void setRowValidation(boolean flag)
RowIteratorsetRowValidation in interface RowIteratorsetRowValidation in class WSRowSetIteratorBasepublic boolean isRowValidation()
RowIteratorisRowValidation in interface RowIteratorisRowValidation in class WSRowSetIteratorBasepublic int getIterMode()
RowIteratorgetIterMode in interface RowIteratorgetIterMode in class WSRowSetIteratorBasepublic void setIterMode(int mode)
RowIteratorsetIterMode in interface RowIteratorsetIterMode in class WSRowSetIteratorBase
public java.lang.Object invokeExportedMethod(java.lang.String methodName,
java.lang.String[] argTypes,
java.lang.Object[] args)
invokeExportedMethod in interface Exportable
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2005, Oracle. All rights reserved.