oracle.toplink.querykeys
Class ForeignReferenceQueryKey
java.lang.Object
|
+--oracle.toplink.querykeys.QueryKey
|
+--oracle.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:
- Define the reference class of the foreign object.
- See Also:
- Serialized Form
Type | Method |
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ForeignReferenceQueryKey
public ForeignReferenceQueryKey()
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.