/** * INTERNAL: * Start call */ protected void startOperationProfile() { if (getSession().isInProfile()) { getSession().getProfiler().startOperationProfile(SessionProfiler.SessionEvent); } }
/** * INTERNAL: * End call */ protected void endOperationProfile() { if (getSession().isInProfile()) { getSession().getProfiler().endOperationProfile(SessionProfiler.SessionEvent); } } }
/** * INTERNAL: * Start call */ protected void startOperationProfile() { if (getSession().isInProfile()) { getSession().getProfiler().startOperationProfile(SessionProfiler.SessionEvent); } }
/** * INTERNAL: * End call */ protected void endOperationProfile() { if (getSession().isInProfile()) { getSession().getProfiler().endOperationProfile(SessionProfiler.SessionEvent); } } }
/** * INTERNAL: * Start call */ protected void startOperationProfile() { if (getSession().isInProfile()) { getSession().getProfiler().startOperationProfile(SessionProfiler.SessionEvent); } }
/** * INTERNAL: * End call */ protected void endOperationProfile() { if (getSession().isInProfile()) { getSession().getProfiler().endOperationProfile(SessionProfiler.SessionEvent); } } }
/** * INTERNAL: * Post acquire unit of work. */ public void postAcquireUnitOfWork() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PostAcquireUnitOfWork, getSession()); int size = this.listeners.size(); for (int index = 0; index < size; index++) { this.listeners.get(index).postAcquireUnitOfWork(event); } endOperationProfile(); }
/** * INTERNAL: * Post commit transaction. */ public void postCommitTransaction() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PostCommitTransaction, getSession()); int size = this.listeners.size(); for (int index = 0; index < size; index++) { this.listeners.get(index).postCommitTransaction(event); } endOperationProfile(); }
/** * INTERNAL: * Prepare unit of work. */ public void prepareUnitOfWork() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PrepareUnitOfWork, getSession()); int size = this.listeners.size(); for (int index = 0; index < size; index++) { this.listeners.get(index).prepareUnitOfWork(event); } endOperationProfile(); }
/** * INTERNAL: * Post acquire unit of work. */ public void postAcquireUnitOfWork() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PostAcquireUnitOfWork, getSession()); List<SessionEventListener> listeners = this.listeners; int size = listeners.size(); for (int index = 0; index < size; index++) { listeners.get(index).postAcquireUnitOfWork(event); } endOperationProfile(); }
/** * INTERNAL: * Post release unit of work. */ public void postReleaseUnitOfWork() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PostReleaseUnitOfWork, getSession()); List<SessionEventListener> listeners = this.listeners; int size = listeners.size(); for (int index = 0; index < size; index++) { listeners.get(index).postReleaseUnitOfWork(event); } endOperationProfile(); }
/** * INTERNAL: * Pre rollback transaction. */ public void preRollbackTransaction() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PreRollbackTransaction, getSession()); List<SessionEventListener> listeners = this.listeners; int size = listeners.size(); for (int index = 0; index < size; index++) { listeners.get(index).preRollbackTransaction(event); } endOperationProfile(); }
/** * INTERNAL: * Post begin transaction. */ public void postBeginTransaction() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PostBeginTransaction, getSession()); int size = this.listeners.size(); for (int index = 0; index < size; index++) { this.listeners.get(index).postBeginTransaction(event); } endOperationProfile(); }
/** * INTERNAL: * Pre release client session. */ public void preReleaseClientSession() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PreReleaseClientSession, getSession()); int size = this.listeners.size(); for (int index = 0; index < size; index++) { this.listeners.get(index).preReleaseClientSession(event); } endOperationProfile(); }
/** * INTERNAL: * Post commit unit of work. */ public void postCommitUnitOfWork() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PostCommitUnitOfWork, getSession()); int size = this.listeners.size(); for (int index = 0; index < size; index++) { this.listeners.get(index).postCommitUnitOfWork(event); } endOperationProfile(); }
/** * INTERNAL: * Post release unit of work. */ public void postReleaseUnitOfWork() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PostReleaseUnitOfWork, getSession()); int size = this.listeners.size(); for (int index = 0; index < size; index++) { this.listeners.get(index).postReleaseUnitOfWork(event); } endOperationProfile(); }
/** * INTERNAL: * Pre calculate UnitOfWork Change Set. */ public void preCalculateUnitOfWorkChangeSet() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PreCalculateUnitOfWorkChangeSet, getSession()); int size = this.listeners.size(); for (int index = 0; index < size; index++) { this.listeners.get(index).preCalculateUnitOfWorkChangeSet(event); } endOperationProfile(); }
/** * INTERNAL: * Post acquire client session. */ public void postAcquireClientSession() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PostAcquireClientSession, getSession()); int size = this.listeners.size(); for (int index = 0; index < size; index++) { this.listeners.get(index).postAcquireClientSession(event); } endOperationProfile(); }
/** * INTERNAL: * Post resume unit of work. */ public void postResumeUnitOfWork() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PostResumeUnitOfWork, getSession()); int size = this.listeners.size(); for (int index = 0; index < size; index++) { this.listeners.get(index).postResumeUnitOfWork(event); } endOperationProfile(); }
/** * INTERNAL: * Pre begin transaction. */ public void preBeginTransaction() { if (!hasListeners()) { return; } startOperationProfile(); SessionEvent event = new SessionEvent(SessionEvent.PreBeginTransaction, getSession()); List<SessionEventListener> listeners = this.listeners; int size = listeners.size(); for (int index = 0; index < size; index++) { listeners.get(index).preBeginTransaction(event); } endOperationProfile(); }