Search in sources :

Example 1 with IEntity

use of org.eclipse.persistence.jpa.jpql.tools.spi.IEntity in project eclipselink by eclipse-ee4j.

the class AbstractJPQLQueryHelperTest method entity.

protected IManagedType entity(IManagedTypeProvider provider, String entityName) {
    IEntity entity = provider.getEntityNamed(entityName);
    assertNotNull("The entity " + entityName + " could not be found", entity);
    return entity;
}
Also used : IEntity(org.eclipse.persistence.jpa.jpql.tools.spi.IEntity)

Example 2 with IEntity

use of org.eclipse.persistence.jpa.jpql.tools.spi.IEntity in project eclipselink by eclipse-ee4j.

the class EclipseLinkJPQLQueryHelperTest method namedQuery.

@Override
protected IQuery namedQuery(String entityName, String queryName) throws Exception {
    IEntity entity = entity(entityName);
    IQuery namedQuery = entity.getNamedQuery(queryName);
    assertNotNull("The named query " + queryName + " could not be found on " + entityName, namedQuery);
    return namedQuery;
}
Also used : IQuery(org.eclipse.persistence.jpa.jpql.tools.spi.IQuery) IEntity(org.eclipse.persistence.jpa.jpql.tools.spi.IEntity)

Example 3 with IEntity

use of org.eclipse.persistence.jpa.jpql.tools.spi.IEntity in project eclipselink by eclipse-ee4j.

the class EclipseLinkJPQLQueryHelperTest method entity.

protected IEntity entity(String entityName) throws Exception {
    IEntity entity = getPersistenceUnit().getEntityNamed(entityName);
    assertNotNull("The entity " + entityName + " could not be found", entity);
    return entity;
}
Also used : IEntity(org.eclipse.persistence.jpa.jpql.tools.spi.IEntity)

Example 4 with IEntity

use of org.eclipse.persistence.jpa.jpql.tools.spi.IEntity in project eclipselink by eclipse-ee4j.

the class EclipseLinkJPQLQueryHelperTest2_4 method entity.

protected IEntity entity(String entityName) throws Exception {
    IEntity entity = getPersistenceUnit().getEntityNamed(entityName);
    assertNotNull("The entity " + entityName + " could not be found", entity);
    return entity;
}
Also used : IEntity(org.eclipse.persistence.jpa.jpql.tools.spi.IEntity)

Example 5 with IEntity

use of org.eclipse.persistence.jpa.jpql.tools.spi.IEntity in project eclipselink by eclipse-ee4j.

the class EclipseLinkJPQLQueryHelperTest2_5 method entity.

protected IEntity entity(String entityName) throws Exception {
    IEntity entity = getPersistenceUnit().getEntityNamed(entityName);
    assertNotNull("The entity " + entityName + " could not be found", entity);
    return entity;
}
Also used : IEntity(org.eclipse.persistence.jpa.jpql.tools.spi.IEntity)

Aggregations

IEntity (org.eclipse.persistence.jpa.jpql.tools.spi.IEntity)16 IQuery (org.eclipse.persistence.jpa.jpql.tools.spi.IQuery)6 ArrayList (java.util.ArrayList)1 List (java.util.List)1 ContentAssistProposals (org.eclipse.persistence.jpa.jpql.tools.ContentAssistProposals)1 EnumProposals (org.eclipse.persistence.jpa.jpql.tools.ContentAssistProposals.EnumProposals)1 Resolver (org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver)1 StateFieldResolver (org.eclipse.persistence.jpa.jpql.tools.resolver.StateFieldResolver)1 IMapping (org.eclipse.persistence.jpa.jpql.tools.spi.IMapping)1