|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the presentation of the Entity Objects selected by an SQL statement.
Fields inherited from interface oracle.jbo.XMLInterface |
XML_OPT_CHANGES_ONLY,
XML_OPT_LIMIT_RANGE |
Fields inherited from interface oracle.jbo.RowIterator |
SLOT_BEFORE_FIRST,
SLOT_BEYOND_LAST,
SLOT_DELETED,
SLOT_VALID |
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. |
RowSet |
createRowSet(java.lang.String name)
Creates and returns a new (secondary) row set for this View Object. |
ViewCriteria |
createViewCriteria()
Creates a new view criteria (that is, "Query by Example") object for this View Object. |
AttributeDef |
findViewLinkAccessor(ViewLink vl)
Finds the view link accessor attribute. |
AttributeDef[] |
getKeyAttributeDefs()
Returns the attribute definitions that make up the constituents of the Key object for Rows returned from this View Object. |
int |
getMaxFetchSize()
Maximum number of rows to fetch for this view object. |
java.lang.String |
getOrderByClause()
Returns the query's ORDER BY clause. |
java.lang.String |
getQuery()
Returns the query statement. |
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. |
java.lang.String |
getWhereClause()
Gets the query's WHERE clause. |
boolean |
isReadOnly()
Tests if the View Object is read-only. |
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 |
setWhereClause(java.lang.String cond)
Sets a WHERE clause bind value of the View Object's query statement. |
Methods inherited from interface oracle.jbo.StructureDef |
findAttributeDef,
getAttributeCount,
getAttributeDef,
getAttributeDefs |
Methods inherited from interface oracle.jbo.ComponentObject |
getDefFullName,
getDefName,
getFullName,
remove |
Methods inherited from interface oracle.jbo.RowSetIterator |
addListener,
createDetailRowSet,
getDetailRowSets,
getRowSet,
removeListener |
Methods inherited from interface oracle.jbo.XMLInterface |
readXML,
readXML,
writeXML,
writeXML |
Method Detail |
public AttributeDef addDynamicAttribute(java.lang.String attrName)
Dynamic 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.
attrName
- the name of the dynamic attribute.public void setWhereClause(java.lang.String cond)
Bind 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.
cond
- a WHERE clause, but excluding the 'WHERE' keyword.public java.lang.String getWhereClause()
This 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)
public void setOrderByClause(java.lang.String expr)
ViewObjectImpl.executeQuery()
is called.
This method should not be overridden.
cond
- a ORDER BY clause, but excluding the 'ORDER BY' keywords.public java.lang.String getOrderByClause()
This method should not be overridden.
public java.lang.String getQuery()
ViewObjectImpl.getUserDefinedQuery()
this method will return a SQL statement regardless of whether the query
was created in Expert or non-Expert Mode.
public boolean isReadOnly()
A 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.
true
if this View Object is
read-only; false if it is updateable.public RowSet createRowSet(java.lang.String name)
name
- the name for the new RowSet
.public java.lang.String[] getViewLinkNames()
A View Link may use this View Object as either its source or destination. This method should not be overridden.
public ViewCriteria createViewCriteria()
A 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.
ViewCriteria
,
applyViewCriteria(ViewCriteria)
public void applyViewCriteria(ViewCriteria criteria)
View criteria rows are ORed together, while entries in the same row are ANDed together.
This method should not be overridden.
criteria
- a view criteria object.public ViewCriteria getViewCriteria()
This method should not be overridden.
null
if none is specified.public AttributeDef findViewLinkAccessor(ViewLink vl)
vl
- the view link whose accessor is being sought.null
if not.public AttributeDef[] getKeyAttributeDefs()
This 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.
public void clearCache()
public int getMaxFetchSize()
public void setMaxFetchSize(int max)
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |