use of org.eclipse.persistence.sessions.SessionEventAdapter in project eclipselink by eclipse-ee4j.
the class PostAcquireUnitOfWorkTest method setup.
@Override
public void setup() {
super.setup();
setDescription("Test the postAcquireUnitOfWork Event");
SessionEventAdapter tvAdapter = new SessionEventAdapter() {
// Listen for PostAcquireUnitOfWorkEvents
@Override
public void postAcquireUnitOfWork(SessionEvent event) {
setEventTriggered(true);
}
};
getSession().getEventManager().addListener(tvAdapter);
}
use of org.eclipse.persistence.sessions.SessionEventAdapter in project eclipselink by eclipse-ee4j.
the class PostCommitUnitOfWorkTest method setup.
@Override
public void setup() {
super.setup();
setDescription("Test the postCommitUnitOfWork Event");
SessionEventAdapter tvAdapter = new SessionEventAdapter() {
// Listen for PostCommitUnitOfWorkEvents
@Override
public void postCommitUnitOfWork(SessionEvent event) {
setEventTriggered(true);
}
};
getSession().getEventManager().addListener(tvAdapter);
}
use of org.eclipse.persistence.sessions.SessionEventAdapter in project eclipselink by eclipse-ee4j.
the class PostReleaseUnitOfWorkTest method setup.
@Override
public void setup() {
super.setup();
setDescription("Test the postReleaseUnitOfWork Event");
SessionEventAdapter tvAdapter = new SessionEventAdapter() {
// Listen for PostReleaseUnitOfWorkEvents
@Override
public void postReleaseUnitOfWork(SessionEvent event) {
setEventTriggered(true);
}
};
getSession().getEventManager().addListener(tvAdapter);
}
use of org.eclipse.persistence.sessions.SessionEventAdapter in project eclipselink by eclipse-ee4j.
the class PreCommitUnitOfWorkTest method setup.
@Override
public void setup() {
super.setup();
setDescription("Test the preCommitUnitOfWork Event");
SessionEventAdapter tvAdapter = new SessionEventAdapter() {
// Listen for PreCommitUnitOfWorkEvents
@Override
public void preCommitUnitOfWork(SessionEvent event) {
setEventTriggered(true);
}
};
getSession().getEventManager().addListener(tvAdapter);
}
use of org.eclipse.persistence.sessions.SessionEventAdapter in project eclipselink by eclipse-ee4j.
the class PreReleaseUnitOfWorkTest method setup.
@Override
public void setup() {
super.setup();
setDescription("Test the preReleaseUnitOfWork Event");
SessionEventAdapter tvAdapter = new SessionEventAdapter() {
// Listen for PreReleaseUnitOfWorkEvents
@Override
public void preReleaseUnitOfWork(SessionEvent event) {
setEventTriggered(true);
}
};
getSession().getEventManager().addListener(tvAdapter);
}
Aggregations