/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.springframework.transaction.TransactionStatus
 *  org.springframework.transaction.support.TransactionCallback
 */
package com.l7tech.server;

import com.l7tech.server.HibernateEntityManager;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.TransactionCallback;

class af
implements TransactionCallback {
    final String val$name;
    final HibernateEntityManager this$0;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    af(HibernateEntityManager hibernateEntityManager, String string) {
        this.this$0 = hibernateEntityManager;
        this.val$name = string;
    }

    public Object doInTransaction(TransactionStatus transactionStatus) {
        try {
            Object v0;
            Object ET = this.this$0.findByUniqueName(this.val$name);
            try {
                v0 = ET == null ? null : this.this$0.checkAndCache(ET);
            }
            catch (Exception exception) {
                throw af.a(exception);
            }
            return v0;
        }
        catch (Exception exception) {
            throw new RuntimeException(exception);
        }
    }

    private static Exception a(Exception exception) {
        return exception;
    }
}

