protected void detachNonTxInvocation(EntityManager underlyingEntityManager) { if (!this.isExtendedPersistenceContext() && !this.isInTx() && !deferEntityDetachUntilClose()) { underlyingEntityManager.clear(); } }
protected void detachNonTxInvocation(EntityManager underlyingEntityManager) { if (!this.isExtendedPersistenceContext() && !this.isInTx() && !deferEntityDetachUntilClose()) { underlyingEntityManager.clear(); } }
protected <T> TypedQuery<T> detachTypedQueryNonTxInvocation(EntityManager underlyingEntityManager, TypedQuery<T> underLyingQuery) { if (!this.isExtendedPersistenceContext() && !this.isInTx()) { return new TypedQueryNonTxInvocationDetacher<>(underlyingEntityManager, underLyingQuery); } return underLyingQuery; }
private void transactionIsRequired() { if (!this.isExtendedPersistenceContext() && !this.isInTx()) { throw JpaLogger.ROOT_LOGGER.transactionRequired(); } }
private void transactionIsRequired() { if (!this.isExtendedPersistenceContext() && !this.isInTx()) { throw JpaLogger.ROOT_LOGGER.transactionRequired(); } }
protected Query detachQueryNonTxInvocation(EntityManager underlyingEntityManager, Query underLyingQuery) { if (!this.isExtendedPersistenceContext() && !this.isInTx()) { return new QueryNonTxInvocationDetacher(underlyingEntityManager, underLyingQuery); } return underLyingQuery; }
private StoredProcedureQuery detachStoredProcedureQueryNonTxInvocation(EntityManager underlyingEntityManager, StoredProcedureQuery underlyingStoredProcedureQuery) { if (!this.isExtendedPersistenceContext() && !this.isInTx()) { return new StoredProcedureQueryNonTxInvocationDetacher(underlyingEntityManager, underlyingStoredProcedureQuery); } return underlyingStoredProcedureQuery; }
protected Query detachQueryNonTxInvocation(EntityManager underlyingEntityManager, Query underLyingQuery) { if (!this.isExtendedPersistenceContext() && !this.isInTx()) { return new QueryNonTxInvocationDetacher(underlyingEntityManager, underLyingQuery); } return underLyingQuery; }
protected <T> TypedQuery<T> detachTypedQueryNonTxInvocation(EntityManager underlyingEntityManager, TypedQuery<T> underLyingQuery) { if (!this.isExtendedPersistenceContext() && !this.isInTx()) { return new TypedQueryNonTxInvocationDetacher<>(underlyingEntityManager, underLyingQuery); } return underLyingQuery; }
private StoredProcedureQuery detachStoredProcedureQueryNonTxInvocation(EntityManager underlyingEntityManager, StoredProcedureQuery underlyingStoredProcedureQuery) { if (!this.isExtendedPersistenceContext() && !this.isInTx()) { return new StoredProcedureQueryNonTxInvocationDetacher(underlyingEntityManager, underlyingStoredProcedureQuery); } return underlyingStoredProcedureQuery; }