Package org.apache.deltaspike.jpa.api.transaction

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


    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

     *         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

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

    @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

     *         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)
        {
            Class targetClass = ProxyUtils.getUnproxiedClass(context.getTarget().getClass()); //see DELTASPIKE-517

View Full Code Here

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

     *         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

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

    @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

TOP

Related Classes of org.apache.deltaspike.jpa.api.transaction.Transactional

Copyright © 2018 www.massapicom. 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.