public class ForeignReferenceQueryKey extends QueryKey
Purpose: Define an alias to a foreign object.
Responsibilities:
| Constructor and Description | 
|---|
ForeignReferenceQueryKey()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this project to actual class-based settings 
 | 
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. 
 | 
java.lang.String | 
getReferenceClassName()
PUBLIC: Return the reference class name of the relationship. 
 | 
org.eclipse.persistence.internal.helper.DatabaseTable | 
getReferenceTable(ClassDescriptor desc)
PUBLIC: Returns the reference table. 
 | 
org.eclipse.persistence.internal.helper.DatabaseTable | 
getRelationTable(ClassDescriptor referenceDescriptor)
PUBLIC: Returns the relation table. 
 | 
org.eclipse.persistence.internal.helper.DatabaseTable | 
getSourceTable()
PUBLIC: Returns the source table. 
 | 
boolean | 
isForeignReferenceQueryKey()
INTERNAL: override the isForeignReferenceQueryKey() method in the superclass to return true. 
 | 
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. 
 | 
void | 
setReferenceClassName(java.lang.String referenceClassName)
PUBLIC: Set the reference class name for this relationship This is used when projects are built without using classes 
 | 
clone, getDescriptor, getName, initialize, isAbstractQueryKey, isCollectionQueryKey, isDirectCollectionQueryKey, isDirectQueryKey, isManyToManyQueryKey, isOneToManyQueryKey, isOneToOneQueryKey, isQueryKey, setDescriptor, setName, toStringpublic void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
convertClassNamesToClasses in class QueryKeyclassLoader -public Expression getJoinCriteria()
public java.lang.Class getReferenceClass()
public java.lang.String getReferenceClassName()
public boolean isForeignReferenceQueryKey()
isForeignReferenceQueryKey in class QueryKeypublic void setJoinCriteria(Expression joinCriteria)
Example:
builder.getField("ADDRESS.ADDRESS_ID").equal(builder.getParameter("EMPLOYEE.ADDR_ID");
public void setReferenceClass(java.lang.Class referenceClass)
public void setReferenceClassName(java.lang.String referenceClassName)
referenceClassName -public org.eclipse.persistence.internal.helper.DatabaseTable getSourceTable()
public org.eclipse.persistence.internal.helper.DatabaseTable getReferenceTable(ClassDescriptor desc)
public org.eclipse.persistence.internal.helper.DatabaseTable getRelationTable(ClassDescriptor referenceDescriptor)