public class AccountResolver
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Account |
find(ReviewDb db,
java.lang.String nameOrEmail)
Locate exactly one account matching the name or name/email string.
|
java.util.Set<Account.Id> |
findAll(ReviewDb db,
java.lang.String nameOrEmail)
Find all accounts matching the name or name/email string.
|
java.util.Set<Account.Id> |
findAllByNameOrEmail(ReviewDb db,
java.lang.String nameOrEmail)
Locate exactly one account matching the name or name/email string.
|
Account |
findByNameOrEmail(ReviewDb db,
java.lang.String nameOrEmail)
Locate exactly one account matching the name or name/email string.
|
public Account find(ReviewDb db, java.lang.String nameOrEmail) throws com.google.gwtorm.server.OrmException
nameOrEmail
- a string of the format "Full Name <email@example>", just the email
address ("email@example"), a full name ("Full Name"), an account id ("18419") or an user
name ("username").com.google.gwtorm.server.OrmException
public java.util.Set<Account.Id> findAll(ReviewDb db, java.lang.String nameOrEmail) throws com.google.gwtorm.server.OrmException
db
- open database handle.nameOrEmail
- a string of the format "Full Name <email@example>", just the email
address ("email@example"), a full name ("Full Name"), an account id ("18419") or an user
name ("username").com.google.gwtorm.server.OrmException
public Account findByNameOrEmail(ReviewDb db, java.lang.String nameOrEmail) throws com.google.gwtorm.server.OrmException
db
- open database handle.nameOrEmail
- a string of the format "Full Name <email@example>", just the email
address ("email@example"), a full name ("Full Name").com.google.gwtorm.server.OrmException
public java.util.Set<Account.Id> findAllByNameOrEmail(ReviewDb db, java.lang.String nameOrEmail) throws com.google.gwtorm.server.OrmException
db
- open database handle.nameOrEmail
- a string of the format "Full Name <email@example>", just the email
address ("email@example"), a full name ("Full Name").com.google.gwtorm.server.OrmException