Databases Reference
In-Depth Information
There are three types of resource bundles that can be created, as follows:
XLIFF: The resource key and value will be represented in an XML file
Properies: The properties file will have the key and value defined
List: The key-value pair will be defined in a Java file that extends the
ListResourceBundle API
You can configure the resource bundle to be a part of the project, or to be created for every
ile. The informaion from the resource bundle can be accessed programmaically in any of
the implementaion classes using the following code:
String bundle= "com.view.ViewControllerBundle";
ResourceBundle resourceBundle = BundleFactory.getBundle(bundle);
resourceBundle.getString("id");
For more information, please go to http://docs.oracle.com/cd/
E35521_01/web.111230/e16182/bcentities.htm#BABJACFB.
Business logic groups
Business logic groups are used to separate business components logically based on their
funcionality. The group can encapsulate related objects, validaions, custom logic, and
resource bundles. These can be enabled dynamically based on the context of a row. For
example, HR units can have a set of validaions that difer from the validaion logic for
operaion managers. Customers can view certain details and validaions that do not
apply to staff. The group is created in the Business Logic Group secion by providing
a discriminator atribute.
The Business logic unit is created to separate the validaion logic for business objects.
For example, in an organizaion, CUSTOMER , SUPPLIER , STAFF , and SUPPORT can each
be an individual business unit that can have diferent validaions, hints, default values,
and business logic speciic to their respecive business. All business units are added to
the base enity object to maintain the business group list. The value of the discriminator
atribute will determine the corresponding business logic units to be loaded.
Domain
ADF allows you to create a validaion for the data type that is used in the atribute. A domain
is created to wrap the primary data type in order to apply validaion based on the domain. For
example, if you have PhoneNumber as an atribute with the data type as numbers, you can
wrap the atribute with the PhoneNumber domain and use it as a data type for validaion. The
validate() method for the domain is used for the validaion. The domain type is created in
the New Gallery secion by navigaing to Business Tier | ADF Business Components | Domain .
 
Search WWH ::




Custom Search