/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.licensing.LicenseDocument
 *  com.l7tech.objectmodel.Entity
 *  com.l7tech.objectmodel.EntityHeader
 *  com.l7tech.objectmodel.EntityManager$UniqueType
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.objectmodel.SaveException
 *  org.springframework.transaction.annotation.Propagation
 *  org.springframework.transaction.annotation.Transactional
 */
package com.l7tech.server.licensing;

import com.l7tech.gateway.common.licensing.LicenseDocument;
import com.l7tech.objectmodel.Entity;
import com.l7tech.objectmodel.EntityHeader;
import com.l7tech.objectmodel.EntityManager;
import com.l7tech.objectmodel.Goid;
import com.l7tech.objectmodel.SaveException;
import com.l7tech.server.HibernateEntityManager;
import com.l7tech.server.licensing.LicenseDocumentManager;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor={Throwable.class})
public class LicenseDocumentManagerImpl
extends HibernateEntityManager<LicenseDocument, EntityHeader>
implements LicenseDocumentManager {
    public Class<? extends Entity> getImpClass() {
        return LicenseDocument.class;
    }

    @Override
    public Goid save(LicenseDocument licenseDocument) throws SaveException {
        return super.save(licenseDocument);
    }

    @Override
    public Goid saveWithImmediateFlush(LicenseDocument licenseDocument) throws SaveException {
        Goid goid = super.save(licenseDocument);
        this.getHibernateTemplate().flush();
        return goid;
    }

    @Override
    protected EntityManager.UniqueType getUniqueType() {
        return EntityManager.UniqueType.NONE;
    }
}

