All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ars.database.repository.RepositoryFactory Maven / Gradle / Ivy

package ars.database.repository;

import java.util.Map;

import ars.database.repository.Repository;

/**
 * 数据持久化操作工厂接口
 * 
 * @author yongqiangwu
 * 
 */
public interface RepositoryFactory {
	/**
	 * 获取所有数据持久化对象
	 * 
	 * @return 数据模型/持久化对象映射
	 */
	public Map, Repository> getRepositories();

	/**
	 * 根据数据模型获取数据持久化操作对象
	 * 
	 * @param 
	 *            数据类型
	 * @param model
	 *            数据模型
	 * @return 数据持久化操作对象
	 */
	public  Repository getRepository(Class model);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy