public class UserDB
extends java.lang.Object
Constructor and Description |
---|
UserDB() |
Modifier and Type | Method and Description |
---|---|
static com.google.api.server.spi.response.CollectionResponse<User> |
collectionDefault(java.lang.Integer limit,
java.lang.String cursor) |
static void |
delete(User user) |
static boolean |
emailExist(java.lang.String email) |
static com.google.cloud.datastore.QueryResults<User> |
iteratorDefault(java.lang.Integer limit,
java.lang.String cursor) |
static User |
load(java.lang.Long id) |
static User |
loadByEmail(java.lang.String email) |
static com.googlecode.objectify.cmd.Query<User> |
queryDefault(java.lang.Integer limit,
java.lang.String cursor) |
static void |
save(User user) |
public static void save(User user)
public static User load(java.lang.Long id)
public static User loadByEmail(java.lang.String email)
public static boolean emailExist(java.lang.String email)
public static void delete(User user)
public static com.googlecode.objectify.cmd.Query<User> queryDefault(java.lang.Integer limit, java.lang.String cursor)
public static com.google.cloud.datastore.QueryResults<User> iteratorDefault(java.lang.Integer limit, java.lang.String cursor)
public static com.google.api.server.spi.response.CollectionResponse<User> collectionDefault(java.lang.Integer limit, java.lang.String cursor)