info.archinnov.achilles.proxy.wrapper.builder.ThriftJoinWideMapWrapperBuilder 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.entity.operations.ThriftEntityLoader;
import info.archinnov.achilles.entity.operations.ThriftEntityPersister;
import info.archinnov.achilles.entity.operations.ThriftEntityProxifier;
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.ThriftJoinWideMapWrapper;
/**
* ThriftJoinWideMapWrapperBuilder
*
* @author DuyHai DOAN
*
*/
public class ThriftJoinWideMapWrapperBuilder
{
private Object id;
private ThriftGenericWideRowDao dao;
private PropertyMeta joinExternalWideMapMeta;
private ThriftEntityInterceptor> interceptor;
private ThriftEntityPersister persister;
private ThriftEntityLoader loader;
private ThriftEntityProxifier proxifier;
private ThriftPropertyHelper thriftPropertyHelper;
private ThriftCompositeFactory thriftCompositeFactory;
private ThriftKeyValueFactory thriftKeyValueFactory;
private ThriftIteratorFactory thriftIteratorFactory;
private ThriftPersistenceContext context;
public ThriftJoinWideMapWrapperBuilder(Object id, ThriftGenericWideRowDao dao,
PropertyMeta joinExternalWideMapMeta)
{
this.dao = dao;
this.id = id;
this.joinExternalWideMapMeta = joinExternalWideMapMeta;
}
public static ThriftJoinWideMapWrapperBuilder builder(Object id,
ThriftGenericWideRowDao dao, PropertyMeta joinExternalWideMapMeta)
{
return new ThriftJoinWideMapWrapperBuilder(id, dao, joinExternalWideMapMeta);
}
public ThriftJoinWideMapWrapperBuilder interceptor(ThriftEntityInterceptor> interceptor)
{
this.interceptor = interceptor;
return this;
}
public ThriftJoinWideMapWrapperBuilder context(ThriftPersistenceContext context)
{
this.context = context;
return this;
}
public ThriftJoinWideMapWrapperBuilder proxifier(ThriftEntityProxifier proxifier)
{
this.proxifier = proxifier;
return this;
}
public ThriftJoinWideMapWrapperBuilder persister(ThriftEntityPersister persister)
{
this.persister = persister;
return this;
}
public ThriftJoinWideMapWrapperBuilder loader(ThriftEntityLoader loader)
{
this.loader = loader;
return this;
}
public ThriftJoinWideMapWrapperBuilder thriftPropertyHelper(
ThriftPropertyHelper thriftPropertyHelper)
{
this.thriftPropertyHelper = thriftPropertyHelper;
return this;
}
public ThriftJoinWideMapWrapperBuilder thriftCompositeFactory(
ThriftCompositeFactory thriftCompositeFactory)
{
this.thriftCompositeFactory = thriftCompositeFactory;
return this;
}
public ThriftJoinWideMapWrapperBuilder thriftKeyValueFactory(
ThriftKeyValueFactory thriftKeyValueFactory)
{
this.thriftKeyValueFactory = thriftKeyValueFactory;
return this;
}
public ThriftJoinWideMapWrapperBuilder thriftIteratorFactory(
ThriftIteratorFactory thriftIteratorFactory)
{
this.thriftIteratorFactory = thriftIteratorFactory;
return this;
}
public ThriftJoinWideMapWrapper build()
{
ThriftJoinWideMapWrapper wrapper = new ThriftJoinWideMapWrapper();
wrapper.setId(id);
wrapper.setDao(dao);
wrapper.setExternalWideMapMeta(joinExternalWideMapMeta);
wrapper.setInterceptor(interceptor);
wrapper.setEntityProxifier(proxifier);
wrapper.setCompositeHelper(thriftPropertyHelper);
wrapper.setCompositeKeyFactory(thriftCompositeFactory);
wrapper.setIteratorFactory(thriftIteratorFactory);
wrapper.setKeyValueFactory(thriftKeyValueFactory);
wrapper.setLoader(loader);
wrapper.setPersister(persister);
wrapper.setContext(context);
return wrapper;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy