Skip Headers

# getField

Previous

Next

The `getField` method lets you retrieve data from either an unmapped table or an unmapped field from an object. In either case, the field must be part of a table represented by that object's class; otherwise, TopLink raises an exception when you execute the query.

You can also use the `getField` method to retrieve the foreign key information for an object.

Example: Using getField with an Object illustrates how to use the data expression method (operator) `getField` with an object.

Using getField with an Object

    builder.getField("[FIELD_NAME]").greaterThan("[ARGUMENT]");