public final class DigitalGoodsHome
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DigitalGoodsHome.Event |
class |
DigitalGoodsHome.Goods |
class |
DigitalGoodsHome.Purchase |
class |
DigitalGoodsHome.Tag |
Modifier and Type | Method and Description |
---|---|
static boolean |
addGoodsListener(Listener<DigitalGoodsHome.Goods> listener,
DigitalGoodsHome.Event eventType) |
static boolean |
addPurchaseListener(Listener<DigitalGoodsHome.Purchase> listener,
DigitalGoodsHome.Event eventType) |
static DigitalGoodsHome |
forChain(ChildChain childChain) |
DbIterator<DigitalGoodsHome.Goods> |
getAllGoods(int from,
int to) |
DbIterator<DigitalGoodsHome.Purchase> |
getAllPurchases(int from,
int to) |
DbIterator<DigitalGoodsHome.Tag> |
getAllTags(int from,
int to) |
int |
getBuyerPurchaseCount(long buyerId,
boolean withPublicFeedbacksOnly,
boolean completedOnly) |
DbIterator<DigitalGoodsHome.Purchase> |
getBuyerPurchases(long buyerId,
boolean withPublicFeedbacksOnly,
boolean completedOnly,
int from,
int to) |
DbIterator<DigitalGoodsHome.Purchase> |
getExpiredSellerPurchases(long sellerId,
int from,
int to) |
DigitalGoodsHome.Goods |
getGoods(long goodsId) |
int |
getGoodsCount() |
DbIterator<DigitalGoodsHome.Goods> |
getGoodsInStock(int from,
int to) |
int |
getGoodsInStockCount() |
int |
getGoodsPurchaseCount(long goodsId,
boolean withPublicFeedbacksOnly,
boolean completedOnly) |
DbIterator<DigitalGoodsHome.Purchase> |
getGoodsPurchases(long goodsId,
long buyerId,
boolean withPublicFeedbacksOnly,
boolean completedOnly,
int from,
int to) |
DbIterator<DigitalGoodsHome.Tag> |
getInStockTags(int from,
int to) |
DigitalGoodsHome.Purchase |
getPendingPurchase(long purchaseId) |
DbIterator<DigitalGoodsHome.Purchase> |
getPendingSellerPurchases(long sellerId,
int from,
int to) |
DigitalGoodsHome.Purchase |
getPurchase(long purchaseId) |
int |
getPurchaseCount() |
int |
getPurchaseCount(boolean withPublicFeedbacksOnly,
boolean completedOnly) |
DbIterator<DigitalGoodsHome.Purchase> |
getPurchases(boolean withPublicFeedbacksOnly,
boolean completedOnly,
int from,
int to) |
int |
getSellerBuyerPurchaseCount(long sellerId,
long buyerId,
boolean withPublicFeedbacksOnly,
boolean completedOnly) |
DbIterator<DigitalGoodsHome.Purchase> |
getSellerBuyerPurchases(long sellerId,
long buyerId,
boolean withPublicFeedbacksOnly,
boolean completedOnly,
int from,
int to) |
DbIterator<DigitalGoodsHome.Goods> |
getSellerGoods(long sellerId,
boolean inStockOnly,
int from,
int to) |
int |
getSellerGoodsCount(long sellerId,
boolean inStockOnly) |
int |
getSellerPurchaseCount(long sellerId,
boolean withPublicFeedbacksOnly,
boolean completedOnly) |
DbIterator<DigitalGoodsHome.Purchase> |
getSellerPurchases(long sellerId,
boolean withPublicFeedbacksOnly,
boolean completedOnly,
int from,
int to) |
int |
getTagCount() |
int |
getTagCountInStock() |
DbIterator<DigitalGoodsHome.Tag> |
getTagsLike(java.lang.String prefix,
boolean inStockOnly,
int from,
int to) |
static boolean |
removeGoodsListener(Listener<DigitalGoodsHome.Goods> listener,
DigitalGoodsHome.Event eventType) |
static boolean |
removePurchaseListener(Listener<DigitalGoodsHome.Purchase> listener,
DigitalGoodsHome.Event eventType) |
DbIterator<DigitalGoodsHome.Goods> |
searchGoods(java.lang.String query,
boolean inStockOnly,
int from,
int to) |
DbIterator<DigitalGoodsHome.Goods> |
searchSellerGoods(java.lang.String query,
long sellerId,
boolean inStockOnly,
int from,
int to) |
public static DigitalGoodsHome forChain(ChildChain childChain)
public static boolean addGoodsListener(Listener<DigitalGoodsHome.Goods> listener, DigitalGoodsHome.Event eventType)
public static boolean removeGoodsListener(Listener<DigitalGoodsHome.Goods> listener, DigitalGoodsHome.Event eventType)
public static boolean addPurchaseListener(Listener<DigitalGoodsHome.Purchase> listener, DigitalGoodsHome.Event eventType)
public static boolean removePurchaseListener(Listener<DigitalGoodsHome.Purchase> listener, DigitalGoodsHome.Event eventType)
public int getTagCount()
public int getTagCountInStock()
public DbIterator<DigitalGoodsHome.Tag> getAllTags(int from, int to)
public DbIterator<DigitalGoodsHome.Tag> getInStockTags(int from, int to)
public DbIterator<DigitalGoodsHome.Tag> getTagsLike(java.lang.String prefix, boolean inStockOnly, int from, int to)
public int getGoodsCount()
public int getGoodsInStockCount()
public DigitalGoodsHome.Goods getGoods(long goodsId)
public DbIterator<DigitalGoodsHome.Goods> getAllGoods(int from, int to)
public DbIterator<DigitalGoodsHome.Goods> getGoodsInStock(int from, int to)
public DbIterator<DigitalGoodsHome.Goods> getSellerGoods(long sellerId, boolean inStockOnly, int from, int to)
public int getSellerGoodsCount(long sellerId, boolean inStockOnly)
public DbIterator<DigitalGoodsHome.Goods> searchGoods(java.lang.String query, boolean inStockOnly, int from, int to)
public DbIterator<DigitalGoodsHome.Goods> searchSellerGoods(java.lang.String query, long sellerId, boolean inStockOnly, int from, int to)
public int getPurchaseCount()
public int getPurchaseCount(boolean withPublicFeedbacksOnly, boolean completedOnly)
public DbIterator<DigitalGoodsHome.Purchase> getAllPurchases(int from, int to)
public DbIterator<DigitalGoodsHome.Purchase> getPurchases(boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to)
public DbIterator<DigitalGoodsHome.Purchase> getSellerPurchases(long sellerId, boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to)
public int getSellerPurchaseCount(long sellerId, boolean withPublicFeedbacksOnly, boolean completedOnly)
public DbIterator<DigitalGoodsHome.Purchase> getBuyerPurchases(long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to)
public int getBuyerPurchaseCount(long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly)
public DbIterator<DigitalGoodsHome.Purchase> getSellerBuyerPurchases(long sellerId, long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to)
public int getSellerBuyerPurchaseCount(long sellerId, long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly)
public DbIterator<DigitalGoodsHome.Purchase> getGoodsPurchases(long goodsId, long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to)
public int getGoodsPurchaseCount(long goodsId, boolean withPublicFeedbacksOnly, boolean completedOnly)
public DigitalGoodsHome.Purchase getPurchase(long purchaseId)
public DbIterator<DigitalGoodsHome.Purchase> getPendingSellerPurchases(long sellerId, int from, int to)
public DbIterator<DigitalGoodsHome.Purchase> getExpiredSellerPurchases(long sellerId, int from, int to)
public DigitalGoodsHome.Purchase getPendingPurchase(long purchaseId)