Table of Contents Previous Section

The Java Packages

The WebObjects Java Extensions includes a Java package corresponding to each of the three key WebObjects Frameworks: Foundation, Enterprise Objects, and WebObjects. These packages are next.util, next.eo, and next.wo, respectively.

next.util

The next.util package contains Java classes that correspond to some of the more useful classes and protocols within NeXT's Foundation Framework. The Java classes in next.util and their corresponding Foundation classes or protocols are listed here:

---------------------------------------------
                       Foundation Class
Java Class             or Protocol         
---------------------------------------------
Bundle                 NSBundle  
CalendarDate           NSCalendarDate              
Coder                  NSCoder                 
Coding                 NSCoding protocol
DecimalNumber          NSDecimalNumber       
ImmutableBytes         NSData                  
ImmutableHashtable     NSDictionary            
ImmutableVector        NSArray                 
keyValue                           
KeyValueCoding         See NSObjectAdditions   
                       in EOF's EOControl      
                       Framework.              
MutableHashtable       NSMutableDictionary     
MutableVector          NSMutableArray          
NextException          NSException             
NextObject             NSObject                
ProcessInfo            NSProcessInfo           
---------------------------------------------

Note that a given Java class doesn't necessarily implement all of the methods in the corresponding Foundation class. Also, the names of some of the methods in the Java class may not correspond exactly to the names of the equivalent methods in the corresponding Foundation class.

Reference documentation for the Java versions of these classes can be found in Reference/util/util.html. For the corresponding Foundation Framework documentation, see NEXT_ROOT/NextLibrary/Frameworks/Foundation.framework/Resources/English.lproj/Documentation/Reference/found.hlp.

next.util.keyValue

The KeyValueCoding interface implements key-value coding for wrapped Objective-C objects. For "pure" Java objects (those that don't inherit from next.util.NextObject), you can obtain behavior similar to that provided by the next.util.KeyValueCoding interface through the use of the next.util.keyValue class.

Note that while the behavior is similar, it isn't identical. With a wrapped Objective-C object you'd use:

anObject.getValue("someField")

Whereas with next.util.keyValue you'd use:

keyValue.getValue(anObject, "someField")

next.eo

The Java package next.eo contains a number of classes corresponding to some of the more useful classes within NeXT's Enterprise Objects Framework (specifically, within the EOControl and EOAccess frameworks). Those classes, and their corresponding EOF classes, are listed in the following table:

----------------------------------------------------------------------
Java Class              EOControl Class           EOAccess Class     
----------------------------------------------------------------------
AndQualifier            EOAndQualifier                                  
CustomObject            NSObjectAdditions                              
DataSource              EODataSource                                    
DatabaseDataSource                                EODatabaseDataSource  
DetailDataSource        EODetailDataSource                              
EditingContext          EOEditingContext                                
FetchSpecification      EOFetchSpecification                            
GenericRecord                                     EOGenericRecord       
ModelGroup                                        EOModelGroup          
NotQualifier            EONotQualifier                                  
ObjectStore             EOObjectStore                                   
ObjectStoreCoordinator  EOObjectStoreCoordinator                        
OrQualifier             EOOrQualifier                                   
Qualifier               EOQualifier                                     
SortOrdering            EOSortOrdering and
                        NSArrayAdditions                                 
----------------------------------------------------------------------

Note that a given Java class doesn't necessarily implement all of the methods in the corresponding Enterprise Objects Framework class. Also, the names of some of the methods in the Java class may not correspond exactly to the names of the equivalent methods in the corresponding EOF class.

Reference documentation for the Java versions of these classes can be found in Reference/eo/eo.html. For the corresponding Enterprise Objects Framework documentation, see NEXT_ROOT/NextLibrary/Frameworks/EOControl.framework/Resources/English.lproj/Documentation/Reference/EOControl.hlp or NEXT_ROOT/NextLibrary/Frameworks/EOAccess.framework/Resources/English.lproj/Documentation/Reference/EOAccess.hlp.

next.wo

The next.wo package contains a set of Java classes that correspond to some of the more useful classes within NeXT's WebObjects Framework. Those Java classes, and the WebObjects classes to which they correspond, are listed here:

--------------------------------
Java Class      WebObjects Class   
--------------------------------
Component       WOComponent       
Context         WOContext         
DisplayGroup    WODisplayGroup    
DynamicElement  WODynamicElement  
Element         WOElement         
Request         WORequest         
Response        WOResponse        
SessionStore    WOSessionStore    
WebApplication  WOApplication     
WebSession      WOSession         
--------------------------------

Note that a given Java class doesn't necessarily implement all of the methods in the corresponding WebObjects class. Also, the names of some of the methods in the Java class may not correspond exactly to the names of the equivalent methods in the corresponding WebObjects class.

For information about this package, refer to the corresponding WebObjects documentation. WebObjects documentation can be accessed through the WebObjects "Home Page," which is located in NEXT_ROOT/NextLibrary/Documentation/NextDev/WebObjects/WOHomePage.html.

Table of Contents Next Section