All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lsn.spring.dictionary.domain.DictionaryDaoInterface Maven / Gradle / Ivy

The newest version!
package io.lsn.spring.dictionary.domain;

import org.apache.ibatis.annotations.Param;

public interface DictionaryDaoInterface {

    /**
     * get dictionary with or without elements; the returned string should be valid JSON aligned with Dictionary and DictionaryItem model
     *
     * @param filter
     * @return
     */
    String getDictionary(@Param("filter") DictionaryFilter filter);

    /**
     * insert dictionary into to the dictionary table
     *
     * @param dictionary
     */
    void insert(@Param("dictionary") Dictionary dictionary);


    /**
     * insert dictionary item to the dictionary_item table
     *
     * @param dictionaryItem
     */
    void insertDictionaryItem(@Param("dictionaryItem") DictionaryItem dictionaryItem);


    /**
     * update dictionary element in the dictionary_item table
     *
     * @param dictionaryItem
     */
    void updateDictionaryItem(@Param("dictionaryItem") DictionaryItem dictionaryItem);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy