|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.common.BaseObject | +--oracle.jbo.server.java.util.AbstractCollection | +--oracle.jbo.server.java.util.AbstractList | +--oracle.jbo.server.QueryCollection
The QueryCollection represents the result of executing a
ViewRow
.
The QueryCollection object will use the meta-data provided to
"pull-apart" the rows of data that come back and locate/construct
the appropriate Entity
row definition.
In essense, it is a collection of ViewRow
's.
Fields inherited from class oracle.jbo.server.java.util.AbstractList |
modCount |
Fields inherited from class oracle.jbo.common.BaseObject |
TRACE_EVERY_ALLOC,
TRACE_NONE,
TRACE_OCCASIONAL,
TRACE_UNINITIALIZED |
Method Summary | |
void |
add(int index,
java.lang.Object row)
Add a row to the QueryCollection at the specified index. |
void |
afterActivateElement(oracle.jbo.pcoll.PCollPersistable elem)
|
protected void |
afterRemove(EntityImpl entity)
Removes the ViewRow from cache and collection |
void |
beforePassivateElement(oracle.jbo.pcoll.PCollPersistable elem)
|
protected void |
finalize()
|
java.lang.Object |
get(int index)
Return the data at the index. |
protected int[] |
getIndexes(EntityImpl row)
|
protected oracle.jbo.server.MapInfo[] |
getMapInfo()
|
java.lang.String |
getName(java.lang.Object accessKey)
|
long |
getNextObjId()
|
protected Row[] |
getRows(EntityImpl row)
|
oracle.jbo.server.ViewRowStorage |
getRowStorageFromId(long id)
|
int |
indexOf(java.lang.Object row)
|
void |
printActiveObjsTab(java.io.PrintWriter pw)
|
void |
printColl(java.io.PrintWriter pw,
int printFlag)
|
void |
printRUChain(java.io.PrintWriter pw)
|
java.lang.Object |
remove(int index)
Remove a row from the QueryCollection at the specified index. |
protected void |
removeReference(ViewRowImpl row,
EntityImpl entity)
Remove entity references, i.e, set references to null |
java.lang.Object |
set(int index,
java.lang.Object element)
Set the data at the index. |
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 oracle.jbo.server.java.util.AbstractList |
add,
addAll,
equals,
indexOf,
iterator,
lastIndexOf,
lastIndexOf,
listIterator,
listIterator,
removeRange |
Methods inherited from class oracle.jbo.server.java.util.AbstractCollection |
addAll,
clear,
contains,
containsAll,
isEmpty,
remove,
removeAll,
retainAll,
toArray,
toString |
Methods inherited from class oracle.jbo.common.BaseObject |
dumpState,
setTraceLevel,
setTraceWriter |
Methods inherited from class java.lang.Object |
clone,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public void beforePassivateElement(oracle.jbo.pcoll.PCollPersistable elem)
public void afterActivateElement(oracle.jbo.pcoll.PCollPersistable elem)
public long getNextObjId()
protected oracle.jbo.server.MapInfo[] getMapInfo()
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).
public java.lang.Object get(int index)
index
- the row index to use.public oracle.jbo.server.ViewRowStorage getRowStorageFromId(long id)
public java.lang.Object set(int index, java.lang.Object element)
index
- the row index to use.element
- the value to put there.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 java.lang.Object remove(int index)
index
- the deletion index.protected int[] getIndexes(EntityImpl row)
row
- to locate view rows which reference it.public int indexOf(java.lang.Object row)
protected void afterRemove(EntityImpl entity)
protected Row[] getRows(EntityImpl row)
protected void removeReference(ViewRowImpl row, EntityImpl entity)
protected void updateReference(ViewRowImpl row, EntityImpl entity, int entityIndex)
public java.lang.String getName(java.lang.Object accessKey)
public void printActiveObjsTab(java.io.PrintWriter pw)
public void printRUChain(java.io.PrintWriter pw)
public void printColl(java.io.PrintWriter pw, int printFlag)
protected void finalize()
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |