Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Creative commons Attribution-NonCommercial license. http://creativecommons.org/licenses/by-nc/2.5/au/deed.en_GB NO WARRANTY IS GIVEN OR IMPLIED, USE AT YOUR OWN RISK.
 
 package base.jee.api.cassandra.util;
 
Lookup the person ID associated with an email address.
Lookup the person ID associated with an email address.

Returns:
Returns null, or the personId associated with this email address.
	public static UUID getPersonUuidForEmailAddress(Session sString email) {
		PreparedStatement p = s.prepare("select uuid from person where email=?");
		ResultSet rs = s.execute(p.bind(email));
		for(Row r : rs) {
			return r.getUUID(1);
		}
		return null;
	}
New to GrepCode? Check out our FAQ X