protected List < SqlVisitor > filterRollbackVisitors ( final List < SqlVisitor > visitors ) { final List < SqlVisitor > rollbackVisitors = new ArrayList <> ( ) ; if ( visitors != null ) { for ( SqlVisitor visitor : visitors ) { if ( visitor . isApplyToRollback ( ) ) { rollbackVisitors . add ( visitor ) ; } } } return rollbackVisitors ; }
Takes a list of SqlVisitors and returns a new list with only the SqlVisitors set to apply to rollbacks