@SuppressWarnings("null")
	@Override
	public Client findByNameAndBirthDay(String firstName,
			String lastName, String patronymic, Date birthDay) {
		if (firstName == null || lastName == null || patronymic == null
				|| birthDay == null) {
			return null;
		}
		Client result = null;
		PreparedStatement pr;
		ResultSet r;
		try {
			pr = con.prepareStatement("select ID, INN, FirstName, LastName, "
					+ "Patronymic, BirthDay, PassportNumber, image "
					+ "from tbl_Client where FirstName = ? and "
					+ "LastName = ? and Patronymic = ? and BirthDay = ?");
			pr.setString(1, firstName);
			pr.setString(2, lastName);
			pr.setString(3, patronymic);
			pr.setDate(4, new java.sql.Date (birthDay.getTime()));
			r = pr.executeQuery();
			while (r.next()) {
				result=new Client(r.getInt(1), r.getString(2),
						r.getString(3), r.getString(4), r.getString(5),
						new java.util.Date(r.getDate(6).getTime()), 
						r.getString(7),r.getBytes(8));
			}
			pr.close();
			r.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return result;
	}