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

info.archinnov.achilles.context.ThriftDaoContext Maven / Gradle / Ivy

There is a newer version: 2.0.9
Show newest version
package info.archinnov.achilles.context;

import info.archinnov.achilles.dao.ThriftCounterDao;
import info.archinnov.achilles.dao.ThriftGenericEntityDao;
import info.archinnov.achilles.dao.ThriftGenericWideRowDao;

import java.util.Map;

/**
 * ThriftDaoContext
 * 
 * @author DuyHai DOAN
 * 
 */
public class ThriftDaoContext
{
	private final Map entityDaosMap;
	private final Map wideRowDaosMap;
	private final ThriftCounterDao thriftCounterDao;

	public ThriftDaoContext(Map entityDaosMap,
			Map wideRowDaosMap, ThriftCounterDao thriftCounterDao)
	{
		this.entityDaosMap = entityDaosMap;
		this.wideRowDaosMap = wideRowDaosMap;
		this.thriftCounterDao = thriftCounterDao;
	}

	public ThriftCounterDao getCounterDao()
	{
		return thriftCounterDao;
	}

	public ThriftGenericEntityDao findEntityDao(String columnFamilyName)
	{
		return entityDaosMap.get(columnFamilyName);
	}

	public ThriftGenericWideRowDao findWideRowDao(String columnFamilyName)
	{
		return wideRowDaosMap.get(columnFamilyName);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy