class MarriageDocumentTypeRepository {

	public List<Long> getIds(List<MarriageDocumentType> marriageDocumentTypeList) {
		log.debug("Differentiating Update And Create Records in getIds:: MarriageDocumentTypeRepository");
		StringBuilder idQuery = new StringBuilder("(" + marriageDocumentTypeList.get(0).getId());
		for (int index = 1; index < marriageDocumentTypeList.size(); index++) {
			idQuery.append("," + marriageDocumentTypeList.get(index).getId());
		}
		idQuery.append(")");

		List<Long> ids = jdbcTemplate.queryForList("SELECT id FROM egmr_marriage_document_type WHERE id IN " + idQuery,
				Long.class);
		return ids;
	}

}