br.com.arsmachina.tapestrycrud.factory
Interface PrimaryKeyEncoderFactory
public interface PrimaryKeyEncoderFactory
Interface that defines a factory of PrimaryKeyEncoders.
- Author:
- Thiago H. de Paula Figueiredo
build
<T,K extends Serializable> PrimaryKeyEncoder<K,T> build(Class<T> entityClass)
- Builds a
PrimaryKeyEncoder instance for the given entity class. It must return null
if the given class is not supported.
- Type Parameters:
T - an entity class.- Parameters:
entityClass - a Class entity. It cannot be null.
- Returns:
- a
DAO or null.
Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.