Examples of Transactional


Examples of org.apache.deltaspike.jpa.api.transaction.Transactional

    private ActiveEntityManagerHolder emHolder;

    @Override
    public Object execute(InvocationContext invocationContext) throws Exception
    {
        Transactional transactionalAnnotation = transactionHelper.extractTransactionalAnnotation(invocationContext);

        Class targetClass = ProxyUtils.getUnproxiedClass(invocationContext.getTarget().getClass()); //see DELTASPIKE-517

        // all the configured qualifier keys
        Set<Class<? extends Annotation>> emQualifiers = emHolder.isSet() ?
View Full Code Here

Examples of org.apache.deltaspike.jpa.api.transaction.Transactional

    private ActiveEntityManagerHolder emHolder;

    @Override
    public Object execute(InvocationContext invocationContext) throws Exception
    {
        Transactional transactionalAnnotation = transactionHelper.extractTransactionalAnnotation(invocationContext);

        Class targetClass = ProxyUtils.getUnproxiedClass(invocationContext.getTarget().getClass()); //see DELTASPIKE-517

        // all the configured qualifier keys
        Set<Class<? extends Annotation>> emQualifiers = emHolder.isSet() ?
View Full Code Here

Examples of org.apache.deltaspike.jpa.api.transaction.Transactional

     *         or <code>null</code> if none present.
     */
    protected Transactional extractTransactionalAnnotation(InvocationContext context)
    {
        // try to detect the interceptor on the method
        Transactional transactionalAnnotation = extractTransactionalAnnotation(context.getMethod().getAnnotations());

        if (transactionalAnnotation == null)
        {
            // and if not found search on the class
            transactionalAnnotation = extractTransactionalAnnotation(context.getTarget().getClass().getAnnotations());
View Full Code Here

Examples of org.apache.deltaspike.jpa.api.transaction.Transactional

            {
                return (Transactional) annotation;
            }
            if (beanManager.isStereotype(annotation.annotationType()))
            {
                Transactional transactionalAnnotation =
                        extractTransactionalAnnotation(annotation.annotationType().getAnnotations());
                if (transactionalAnnotation != null)
                {
                    return transactionalAnnotation;
                }
View Full Code Here

Examples of org.apache.deltaspike.jpa.api.transaction.Transactional

    @Inject
    private TransactionStrategyHelper transactionHelper;

    public Object execute(InvocationContext invocationContext) throws Exception
    {
        Transactional transactionalAnnotation = transactionHelper.extractTransactionalAnnotation(invocationContext);

        // all the configured qualifier keys
        Set<Class<? extends Annotation>> emQualifiers = transactionHelper.resolveEntityManagerQualifiers(
                    transactionalAnnotation, invocationContext.getTarget().getClass());
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jpa.api.Transactional

            new ThreadLocal<HashMap<String, EntityManager>>();


    public Object execute(InvocationContext invocationContext) throws Exception
    {
        Transactional transactionalAnnotation = extractTransactionalAnnotation(invocationContext);

        Class<? extends Annotation> qualifierClass = getTransactionQualifier(transactionalAnnotation);
        String qualifierKey = qualifierClass.getName();

        // the 'layer' of the transactional invocation, aka the refCounter for the current qualifier
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jpa.api.Transactional

    }


    protected Transactional extractTransactionalAnnotation(InvocationContext context)
    {
        Transactional transactionalAnnotation = context.getMethod().getAnnotation(Transactional.class);

        if (transactionalAnnotation == null)
        {
            transactionalAnnotation = context.getTarget().getClass().getAnnotation(Transactional.class);
        }
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jpa.api.Transactional

            new ThreadLocal<HashMap<String, EntityManager>>();


    public Object execute(InvocationContext invocationContext) throws Exception
    {
        Transactional transactionalAnnotation = extractTransactionalAnnotation(invocationContext);

        Class<? extends Annotation> qualifierClass = getTransactionQualifier(transactionalAnnotation);
        String qualifierKey = qualifierClass.getName();

        // the 'layer' of the transactional invocation, aka the refCounter for the current qualifier
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jpa.api.Transactional

    }


    protected Transactional extractTransactionalAnnotation(InvocationContext context)
    {
        Transactional transactionalAnnotation = context.getMethod().getAnnotation(Transactional.class);

        if (transactionalAnnotation == null)
        {
            transactionalAnnotation = context.getTarget().getClass().getAnnotation(Transactional.class);
        }
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jpa.api.Transactional

    /**
     * {@inheritDoc}
     */
    public Object execute(InvocationContext context) throws Exception
    {
        Transactional transactionalAnnotation = extractTransactionalAnnotation(context);

        Class<? extends Annotation> qualifierClass = getTransactionQualifier(transactionalAnnotation);

        Bean<EntityManager> entityManagerBean = resolveEntityManagerBean(qualifierClass);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.