public class ForeignReferenceQueryKey extends QueryKey
Purpose: Define an alias to a foreign object.
Responsibilities:
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
joinCriteria |
protected Class |
referenceClass |
protected String |
referenceClassName |
descriptor, name| Constructor and Description |
|---|
ForeignReferenceQueryKey() |
| Modifier and Type | Method and Description |
|---|---|
void |
convertClassNamesToClasses(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.
|
Class |
getReferenceClass()
PUBLIC:
Return the reference class of the relationship.
|
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(Class referenceClass)
PUBLIC:
Set the reference class of the relationship.
|
void |
setReferenceClassName(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, toStringprotected Class referenceClass
protected String referenceClassName
protected Expression joinCriteria
public void convertClassNamesToClasses(ClassLoader classLoader)
convertClassNamesToClasses in class QueryKeyclassLoader - public Expression getJoinCriteria()
public Class getReferenceClass()
public 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(Class referenceClass)
public void setReferenceClassName(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)
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.