com.jpattern.orm.IJPOrm Maven / Gradle / Ivy
package com.jpattern.orm;
import java.util.List;
import com.jpattern.orm.exception.OrmConfigurationException;
import com.jpattern.orm.exception.OrmException;
import com.jpattern.orm.session.ISession;
/**
*
* @author Francesco Cina
*
* 21/mag/2011
*/
public interface IJPOrm {
/**
* Return a session from the current IJPOrm implementation
* @return
*/
ISession session() throws OrmException;
/**
* Destroy the current IJPOrm instance and all it's references.
* After the execution of this method it will be not possible to call it through the
* static method JOPOrm.get(String jpOrmName)
*/
void destory();
/**
* Register a new class to be managed as a bean.
*
* @param
* @param clazz
* @throws OrmConfigurationException
*/
void register(Class clazz) throws OrmConfigurationException;
/**
* Register a list of classes to be managed as a beans.
*
* @param
* @param clazz
* @throws OrmConfigurationException
*/
void register(List> classes) throws OrmConfigurationException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy