|
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.server.QueryCollection
public final class QueryCollection
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
Constructor Summary | |
---|---|
QueryCollection(ViewObjectImpl vo)
|
|
QueryCollection(ViewRowSetImpl rowSet)
|
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object row)
Add a row to the QueryCollection at the specified index. |
void |
afterActivateElement(PCollection pcoll,
PCollPersistable elem)
|
protected void |
afterRemove(EntityImpl entity)
Removes the ViewRow from cache and collection |
void |
beforePassivateElement(PCollection pcoll,
PCollPersistable elem)
|
boolean |
cancelQuery()
|
protected Row[] |
findMatchingRows(java.lang.Object[] keyValues,
AttributeDefImpl[] keyAttrs)
|
int |
getCollectionSize()
|
java.lang.Object[] |
getFilterParamValues(ViewRowImpl viewRow,
java.lang.Object[] newVals,
int[] newValIndices)
|
ArrayList |
getNewRowTracker()
|
long |
getNextObjId()
|
int |
getNumUserParams()
|
ResultSet |
getResultSet()
|
RowFilter |
getRowFilter()
|
protected Row[] |
getRows(EntityImpl row)
|
protected Row[] |
getRows(Key ky)
|
ViewRowSetImpl |
getRowSetImpl()
|
oracle.jbo.server.ViewRowStorage |
getRowStorageFromId(long id)
|
int |
indexOf(java.lang.Object row)
|
boolean |
isExecuted()
|
void |
printActiveObjsTab(PrintWriter pw)
|
void |
printColl(PrintWriter pw,
int printFlag)
|
void |
printRUChain(PrintWriter pw)
|
java.lang.Object |
remove(int index)
Remove a row from the QueryCollection at the specified index. |
java.lang.Object |
removeAndRetain(int index)
|
java.lang.Object |
removeFromCollection(int index)
|
protected void |
removeReference(ViewRowImpl row,
EntityImpl entity)
Remove entity references, i.e, set references to null |
int |
size()
The size of the Collection. |
protected void |
updateReference(ViewRowImpl row,
EntityImpl entity,
int entityIndex)
Set reference entity based on foreign keys |
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 QueryCollection(ViewObjectImpl vo)
public QueryCollection(ViewRowSetImpl rowSet)
Method Detail |
---|
protected Row[] findMatchingRows(java.lang.Object[] keyValues, AttributeDefImpl[] keyAttrs)
protected Row[] getRows(Key ky)
public void add(int index, java.lang.Object row)
index
- the insertion index or -ve to insert at the end.row
- a ViewRow row to be inserted into the QueryCollection.public ViewRowSetImpl getRowSetImpl()
public RowFilter getRowFilter()
public long getNextObjId()
getNextObjId
in interface PCollListener
public oracle.jbo.server.ViewRowStorage getRowStorageFromId(long id)
public final boolean isExecuted()
protected Row[] getRows(EntityImpl row)
public ArrayList getNewRowTracker()
protected void updateReference(ViewRowImpl row, EntityImpl entity, int entityIndex)
public java.lang.Object[] getFilterParamValues(ViewRowImpl viewRow, java.lang.Object[] newVals, int[] newValIndices)
public ResultSet getResultSet()
public void afterActivateElement(PCollection pcoll, PCollPersistable elem)
afterActivateElement
in interface PCollListener
public void beforePassivateElement(PCollection pcoll, PCollPersistable elem)
beforePassivateElement
in interface PCollListener
public int getNumUserParams()
public int size()
--Calling this method will result in the entire Collection being --brought into memory (in order to give an accurate count of the --rows in it). THIS HAS CHANGED. THE NEW BEHAVIOR IS : We're currently returning only the fetched size of the query collection We could return the correct size, if atleast one row is fetched, however we should NOT return correct size if no rows are fetched (and thereby getting all rows in memory as AbstractList.hash() performs hasNext() that performs size() leading to fetching all row at the very beginning of iteration). - modified during move to AbstractList from Vector.
public int indexOf(java.lang.Object row)
public int getCollectionSize()
public java.lang.Object remove(int index)
index
- the deletion index.
public java.lang.Object removeFromCollection(int index)
public java.lang.Object removeAndRetain(int index)
protected void afterRemove(EntityImpl entity)
protected void removeReference(ViewRowImpl row, EntityImpl entity)
public void printActiveObjsTab(PrintWriter pw)
public void printRUChain(PrintWriter pw)
public void printColl(PrintWriter pw, int printFlag)
public boolean cancelQuery()
|
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 |