@@ -0,0 +1,1480 @@
+/**%0A *%0A * Copyright (c) 2006-2015, Speedment, Inc. All Rights Reserved.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22); You may not%0A * use this file except in compliance with the License. You may obtain a copy of%0A * the License at:%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A * License for the specific language governing permissions and limitations under%0A * the License.%0A */%0Apackage com.speedment.util.transaction;%0A%0Aimport com.speedment.core.manager.metaresult.MetaResult;%0Aimport java.util.function.Consumer;%0A%0A/**%0A *%0A * @author pemi%0A */%0Apublic class MetadataUtil %7B%0A%0A    private MetadataUtil() %7B%0A    %7D%0A%0A    public static %3CT%3E Consumer%3CMetaResult%3CT%3E%3E toText(Consumer%3CString%3E consumer) %7B%0A        return meta -%3E %7B%0A            meta.getSqlMetaResult().ifPresent(sql -%3E %7B%0A                final StringBuilder sb = new StringBuilder();%0A                sb.append(%22sql = %22).append(sql.getQuery()).append(%22%5Cn%22);%0A                sb.append(%22params = %22).append(sql.getParameters()).append(%22%5Cn%22);%0A                sb.append(%22thowable = %22).append(sql.getThrowable()%0A                    .map(t -%3E t.getMessage())%0A                    .orElse(%22%22)).append(%22%5Cn%22);%0A                consumer.accept(sb.toString());%0A            %7D);%0A        %7D;%0A%0A    %7D%0A%7D%0A

Add MetadataUtil