You can retrieve objects and their fields and methods by:
Accessing methods and fields Java methods and fields can be included in the select-list of a query. A method or field then appears as a column in the result set, and can be accessed using one of the standard ResultSet methods, such as getInt, or getString.
Retrieving an object If you include a column with a Java class data type in a query select list, you can use the ResultSet getObject method to retrieve the object into a Java class. You can then access the methods and fields of that object within the Java class. Java objects can only be stored in the Catalog Store.