criteria.addSelectColumn(USER_ID);
criteria.add(USERNAME, user.getName());
List results = BasePeer.doSelect(criteria);
if (results.size() > 1)
{
throw new DataBackendException("Multiple users named '"
+ user.getName() + "' exist!");
}
return (results.size() == 1);
}