Java 类org.hibernate.action.spi.AfterTransactionCompletionProcess 实例源码

项目:rpb    文件:AuditLogListener.java   
private void audit(AbstractEvent hibernateEvent, final AuditLog auditLog) {
    hibernateEvent.getSession().getActionQueue().registerProcess(new AfterTransactionCompletionProcess() {
        @Override
        public void doAfterTransactionCompletion(boolean success, SessionImplementor session) {
            if (success) {
                auditLogService.log(auditLog);
            }
        }
    });
}
项目:rpb    文件:AuditLogListener.java   
private void audit(AbstractEvent hibernateEvent, final AuditLog auditLog) {
    hibernateEvent.getSession().getActionQueue().registerProcess(new AfterTransactionCompletionProcess() {
        @Override
        public void doAfterTransactionCompletion(boolean success, SessionImplementor session) {
            if (success) {
                auditLogService.log(auditLog);
            }
        }
    });
}
项目:lams    文件:ActionQueue.java   
public void registerProcess(AfterTransactionCompletionProcess process) {
    afterTransactionProcesses.register( process );
}
项目:lams    文件:EntityAction.java   
@Override
public AfterTransactionCompletionProcess getAfterTransactionCompletionProcess() {
    return needsAfterTransactionCompletion()
            ? this
            : null;
}
项目:lams    文件:CollectionAction.java   
@Override
public AfterTransactionCompletionProcess getAfterTransactionCompletionProcess() {
    return afterTransactionProcess;
}