private final void complete ( Transaction tx , boolean readOnly ) { if ( log . isTraceEnabled ( ) ) log . trace ( "Complete " + tx ) ; if ( ! readOnly ) tx . commit ( ) ; else tx . rollback ( ) ; }
Complete the transaction