001package net.sf.jkniv.sqlegance;
002
003/**
004 * Mapping one-to-many objects relationship
005 * 
006 * @author Alisson Gomes
007 * @since 0.6.0
008 */
009public interface OneToMany
010{
011    public static final String TAG_NAME           = "one-to-many";
012    public static final String ATTRIBUTE_PROPERTY = "property";
013    public static final String ATTRIBUTE_TYPEOF   = "typeOf";
014    public static final String ATTRIBUTE_IMPL     = "impl";
015
016    /**
017     * The attribute name that hold the collection (many parts)
018     * @return property name
019     */
020    String getProperty();
021    
022    /**
023     * Class name that represents the type of collection (many parts)
024     * @return type of object
025     */
026    String getTypeOf();
027    
028    /**
029     * Class name of the collection to supports relationship (like a {@code java.util.ArrayList}
030     * @return name of collection class
031     */
032    String getImpl();
033    
034}