public class BCardDB
extends java.lang.Object
Constructor and Description |
---|
BCardDB() |
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<MyBCard> |
allMyCards(java.lang.Long userId) |
protected static <E> com.google.api.server.spi.response.CollectionResponse<E> |
buildCollectionResponse(com.google.cloud.datastore.QueryResults<E> iterator,
java.lang.Long time) |
static com.google.api.server.spi.response.CollectionResponse<BCard> |
collectionDefault(java.lang.Integer limit,
java.lang.String cursor) |
static com.google.api.server.spi.response.CollectionResponse<BCard> |
collectionNoShortId(java.lang.Integer limit,
java.lang.String cursor) |
static void |
delete(BCard card) |
static void |
deleteCardsByUser(java.lang.Long id) |
static BCard |
getByShortId(int shortId) |
static com.google.cloud.datastore.QueryResults<BCard> |
iteratorDefault(java.lang.Integer limit,
java.lang.String cursor) |
static int |
lastShortId() |
static java.util.List<BCard> |
listBCardById(java.lang.Long id) |
static BCard |
load(java.lang.Long id) |
static BCard |
loadByApp(java.lang.Long userId,
java.lang.Long appId) |
static java.util.Map<java.lang.Long,BCard> |
loadIds(java.util.List<java.lang.Long> ids) |
static com.googlecode.objectify.cmd.Query<BCard> |
queryDefault(java.lang.Integer limit,
java.lang.String cursor) |
static BCard |
save(BCard card) |
static void |
saveMany(java.util.List<BCard> list) |
static java.util.List<BCard> |
wallet(java.util.List<java.lang.Long> userIds) |
public static void saveMany(java.util.List<BCard> list)
public static BCard load(java.lang.Long id)
public static java.util.Map<java.lang.Long,BCard> loadIds(java.util.List<java.lang.Long> ids)
public static BCard loadByApp(java.lang.Long userId, java.lang.Long appId)
public static void delete(BCard card)
public static java.util.ArrayList<MyBCard> allMyCards(java.lang.Long userId)
public static java.util.List<BCard> listBCardById(java.lang.Long id)
public static java.util.List<BCard> wallet(java.util.List<java.lang.Long> userIds)
public static void deleteCardsByUser(java.lang.Long id)
public static int lastShortId()
public static BCard getByShortId(int shortId)
public static com.googlecode.objectify.cmd.Query<BCard> queryDefault(java.lang.Integer limit, java.lang.String cursor)
public static com.google.cloud.datastore.QueryResults<BCard> iteratorDefault(java.lang.Integer limit, java.lang.String cursor)
public static com.google.api.server.spi.response.CollectionResponse<BCard> collectionDefault(java.lang.Integer limit, java.lang.String cursor)
protected static <E> com.google.api.server.spi.response.CollectionResponse<E> buildCollectionResponse(com.google.cloud.datastore.QueryResults<E> iterator, java.lang.Long time)
public static com.google.api.server.spi.response.CollectionResponse<BCard> collectionNoShortId(java.lang.Integer limit, java.lang.String cursor)