

Changes to Java API
In Enterprise Objects Framework 3.0, the Java APIs have changed considerably. The changes to the Java APIs are summarized here:- A two-letter prefix (EO) has been added to each Java class name. In almost all cases, the Java class name is now identical to its Objective-C counterpart.
- The Java package names have changed to the following:
com.apple.yellow.eoaccess
com.apple.yellow.eocontrol
com.apple.yellow.eointerface
com.apple.yellow.informixeoadaptor
com.apple.yellow.odbceoadaptor
com.apple.yellow.oracleeoadaptor
com.apple.yellow.sybaseeoadaptor - The basic classes (for arrays, dictionaries, and data) have become more like their Foundation counterparts than their Java counterparts. For example, ImmutableVector is now named NSArray and responds to count instead of size. MutableHashtable is now named NSMutableDictionary and responds to setObjectForKey instead of put.
Note that for numbers and strings, you still use the classes java.lang.Number and java.lang.String.
- DecimalNumber is no longer available. Use java.math.BigDecimal instead.
- CalendarDate is now named NSGregorianDate.
- The root object is now com.apple.yellow.foundation.NSObject.
- Delegate interfaces are now declared as inner classes (within the appropriate class). For example, EditingContextDelegates is now EOEditingContext.Delegate.
Table of Contents
Next Section