각 검색 엔티티에 동기화 추가

앞에서 설명했듯이 일반 검색 서버 스테이징 데이터베이스는 검색 서비스 관련 엔티티가 수정되는 경우 주기적으로 업데이트해야 합니다. 둘 이상의 검색 서비스에서 단일 엔티티가 잘 사용될 수 있으며 이러한 각 검색 서비스는 해당 엔티티의 변경사항을 반영해야 합니다.

SearchController 클래스는 모든 스테이징 데이터베이스 정보를 최신으로 유지할 책임이 있습니다. 해당 검색 서비스 엔티티 조작이 실행되는 경우 애플리케이션에서 SearchControllerinsert, modify, remove 메소드를 호출해야 합니다. insertmodify SearchController 조작은 SearchServiceRow 테이블 정보를 지정된 엔티티 세부사항 구조 데이터로 수정합니다. remove 인터페이스에는 제거되는 엔티티 오브젝트를 식별하는 키와 엔티티의 이름이 필요합니다.

/** 
 * Generic insertion of entity updates to the database. 
 * 
 * @param details the object details. 
 * @param entityName the name of the entity 
 * @throws AppException application exception retrieving the 
 *   registrar
 * or during Mapper insert. 
 * @throws InformationalException information exception.
 */ 

public final void insert(final Object details, 
  final String entityName) 
    throws AppException, InformationalException
/** 
 * Generic Modify of entity updates to the database.  
 * 
 * @param details the object details. 
 * @param entityName the name of the entity 
 * @throws AppException application exception retrieving the 
 *   registrar 
 * or during Mapper modify.
 * @throws InformationalException information exception. 
 */ 
public final void modify(final Object details, 
  final String entityName) 
    throws AppException, InformationalException
/**
 * Generic remove of entity from the database.  
 *  
 * @param key the object key. 
 * @param entityName the name of the entity  
 * @throws AppException application exception.  
 * @throws InformationalException information exception.  
 */ 
public final void remove(final Object key, 
  final String entityName) throws AppException, 
    InformationalException