It is recommended that you create a query on top of your Java Object table’s data in order to simplify accessing the structure of the Java Object’s internal data. For more information about queries, see Chapter18: Working with Queries and Record Sources. You can define fields in the query to access the Java Object’s internal data, using either instance variables or methods. In the field, you can type expressions with the format <alias>:<fieldName>.<method or variable>. For example, the student field has instance variables such as ID and firstName. You can access these instance variables by creating a new field for each of them. For ID, the field you create is ID:student.getID(). Note, by using an alias, you can use a shorter expression. So, for example, for ID, you could just use ID instead of student.getID().

 

The following example shows the query in both Design View and Datasheet View:

 

query_java_object_design_view

 

query_java_object_datasheet_view