/** * INTERNAL * Validate node and calculate its type. */ public void validate(ParseTreeContext context) { super.validate(context); TypeHelper typeHelper = context.getTypeHelper(); Object type = typeHelper.resolveSchema(abstractSchemaName); if (type == null) { throw JPQLException.entityTypeNotFound2( context.getQueryInfo(), getLine(), getColumn(), abstractSchemaName); } setType(type); } }
/** * INTERNAL * Validate node and calculate its type. */ public void validate(ParseTreeContext context) { super.validate(context); TypeHelper typeHelper = context.getTypeHelper(); Object type = typeHelper.resolveSchema(abstractSchemaName); if (type == null) { throw JPQLException.entityTypeNotFound2( context.getQueryInfo(), getLine(), getColumn(), abstractSchemaName); } setType(type); } }
/** * INTERNAL * Validate node and calculate its type. */ public void validate(ParseTreeContext context) { super.validate(context); TypeHelper typeHelper = context.getTypeHelper(); Object type = typeHelper.resolveSchema(abstractSchemaName); if (type == null) { throw JPQLException.entityTypeNotFound2( context.getQueryInfo(), getLine(), getColumn(), abstractSchemaName); } setType(type); } }
/** * 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; } }