|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.mappings.querykeys.QueryKey org.eclipse.persistence.mappings.querykeys.ForeignReferenceQueryKey
public class ForeignReferenceQueryKey
Purpose: Define an alias to a foreign object.
Responsibilities:
Field Summary | |
---|---|
protected Expression |
joinCriteria
|
protected java.lang.Class |
referenceClass
|
protected java.lang.String |
referenceClassName
|
Fields inherited from class org.eclipse.persistence.mappings.querykeys.QueryKey |
---|
descriptor, name |
Constructor Summary | |
---|---|
ForeignReferenceQueryKey()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.eclipse.persistence.mappings.querykeys.QueryKey |
---|
clone, getDescriptor, getName, initialize, isAbstractQueryKey, isCollectionQueryKey, isDirectCollectionQueryKey, isDirectQueryKey, isManyToManyQueryKey, isOneToManyQueryKey, isOneToOneQueryKey, isQueryKey, setDescriptor, setName, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Class referenceClass
protected java.lang.String referenceClassName
protected Expression joinCriteria
Constructor Detail |
---|
public ForeignReferenceQueryKey()
Method Detail |
---|
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
convertClassNamesToClasses
in class QueryKey
classLoader
- public Expression getJoinCriteria()
public java.lang.Class getReferenceClass()
public java.lang.String getReferenceClassName()
public boolean isForeignReferenceQueryKey()
isForeignReferenceQueryKey
in class QueryKey
public 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)
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |