Main Menu
Lecture 1
Lecture 2
Lecture 4
Lecture 5
Lecture 6
Lecture 7
 

 

 

Create an unqualified fetch specification

Add the following code to the constructor in Main.java

This sends a message to the default editing context to retrieve the objects that match the fetch specification


EOEditingContext ec = session().defaultEditingContext();
// Perform an unqualified fetch and set studentList to all Students
EOFetchSpecification fetchSpec = new EOFetchSpecification("Student", null, null);

studentlist = ec.objectsWithFetchSpecification(fetchSpec);

Build and run the applicaton and use the popup to select a student.

Unqualified - will fetch the names of all students in the database table

Tutorial 61 Fetching Enterprise Objects

Lecture 3 Fetch Demo 1 ( Download )