Methods Summary |
---|
public void | convertClassNamesToClasses(java.lang.ClassLoader classLoader)INTERNAL:
Convert all the class-name-based settings in this project to actual class-based
settings
Class referenceClass = null;
try{
if (referenceClassName != null){
if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
try {
referenceClass = (Class)AccessController.doPrivileged(new PrivilegedClassForName(referenceClassName, true, classLoader));
} catch (PrivilegedActionException exception) {
throw ValidationException.classNotFoundWhileConvertingClassNames(referenceClassName, exception.getException());
}
} else {
referenceClass = oracle.toplink.essentials.internal.security.PrivilegedAccessHelper.getClassForName(referenceClassName, true, classLoader);
}
}
setReferenceClass(referenceClass);
} catch (ClassNotFoundException exc){
throw ValidationException.classNotFoundWhileConvertingClassNames(referenceClassName, exc);
}
|
public oracle.toplink.essentials.expressions.Expression | getJoinCriteria()PUBLIC:
Return the join expression for the relationship defined by the query key.
return joinCriteria;
|
public java.lang.Class | getReferenceClass()PUBLIC:
Return the reference class of the relationship.
return referenceClass;
|
public java.lang.String | getReferenceClassName()PUBLIC:
Return the reference class name of the relationship.
if (referenceClassName == null && referenceClass != null){
referenceClassName = referenceClass.getName();
}
return referenceClassName;
|
public boolean | isForeignReferenceQueryKey()INTERNAL:
override the isForeignReferenceQueryKey() method in the superclass to return true.
return true;
|
public void | setJoinCriteria(oracle.toplink.essentials.expressions.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");
this.joinCriteria = joinCriteria;
|
public void | setReferenceClass(java.lang.Class referenceClass)PUBLIC:
Set the reference class of the relationship.
This is not required for direct collection query keys.
this.referenceClass = referenceClass;
|
public 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
this.referenceClassName = referenceClassName;
|