Package [com.oaframework.toolkit.common.util]
Checks whether the supplied object is null. If it is, the method throws an OAException with a predefined Toolkit error message. This method is useful in all sorts of places; for example, it is good practice to check whether you have been passed null parameters to a method, before using them for real. The following example is a method in an Application Modules used to execute the query for a VO:
public void initListRecordsVO(Number recordId) { Util.checkNull(recordId, "recordId parameter"); ListRecordsVOImpl vo = getListRecordsVO(); Util.checkNull(vo, "ListRecordsVOImpl"); vo.initQuery(recordId); }
This method is overloaded to accept either a pair of [java.sql.Timestamp]'s or a pair of {{JboDomain|Date}}'s. CheckDateRange returns true if the first date parameter is earlier than the second.
This method is overloaded to accept either a pair of [java.sql.Timestamp]'s or a pair of [oracle.jbo.domain.date]'s, along with a textual name for each Date. Calls checkDateRange() and if false, throws an OAException with a Toolkit specific error containing two tokens for the two Date names.
Checks whether the supplied date is later than the system date, and throws a Toolkit specific message if it is not
Adds a DecimalValidator to a messageTextInput, ensuring that the values entered are in a given range and have a certain number of decimal places.
Stores (as a PageContext Session Value) the name of a FND message to be displayed as a Confirmation message.
Displays a Confirmation Message using an OAException with Type of Confirmation.
Displays a Yes/No dialog page.
Returns a Number parameter from the Page Context.
Returns a Number Session Value from the Page Context.