Which option represents the code snippet that would imp…

Your application has a business rule that a Customer Booking entity object cannot be deleted if its mandatory
Status attribute is still OPEN. If the status if OPEN, an error message must also be shown to the user.
To implement this rule, you decide to override the remove() method in the related BookingImpl class that
implements oracle.jbo.server.EntityImpl.
Which option represents the code snippet that would implement these requirements?

Your application has a business rule that a Customer Booking entity object cannot be deleted if its mandatory
Status attribute is still OPEN. If the status if OPEN, an error message must also be shown to the user.
To implement this rule, you decide to override the remove() method in the related BookingImpl class that
implements oracle.jbo.server.EntityImpl.
Which option represents the code snippet that would implement these requirements?

A.

B.

C.

D.

Explanation:
You can Override the remove method to add your own business logic for the remove operation. For example,
you can implement business logic that throws an exception that report why an Entity Object cannot be removed.
If this method is overridden, then the default implementation must be called with super.remove() to restore the
Entity post states, as well as notify posted “child” Entities to handle post changes errors.
https://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/server/EntityImpl.html http://
kadamshn.blogspot.se/2016/04/customize-adf-entity-object.html



Leave a Reply 0

Your email address will not be published. Required fields are marked *