protected Query detachQueryNonTxInvocation(EntityManager underlyingEntityManager, Query underLyingQuery) {
    """
	used by TransactionScopedEntityManager to detach entities loaded by a query in a non-jta invocation.
    """
        if (!this.isExtendedPersistenceContext() && !this.isInTx()) {
            return new QueryNonTxInvocationDetacher(underlyingEntityManager, underLyingQuery);
        }
        return underLyingQuery;
    }
protected Query detachQueryNonTxInvocation(EntityManager underlyingEntityManager, Query underLyingQuery) {
        if (!this.isExtendedPersistenceContext() && !this.isInTx()) {
            return new QueryNonTxInvocationDetacher(underlyingEntityManager, underLyingQuery);
        }
        return underLyingQuery;
    }
protected Query detachQueryNonTxInvocation ( EntityManager underlyingEntityManager , Query underLyingQuery ) { if ( ! this . isExtendedPersistenceContext ( ) && ! this . isInTx ( ) ) { return new QueryNonTxInvocationDetacher ( underlyingEntityManager , underLyingQuery ) ; } return underLyingQuery ; }
used by TransactionScopedEntityManager to detach entities loaded by a query in a non-jta invocation.
used by TransactionScopedEntityManager to detach entities loaded by a query in a non - jta invocation .