ADF Custom Properties with and without Property Set

good articles about custom properties with and without Property set by
http://one-size-doesnt-fit-all.blogspot.com/2008/09/jdev-11g-adf-bc-new-feature-property.html
http://one-size-doesnt-fit-all.blogspot.com/2007/06/i-rest-my-case-converting-adf-bc-eovo.html

If you are using AppleCore modules, by default Entity Implementation classes are based on OAEntityImpl in which setAttributeInternal method cannot be overridden, in order to override setAttributeInternal class you need to change your base class from OAEntityImpl to EntityImpl class.

protected void setAttributeInternal(int i, Object val) {       
Object obj = this.getEntityDef().getAttributeDef(i).getProperty("CASE");
        if ( obj != null && obj.toString().equals("U")) {
                    val = val.toString().toUpperCase();
            }
            super.setAttributeInternal(i, val);
    }

Property Set indeed saves a lot of time in defining custom properties, however in both the cases we need to override method.
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

bocadmin_ww

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today