/** * resolveClass: Answer the class which corresponds to my variableName. This is the class for * an alias, where the variableName is registered to an alias. */ public Class resolveClass(GenerationContext context) { String alias = abstractSchemaName; ClassDescriptor descriptor = context.getSession().getDescriptorForAlias(alias); if (descriptor == null) { throw JPQLException.entityTypeNotFound2( context.getParseTreeContext().getQueryInfo(), getLine(), getColumn(), alias); } Class theClass = descriptor.getJavaClass(); if (theClass == null) { throw JPQLException.resolutionClassNotFoundException2( context.getParseTreeContext().getQueryInfo(), getLine(), getColumn(), alias); } return theClass; } }
/** * resolveClass: Answer the class which corresponds to my variableName. This is the class for * an alias, where the variableName is registered to an alias. */ public Class resolveClass(GenerationContext context) { String alias = abstractSchemaName; ClassDescriptor descriptor = context.getSession().getDescriptorForAlias(alias); if (descriptor == null) { throw JPQLException.entityTypeNotFound2( context.getParseTreeContext().getQueryInfo(), getLine(), getColumn(), alias); } Class theClass = descriptor.getJavaClass(); if (theClass == null) { throw JPQLException.resolutionClassNotFoundException2( context.getParseTreeContext().getQueryInfo(), getLine(), getColumn(), alias); } return theClass; } }
/** * resolveClass: Answer the class which corresponds to my variableName. This is the class for * an alias, where the variableName is registered to an alias. */ public Class resolveClass(GenerationContext context) { String alias = abstractSchemaName; ClassDescriptor descriptor = context.getSession().getDescriptorForAlias(alias); if (descriptor == null) { throw JPQLException.entityTypeNotFound2( context.getParseTreeContext().getQueryInfo(), getLine(), getColumn(), alias); } Class theClass = descriptor.getJavaClass(); if (theClass == null) { throw JPQLException.resolutionClassNotFoundException2( context.getParseTreeContext().getQueryInfo(), getLine(), getColumn(), alias); } return theClass; } }