001package net.sf.jkniv.whinstone.classification;
002
003/**
004 * Allow transform a tabular row to one-to-many objects.
005 * 
006 * <b>Note: Implementation must be thread-safe</b>
007 * 
008 * @param <R> data row type
009 *
010 * @author Alisson Gomes
011 * @since 0.6.0
012 */
013public interface Transformable<R>
014{
015    public enum TransformableType  { MAP, OBJECT};//, RESULT_SET };
016    
017    <T> T transform(R row, Class<T> type);
018    
019    void transform(R row, Object instance);
020    
021}