/*
 * JPA DAO Template
 *
 *
 * Takatuka - Template fuer JPA DAO
 *
 */

package de.ivu.elect.business.protokollierung.boundary;

import de.ivu.elect.business.protokollierung.entity.LoeschProtokoll;

@javax.enterprise.context.ApplicationScoped // ELECT-7845
public class LoeschProtokollDAO extends AbstractLoeschProtokollDAO {

  private static final long serialVersionUID = 1L;

  @javax.inject.Inject
  private transient de.ivu.elect.jee.entity.SimpleDAO simpleDAO;

  @Override
  protected javax.persistence.EntityManager getEntityManager() {
    return simpleDAO.getEntityManager();
  }

  public void persist(LoeschProtokoll loeschProtokoll){
    getEntityManager().persist(loeschProtokoll);
  }

  public void remove(LoeschProtokoll loeschProtokoll){
    getEntityManager().remove(loeschProtokoll);
  }

@javax.inject.Inject
private transient de.ivu.elect.presentation.system.DAOCache daoCache;


@Override
public void clear() {
super.clear();
if (de.ivu.elect.business.system.control.CacheQueries.CACHE_QUERIES_DAO) {
daoCache.clear();
}

}

@Override
public void flush() {
super.flush();
if (de.ivu.elect.business.system.control.CacheQueries.CACHE_QUERIES_DAO) {
daoCache.clear();
}
}



}