org.gvnix.web.datatables.util.EntityManagerProvider Maven / Gradle / Ivy
/*
* Copyright 2015 DISID Corporation S.L. All rights reserved.
*
* Project : [PROJECT NAME]
* SVN Id : $Id$
*/
package org.gvnix.web.datatables.util;
import javax.persistence.EntityManager;
/**
* Service which provides the EntityManger for a JPA Entity class
*
* @author gvNIX
*/
public interface EntityManagerProvider {
/**
* Gets EntityManger instance for a JPA Entity class
*
* @param klass JPA Entity class
* @return applicable JPA EntityManager for klass
* @throws IllegalStateException if klass
has no matching
* method or can't be invoke
*/
public abstract EntityManager getEntityManager(Class klass);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy