/** * INTERNAL * Answer the class associated with the provided schema name */ public Class classForSchemaName(String schemaName, GenerationContext context) { ClassDescriptor descriptor = context.getSession().getDescriptorForAlias(schemaName); if (descriptor == null) { throw JPQLException.entityTypeNotFound(getQueryInfo(), schemaName); } Class theClass = descriptor.getJavaClass(); if (theClass == null) { throw JPQLException.resolutionClassNotFoundException(getQueryInfo(), schemaName); } return theClass; }
/** * INTERNAL * Answer the class associated with the provided schema name */ public Class classForSchemaName(String schemaName, GenerationContext context) { ClassDescriptor descriptor = context.getSession().getDescriptorForAlias(schemaName); if (descriptor == null) { throw JPQLException.entityTypeNotFound(getQueryInfo(), schemaName); } Class theClass = descriptor.getJavaClass(); if (theClass == null) { throw JPQLException.resolutionClassNotFoundException(getQueryInfo(), schemaName); } return theClass; }
/** * INTERNAL * Answer the class associated with the provided schema name */ public Class classForSchemaName(String schemaName, GenerationContext context) { ClassDescriptor descriptor = context.getSession().getDescriptorForAlias(schemaName); if (descriptor == null) { throw JPQLException.entityTypeNotFound(getQueryInfo(), schemaName); } Class theClass = descriptor.getJavaClass(); if (theClass == null) { throw JPQLException.resolutionClassNotFoundException(getQueryInfo(), schemaName); } return theClass; }