info.archinnov.achilles.proxy.wrapper.builder.ThriftCounterWideMapWrapperBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of achilles-thrift Show documentation
Show all versions of achilles-thrift Show documentation
Thrift implementation for Achilles using Hector library
package info.archinnov.achilles.proxy.wrapper.builder;
import info.archinnov.achilles.composite.ThriftCompositeFactory;
import info.archinnov.achilles.context.ThriftPersistenceContext;
import info.archinnov.achilles.dao.ThriftGenericWideRowDao;
import info.archinnov.achilles.entity.metadata.PropertyMeta;
import info.archinnov.achilles.helper.ThriftPropertyHelper;
import info.archinnov.achilles.iterator.factory.ThriftIteratorFactory;
import info.archinnov.achilles.iterator.factory.ThriftKeyValueFactory;
import info.archinnov.achilles.proxy.ThriftEntityInterceptor;
import info.archinnov.achilles.proxy.wrapper.ThriftCounterWideMapWrapper;
import info.archinnov.achilles.type.Counter;
/**
* ThriftCounterWideMapWrapperBuilder
*
* @author DuyHai DOAN
*
*/
public class ThriftCounterWideMapWrapperBuilder
{
private Object id;
private ThriftGenericWideRowDao wideMapCounterDao;
private PropertyMeta propertyMeta;
private ThriftEntityInterceptor> interceptor;
protected ThriftPropertyHelper thriftPropertyHelper;
protected ThriftKeyValueFactory thriftKeyValueFactory;
protected ThriftIteratorFactory thriftIteratorFactory;
protected ThriftCompositeFactory thriftCompositeFactory;
protected ThriftPersistenceContext context;
public ThriftCounterWideMapWrapperBuilder(Object id, ThriftGenericWideRowDao wideMapCounterDao,
PropertyMeta propertyMeta)
{
this.id = id;
this.wideMapCounterDao = wideMapCounterDao;
this.propertyMeta = propertyMeta;
}
public static ThriftCounterWideMapWrapperBuilder builder(Object id,
ThriftGenericWideRowDao wideMapCounterDao, PropertyMeta propertyMeta)
{
return new ThriftCounterWideMapWrapperBuilder(id, wideMapCounterDao, propertyMeta);
}
public ThriftCounterWideMapWrapperBuilder interceptor(ThriftEntityInterceptor> interceptor)
{
this.interceptor = interceptor;
return this;
}
public ThriftCounterWideMapWrapperBuilder context(ThriftPersistenceContext context)
{
this.context = context;
return this;
}
public ThriftCounterWideMapWrapperBuilder thriftPropertyHelper(
ThriftPropertyHelper thriftPropertyHelper)
{
this.thriftPropertyHelper = thriftPropertyHelper;
return this;
}
public ThriftCounterWideMapWrapperBuilder thriftKeyValueFactory(
ThriftKeyValueFactory thriftKeyValueFactory)
{
this.thriftKeyValueFactory = thriftKeyValueFactory;
return this;
}
public ThriftCounterWideMapWrapperBuilder thriftIteratorFactory(
ThriftIteratorFactory thriftIteratorFactory)
{
this.thriftIteratorFactory = thriftIteratorFactory;
return this;
}
public ThriftCounterWideMapWrapperBuilder thriftCompositeFactory(
ThriftCompositeFactory thriftCompositeFactory)
{
this.thriftCompositeFactory = thriftCompositeFactory;
return this;
}
public ThriftCounterWideMapWrapper build()
{
ThriftCounterWideMapWrapper wrapper = new ThriftCounterWideMapWrapper();
wrapper.setId(id);
wrapper.setWideMapCounterDao(wideMapCounterDao);
wrapper.setPropertyMeta(propertyMeta);
wrapper.setInterceptor(interceptor);
wrapper.setCompositeHelper(thriftPropertyHelper);
wrapper.setIteratorFactory(thriftIteratorFactory);
wrapper.setCompositeKeyFactory(thriftCompositeFactory);
wrapper.setKeyValueFactory(thriftKeyValueFactory);
wrapper.setContext(context);
return wrapper;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy