Methods Summary |
---|
public void | applyToQuery(oracle.toplink.essentials.queryframework.DatabaseQuery theQuery, oracle.toplink.essentials.internal.parsing.GenerationContext context)INTERNAL
Apply this node to the passed query. This node does not change the query.
|
public oracle.toplink.essentials.expressions.Expression | generateExpression(oracle.toplink.essentials.internal.parsing.GenerationContext context)INTERNAL
return null;
|
public java.lang.String | getAbstractSchemaIdentifier()INTERNAL
return abstractSchemaIdentifier;
|
public java.lang.String | getAbstractSchemaName()INTERNAL
return abstractSchemaName;
|
public java.lang.String | getCanonicalAbstractSchemaIdentifier()INTERNAL:
Returns the canonical name of abstract schema identifier.
If the identifier is not specified(unqualified attribute scenario),
the canonical name of abstract schema is returned.
String variable = abstractSchemaIdentifier != null ?
abstractSchemaIdentifier : abstractSchemaName;
return IdentificationVariableDeclNode.calculateCanonicalName(variable);
|
public java.lang.Class | resolveClass(oracle.toplink.essentials.internal.parsing.GenerationContext context)resolveClass: Answer the class which corresponds to my variableName. This is the class for
an alias, where the variableName is registered to an alias.
String alias = abstractSchemaName;
ClassDescriptor descriptor = context.getSession().getDescriptorForAlias(alias);
if (descriptor == null) {
throw EJBQLException.unknownAbstractSchemaType2(
context.getParseTreeContext().getQueryInfo(),
getLine(), getColumn(), alias);
}
Class theClass = descriptor.getJavaClass();
if (theClass == null) {
throw EJBQLException.resolutionClassNotFoundException2(
context.getParseTreeContext().getQueryInfo(),
getLine(), getColumn(), alias);
}
return theClass;
|
public void | setAbstractSchemaIdentifier(java.lang.String identifierName)INTERNAL
abstractSchemaIdentifier = identifierName;
|
public void | setAbstractSchemaName(java.lang.String abstractSchemaName)INTERNAL
this.abstractSchemaName = abstractSchemaName;
|
public void | validate(oracle.toplink.essentials.internal.parsing.ParseTreeContext context)INTERNAL
Validate node and calculate its type.
// If defined use the abstractSchemaIdentifier as the base variable,
// otherwise use the abstractSchemaName
String baseVariable = getCanonicalAbstractSchemaIdentifier();
context.setBaseVariable(baseVariable);
super.validate(context);
|