Databases Reference
In-Depth Information
beforeCommit()
Logic that has to be applied before committing
the record is added in this method.
afterCommit()
Logic that has to be applied after committing
the record is added in this method.
remove()
This method is used to remove an entity
object.
doDML()
This method is used to perform operations
based on the DML operations INSERT ,
UPDATE , and DELETE .
Classes for view objects
A view object also has three classes that are used to represent the view object and its
metadata informaion. A view object's classes are also generated in the same way as
that of an enity object. The three classes are as follows:
View object : This class will represent the view object itself. All operaions related
to the view object can be performed using this class.
View row : This class will represent and provide access to the row of a view object.
This class is similar to the enity object class.
View deiniion : This class will hold references to the metadata informaion of the
view object. We can usually access the deiniion object by using the getDef()
method from the ViewObjectImpl class.
Most of the ime, we will be working with the view object class to perform tasks
programmaically. There are some operaions that are used quite oten in a view
object implementaion class; they are described in the following table:
Operation
Explanation
setWhereClause()
This method is used to set the Where clause for
a view object.
createViewCriteria()
This method is used to create view criteria
programmatically.
setOrderByClause()
This method is used to set the Order by clause
for the current view object.
applyViewCriteria()
This method is used to apply an already created
view criteria to the view object to add dynamic
query parameters.
clearCache()
This method clears the cached row information
in the view object.
Search WWH ::




Custom Search