package com.style24.core.biz.dao;

import com.style24.core.support.annotation.ShopDs;
import com.style24.persistence.domain.Sequence;
import org.springframework.stereotype.Repository;

/**
 * 공용 Dao
 *
 * @author eskim
 * @since 2020. 10. 22
 */
@ShopDs
@Repository
public interface TscCommonDao {

	/**
	 * 시퀀스 조회
	 * @param value - 시퀀스명
	 * @return
	 * @author gagamel
	 * @since 2021. 1. 4
	 */
	Integer getNextSequence(String value);

	/**
	 * 시퀀스 생성
	 * @param sequence - 시퀀스정보
	 * @return
	 * @author gagamel
	 * @since 2021. 1. 4
	 */
	void createNextSequence(Sequence sequence);

}
