|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.ViewCriteriaRow
An array containing criteria for the individual attributes of a View Object's WHERE clause.
For an example of a program that uses ViewCriteriaRow methods, see
ViewCriteria
.
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 |
Constructor Summary |
ViewCriteriaRow(ViewCriteria viewCriteria,
java.lang.Object[] data)
Creates a new view criteria row. |
Method Summary |
Type | Method |
---|---|
java.lang.Object |
getAttribute(int index)
Gets the criterion for a given attribute. |
java.lang.Object |
getAttribute(java.lang.String name)
Gets the criterion for a given attribute. |
int |
getAttributeCount()
Counts the attribute criteria in the row. |
int |
getAttributeIndexOf(java.lang.String name)
Gets the attribute index associated with a given attribute name. |
Key |
getKey()
Returns the row's key. |
boolean |
hasData()
|
boolean |
isAttributeUpdateable(int index)
Tests if an attribute is updateable. |
boolean |
isUpperColumns()
Returns the upper-columns flag for this ViewCriteriaRow . |
void |
lock()
Locks the row(s) in the source database table. |
void |
readXML(Element elem,
int depthCount)
|
void |
readXML(Element elem,
int depthCount,
XSLStylesheet xslt)
|
void |
remove()
Removes the row from the source database. |
void |
setAttribute(int index,
java.lang.Object value)
Sets the criterion for a given attribute. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets the criterion for a given attribute. |
void |
setUpperColumns(boolean isUpper)
Sets the upper-columns flag for this ViewCriteriaRow . |
void |
validate()
Invokes the validation methods defined for the row's Entity Object. |
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 map)
Renders data in a canonical XML-format. |
Node |
writeXML(long options,
com.sun.java.util.collections.HashMap map,
XSLStylesheet xslt)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ViewCriteriaRow(ViewCriteria viewCriteria, java.lang.Object[] data)
viewCriteria
- the ViewCriteria
that is to contain the
ViewCriteriaRow
data
- an array of attribute criteria to be initially assigned
to this ViewCriteriaRow
.Method Detail |
public boolean isUpperColumns()
ViewCriteriaRow
.
If this flag is true
, UPPER SQL operator will be applied
to all CHAR/VARCHAR columns when the SQL WHERE clause is generated.
The default is false
.
isSensitive
- flag indicating whether to apply UPPER to columnspublic void setUpperColumns(boolean isUpper)
ViewCriteriaRow
.
If this flag is true
, UPPER SQL operator will be applied
to all CHAR/VARCHAR columns when the SQL WHERE clause is generated.isUpper
- a new flag value for upper'ing columns.public java.lang.Object getAttribute(int index)
getAttribute
in interface AttributeList
index
- the attribute's index.public final java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface AttributeList
name
- the attribute's name.public void setAttribute(int index, java.lang.Object value)
setAttribute
in interface AttributeList
name
- the attribute's index.value
- a new criterion for the attribute.public final void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface AttributeList
name
- the attribute's name.value
- a new criterion for the attribute.public int getAttributeCount()
getAttributeCount
in interface AttributeList
public int getAttributeIndexOf(java.lang.String name)
getAttributeIndexOf
in interface AttributeList
name
- the attribute name.public Key getKey()
getKey
in interface Row
public void validate()
validate
in interface Row
JboException
- a runtime exception,
if the recipient wishes the property change to be rolled back.public void lock()
lock
in interface Row
JboException
- a runtime exception,
if an exception occurs during access.public void remove()
remove
in interface Row
JboException
- a runtime exception,
if an exception occurs during access.public boolean isAttributeUpdateable(int index)
isAttributeUpdateable
in interface Row
index
- the index of the attribute.true
if the row is marked UPDATEABLE
,
or if the row is marked UPDATEABLE_WHILE_NEW
and the current row is new.public Node writeXML(long options, com.sun.java.util.collections.HashMap map)
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
oracle.jbo.XMLInterface
options
- 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 map, XSLStylesheet xslt)
writeXML
in interface XMLInterface
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
oracle.jbo.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(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 final boolean hasData()
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |