multilingual-ctap-web/src/main/java/com/ctapweb/web/server/user/UserServiceImpl.java
private boolean isEmailExist(String email) throws DatabaseException {

		boolean isExist = false;

		String queryStr = "SELECT id FROM user_account WHERE email=?";
		PreparedStatement ps;
		ResultSet rs;
		try {
			ps = dbConnection.prepareStatement(queryStr);
			ps.setString(1, email);
			rs = ps.executeQuery();
			if (rs.isBeforeFirst()) {
				isExist = true;
			}
		} catch (SQLException e) {
			throw new DatabaseException(e.getMessage());
		}
		return isExist;
	}
/**
	 * Checks if email already exists in the database.
	 * 
	 * @param email
	 * @return
	 * @throws DatabaseException
	 */
Checks if email already exists in the database.

@param email
@return
@throws DatabaseException
Checks if email already exists in the database . @param email @return @throws DatabaseException
private boolean isEmailExist(String email) throws DatabaseException {
		boolean isExist = false;
		String queryStr = "SELECT id FROM user_account WHERE email=?";
		PreparedStatement ps;
		ResultSet rs;
		try {
			ps = dbConnection.prepareStatement(queryStr);
			ps.setString(1, email);
			rs = ps.executeQuery();
			if (rs.isBeforeFirst()) {
				isExist = true;
			}
		} catch (SQLException e) {
			throw new DatabaseException(e.getMessage());
		}
		return isExist;
	}
private boolean isEmailExist ( String email ) throws DatabaseException { boolean isExist = false ; String queryStr = "SELECT id FROM user_account WHERE email=?" ; PreparedStatement ps ; ResultSet rs ; try { ps = dbConnection . prepareStatement ( queryStr ) ; ps . setString ( 1 , email ) ; rs = ps . executeQuery ( ) ; if ( rs . isBeforeFirst ( ) ) { isExist = true ; } } catch ( SQLException e ) { throw new DatabaseException ( e . getMessage ( ) ) ; } return isExist ; }
Checks if email already exists in the database.
Checks if email already exists in the database .