public class EntityViewCdiQueryInvocationContext extends Object implements org.apache.deltaspike.data.spi.QueryInvocationContext
CdiQueryInvocationContext but was modified to
work with entity views.| Constructor and Description |
|---|
EntityViewCdiQueryInvocationContext(Object proxy,
Method method,
Object[] args,
EntityViewRepositoryMethod repoMethod,
javax.persistence.EntityManager entityManager,
EntityViewManager entityViewManager,
com.blazebit.persistence.CriteriaBuilderFactory criteriaBuilderFactory) |
public EntityViewCdiQueryInvocationContext(Object proxy, Method method, Object[] args, EntityViewRepositoryMethod repoMethod, javax.persistence.EntityManager entityManager, EntityViewManager entityViewManager, com.blazebit.persistence.CriteriaBuilderFactory criteriaBuilderFactory)
public void initMapper()
public javax.persistence.EntityManager getEntityManager()
getEntityManager in interface org.apache.deltaspike.data.spi.QueryInvocationContextpublic EntityViewManager getEntityViewManager()
public com.blazebit.persistence.CriteriaBuilderFactory getCriteriaBuilderFactory()
public boolean isNew(Object entity)
isNew in interface org.apache.deltaspike.data.spi.QueryInvocationContextpublic Class<?> getEntityClass()
getEntityClass in interface org.apache.deltaspike.data.spi.QueryInvocationContextpublic Class<?> getEntityViewClass()
public Class<?> getRepositoryClass()
getRepositoryClass in interface org.apache.deltaspike.data.spi.QueryInvocationContextpublic Method getMethod()
getMethod in interface org.apache.deltaspike.data.spi.QueryInvocationContextpublic javax.persistence.Query applyRestrictions(javax.persistence.Query query)
public Object[] getMethodParameters()
public void addCriteriaBuilderPostProcessor(CriteriaBuilderPostProcessor postProcessor)
public List<CriteriaBuilderPostProcessor> getCriteriaBuilderPostProcessors()
public boolean hasCriteriaBuilderPostProcessors()
public com.blazebit.persistence.FullQueryBuilder<?,?> applyCriteriaBuilderPostProcessors(com.blazebit.persistence.FullQueryBuilder<?,?> criteriaBuilder)
public void addJpaQueryPostProcessor(EntityViewJpaQueryPostProcessor postProcessor)
public void removeJpaQueryPostProcessor(EntityViewJpaQueryPostProcessor postProcessor)
public javax.persistence.Query applyJpaQueryPostProcessors(javax.persistence.Query query)
public void addDestroyable(org.apache.deltaspike.data.impl.util.bean.Destroyable destroyable)
public void cleanup()
public Object executeQuery(javax.persistence.Query jpaQuery)
public Parameters getParams()
public EntityViewRepositoryMethod getRepositoryMethod()
public boolean hasQueryInOutMapper()
public org.apache.deltaspike.data.api.mapping.QueryInOutMapper<?> getQueryInOutMapper()
public org.apache.deltaspike.data.api.SingleResultType getSingleResultStyle()
public Object getProxy()
public boolean isOptional()
Copyright © 2014–2018 Blazebit. All rights reserved.