Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.querykeys
Class ForeignReferenceQueryKey

java.lang.Object
  extended byoracle.toplink.querykeys.QueryKey
      extended byoracle.toplink.querykeys.ForeignReferenceQueryKey

All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
DirectCollectionQueryKey, ManyToManyQueryKey, OneToManyQueryKey, OneToOneQueryKey

public class ForeignReferenceQueryKey
extends QueryKey

Purpose: Define an alias to a foreign object.

Responsibilities:

See Also:
Serialized Form

Constructor Summary
ForeignReferenceQueryKey()

Method Summary
Expression getJoinCriteria()
PUBLIC: Return the join expression for the relationship defined by the query key.
java.lang.Class getReferenceClass()
PUBLIC: Return the reference class of the relationship.
void setJoinCriteria(Expression joinCriteria)
PUBLIC: Set the join expression for the relationship defined by the query key.
void setReferenceClass(java.lang.Class referenceClass)
PUBLIC: Set the reference class of the relationship.

Methods inherited from class oracle.toplink.querykeys.QueryKey
getName, isCollectionQueryKey, isDirectCollectionQueryKey, isDirectQueryKey, isManyToManyQueryKey, isOneToManyQueryKey, isOneToOneQueryKey, setName

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

ForeignReferenceQueryKey

public ForeignReferenceQueryKey()

Method Detail

getJoinCriteria

public Expression getJoinCriteria()
PUBLIC: Return the join expression for the relationship defined by the query key.

getReferenceClass

public java.lang.Class getReferenceClass()
PUBLIC: Return the reference class of the relationship.

setJoinCriteria

public void setJoinCriteria(Expression joinCriteria)
PUBLIC: Set the join expression for the relationship defined by the query key.

Example:

builder.getField("ADDRESS.ADDRESS_ID").equal(builder.getParameter("EMPLOYEE.ADDR_ID");

setReferenceClass

public void setReferenceClass(java.lang.Class referenceClass)
PUBLIC: Set the reference class of the relationship. This is not required for direct collection query keys.

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.