|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.common.PropertiesHelper
oracle.jbo.common.RowSetHelper
oracle.jbo.server.ViewRowSetImpl
oracle.jbo.server.EntityRowSetImpl
public class EntityRowSetImpl
EntityRowSetImpl represents the ResultSet of an association.
Field Summary | |
---|---|
static byte |
ENTITYROWSET_INCONSISTENT
|
static byte |
ENTITYROWSET_NEW_AND_MODIFIED
|
static byte |
ENTITYROWSET_UNINITIALIZED
|
static byte |
mDefaultMode
|
Fields inherited from class oracle.jbo.common.RowSetHelper |
---|
listeners, mMgmtListeners, mName |
Fields inherited from class oracle.jbo.common.PropertiesHelper |
---|
mProperties |
Fields inherited from interface oracle.jbo.RowSet |
---|
COPY_OPT_ALL_ROWS, COPY_OPT_LIMIT_RANGE, FORWARD_ONLY, RANGE_PAGING, RANGE_PAGING_AUTO_POST, RANGE_PAGING_INCR, 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, XML_PASSIVATION_USE |
Constructor Summary | |
---|---|
protected |
EntityRowSetImpl(ViewObjectImpl vo,
java.lang.String name,
AssociationDefImpl assocDesc,
java.lang.Object[] paramValues)
Constructs a EntityRowSetImpl for a ViewRowSetImpl. |
Method Summary | |
---|---|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
void |
clear()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
Row[] |
findByEntity(int eRowHandle,
int maxNumOfRows)
Finds and returns View rows that use the Entity row, identified by the Entity row handle, eRowHandle . |
Row[] |
findByKey(Key key,
int maxNumOfRows)
Finds and returns View rows that match the specified key. |
Row[] |
findByKey(Key key,
int maxNumOfRows,
boolean skipWhere)
|
Row[] |
findInCacheByKey(Key key,
int maxNumOfRows)
|
java.lang.String |
getElementTagName()
|
java.lang.String |
getFullName()
|
java.util.Hashtable |
getProperties()
Returns all Properties |
boolean |
isAssociationConsistent()
Returns the association-consistent flag for this row set. |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
void |
readXML(Element elem,
int depthCount)
|
void |
readXML(Element elem,
int depthCount,
XSLStylesheet xslt)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
void |
setAssociationConsistent(boolean isConsistent)
Sets the association-consistent flag for this row set. |
int |
size()
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
void |
writeAsXml(XmlOutput out,
Node node,
Criteria rules)
|
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,
java.util.HashMap voAttrRules)
Renders data in a canonical XML-format. |
Node |
writeXML(long options,
java.util.HashMap map,
XSLStylesheet xslt)
|
Methods inherited from class oracle.jbo.common.RowSetHelper |
---|
fireMgmtIteratorClosed, fireMgmtIteratorReset, fireNavigationEvent, fireRangeRefreshed, fireRangeScrolled, fireRowDeleted, fireRowInserted, fireRowUpdated, getListeners, getListenersList, getManagementListenersList, getName, hasListeners, hasManagementListeners, setName, updateNamedWhereParamValues |
Methods inherited from class oracle.jbo.common.PropertiesHelper |
---|
closeObject, getImageLoc, getProperty, isReadOnly, refreshProperties, refreshProperty, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
equals, hashCode |
Methods inherited from interface oracle.jbo.RowSet |
---|
getName |
Methods inherited from interface oracle.jbo.Properties |
---|
getProperty, refreshProperty |
Methods inherited from interface oracle.jbo.XMLInterface |
---|
readXML, readXML, writeXML, writeXML, writeXML, writeXML |
Field Detail |
---|
public static final byte ENTITYROWSET_UNINITIALIZED
public static final byte ENTITYROWSET_INCONSISTENT
public static final byte ENTITYROWSET_NEW_AND_MODIFIED
public static byte mDefaultMode
Constructor Detail |
---|
protected EntityRowSetImpl(ViewObjectImpl vo, java.lang.String name, AssociationDefImpl assocDesc, java.lang.Object[] paramValues)
vo
- the ViewObjectImplassocDesc
- the associationparamValues
- parametersMethod Detail |
---|
public java.util.Hashtable getProperties()
getProperties
in interface Properties
getProperties
in class ViewRowSetImpl
public void setAssociationConsistent(boolean isConsistent)
ViewRowSetImpl
See ViewObjectImpl.setAssociationConsistent
for details.
setAssociationConsistent
in interface RowSet
setAssociationConsistent
in class ViewRowSetImpl
isConsistent
- indicates whether association-consistency
should be on or not.ViewObjectImpl.setAssociationConsistent(boolean)
public boolean isAssociationConsistent()
ViewRowSetImpl
See ViewObjectImpl.isAssociationConsistent
for details.
isAssociationConsistent
in interface RowSet
isAssociationConsistent
in class ViewRowSetImpl
ViewObjectImpl.isAssociationConsistent()
public int size()
size
in interface java.util.Collection
size
in interface java.util.Set
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.Set
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.Set
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.Set
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.Set
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
toArray
in interface java.util.Set
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.Set
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.Set
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.Set
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
addAll
in interface java.util.Set
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.Set
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.Set
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.Set
public Row[] findInCacheByKey(Key key, int maxNumOfRows)
findInCacheByKey
in class ViewRowSetImpl
public Row[] findByKey(Key key, int maxNumOfRows)
ViewRowSetImpl
See
for details.
RowIterator.findByKey(oracle.jbo.Key, int)
findByKey
in interface RowIterator
findByKey
in class ViewRowSetImpl
key
- the key to match.maxNumOfRows
- the maximum size of the array to return,
or -1 to return all rows.
public Row[] findByKey(Key key, int maxNumOfRows, boolean skipWhere)
findByKey
in class ViewRowSetImpl
public Row[] findByEntity(int eRowHandle, int maxNumOfRows)
RowIterator
eRowHandle
.
findByEntity
in interface RowIterator
findByEntity
in class ViewRowSetImpl
eRowHandle
- the Entity row handle.maxNumOfRows
- the maximum size of the row array to return,
or -1 to return all rows.
public java.lang.String getFullName()
public final Node writeXML(long options, java.util.HashMap voAttrRules)
XMLInterface
ViewObjectImpl
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 XMLInterface
options
- a set of bit flags that will control the writeXMLvoAttrRules
- HashMap containing Definition names of ViewObjects and an
array of AttributeDef to render for a ViewObject of that definition type.public Node writeXML(int depthCount, long options)
XMLInterface
ViewObjectImpl
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 XMLInterface
depthCount
- represents to what level the rendering should recurse.options
- a set of bit flags that will control the writeXML
behavior.public Node writeXML(long options, java.util.HashMap map, XSLStylesheet xslt)
writeXML
in interface XMLInterface
public Node writeXML(int depthCount, long options, XSLStylesheet xslt)
writeXML
in interface XMLInterface
public void readXML(Element elem, int depthCount, XSLStylesheet xslt)
readXML
in interface XMLInterface
public java.lang.String getElementTagName()
getElementTagName
in interface XmlSerializable
public void writeAsXml(XmlOutput out, Node node, Criteria rules)
writeAsXml
in interface XmlSerializable
public void readXML(Element elem, int depthCount)
readXML
in interface XMLInterface
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |