<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">

<sqlMap namespace="InetOrgPerson">

	<select id="getInetOrgPerson" resultClass="java.util.HashMap" parameterClass="java.util.Map">
		Select
			'inetOrgPerson' objectClass,
			pers."ID",
			pers."UID",
			pers."SN",
			pers."GIVENNAME",
			pers."CN",
			pers."MAIL",
			pers."GIVENNAME",
			pers."ADDRESS",
			pers."TELEPHONENUMBER"
		FROM csvdata pers
		WHERE pers."MAIL" LIKE #mail#
	</select>

	<select id="checkPersonForClean" resultClass="java.util.HashMap" parameterClass="java.util.Map">
		Select
			pers."ID" AS ID
		FROM csvdata pers
		WHERE pers."MAIL" LIKE #mail#
	</select>

	<select id="getInetOrgPersonList" resultClass="java.util.HashMap">
		SELECT pers."MAIL" AS mail
		FROM csvdata pers
	</select>

</sqlMap>
