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

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

class ag
implements TransactionCallback<ET> {
    final Goid val$goid;
    final HibernateEntityManager this$0;

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

    public ET doInTransaction(TransactionStatus transactionStatus) {
        try {
            return this.this$0.findByPrimaryKey(this.val$goid);
        }
        catch (FindException findException) {
            throw new RuntimeException(findException);
        }
    }
}

