Describes a Field containing a reference to another class. Provides handling for foreign keys etc.
Note: Be careful when use references of this class or caching instances of this class,
because instances could become invalid (see
MetadataManager ).
author: Thomas Mahler
setConstraint(boolean constraint) Set a foreign key constraint flag for this reference - see
ObjectReferenceDescriptor.hasConstraint() Parameters: constraint - If set true, signals a foreign key constraint in database.
Returns an Object array of all FK field values of the specified object.
If the specified object is an unmaterialized Proxy, it will be materialized
to read the FK values.
throws: MetadataException - if an error occours while accessing ForeingKey values on obj
public void setConstraint(boolean constraint)(Code)
Set a foreign key constraint flag for this reference - see
ObjectReferenceDescriptor.hasConstraint() Parameters: constraint - If set true, signals a foreign key constraint in database.