Package de.ancash.bazaar.core.dao
Class CoreDAO
- java.lang.Object
-
- de.ancash.bazaar.core.dao.CoreDAO
-
public class CoreDAO extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CoreDAO(de.ancash.bazaar.async.BazaarThreadPool threadPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
countEnquiries(EnquiryType type, java.util.UUID cuid)
int
countEnquiries(java.util.UUID uuid)
boolean
existEnquiries(EnquiryType type, java.util.UUID cuid)
java.util.Set<java.util.UUID>
getAllInfertileChildren(java.util.UUID cuid)
int
getClaimable(java.util.UUID uuid, long id, EnquiryType type)
double
getClaimableCoins(java.util.UUID uuid)
int
getClaimableItems(java.util.UUID uuid)
java.util.HashMap<java.lang.Long,java.util.HashMap<java.lang.String,java.lang.Object>>
getEnquiriesAsMap(java.util.UUID uuid, EnquiryType type)
java.util.HashMap<java.lang.String,java.lang.Object>
getEnquiryAsMap(java.util.UUID uuid, long id, EnquiryType type)
java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.Object>>
getHighestEnquiries(EnquiryType type, java.util.UUID cuid)
java.util.HashMap<java.lang.String,java.lang.Object>
getHighestEnquiry(EnquiryType type, java.util.UUID cuid)
double
getHighestEnquiryPrice(EnquiryType type)
double
getHighestEnquiryPrice(EnquiryType type, java.util.UUID cuid)
double
getHighestEnquiryPriceOrDefault(EnquiryType type, java.util.UUID cuid)
de.ancash.datastructures.tuples.Triplet<java.lang.Double,java.lang.Integer,java.lang.Integer>
getKthLargestEnquiry(EnquiryType type, java.util.UUID cuid, int k)
de.ancash.datastructures.tuples.Triplet<java.lang.Double,java.lang.Integer,java.lang.Integer>
getKthSmallestEnquiry(EnquiryType type, java.util.UUID cuid, int k)
int
getLeft(java.util.UUID uuid, long id, EnquiryType type)
java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.Object>>
getLowestEnquiries(EnquiryType type, java.util.UUID cuid)
java.util.HashMap<java.lang.String,java.lang.Object>
getLowestEnquiry(EnquiryType type, java.util.UUID cuid)
double
getLowestEnquiryPrice(EnquiryType type)
double
getLowestEnquiryPrice(EnquiryType type, java.util.UUID cuid)
double
getLowestEnquiryPriceOrDefault(EnquiryType type, java.util.UUID cuid)
double
getRemnants(java.util.UUID id)
double
getRemnants(java.util.UUID uuid, long id)
de.ancash.bazaar.config.Settings
getSettings()
int
lazyCountEnquiries(EnquiryType type, java.util.UUID cuid)
int
lazySumEnquiries(EnquiryType type, java.util.UUID cuid)
PlaceholderDAO
placeholderDAO()
void
setPlaceholderDAO(PlaceholderDAO placeholderDAO)
void
setSettings(de.ancash.bazaar.config.Settings settings)
void
setStatisticsDAO(StatisticsDAO statisticsDAO)
void
setTransactionDAO(TransactionDAO transactionDAO)
StatisticsDAO
statisticsDAO()
int
sumEnquiries(EnquiryType type, java.util.UUID cuid)
TransactionDAO
transactionDAO()
-
-
-
Method Detail
-
setTransactionDAO
public void setTransactionDAO(TransactionDAO transactionDAO)
-
setStatisticsDAO
public void setStatisticsDAO(StatisticsDAO statisticsDAO)
-
setPlaceholderDAO
public void setPlaceholderDAO(PlaceholderDAO placeholderDAO)
-
getSettings
public de.ancash.bazaar.config.Settings getSettings()
-
setSettings
public void setSettings(de.ancash.bazaar.config.Settings settings)
-
transactionDAO
public TransactionDAO transactionDAO()
-
statisticsDAO
public StatisticsDAO statisticsDAO()
-
placeholderDAO
public PlaceholderDAO placeholderDAO()
-
getHighestEnquiry
public java.util.HashMap<java.lang.String,java.lang.Object> getHighestEnquiry(EnquiryType type, java.util.UUID cuid)
-
getLowestEnquiry
public java.util.HashMap<java.lang.String,java.lang.Object> getLowestEnquiry(EnquiryType type, java.util.UUID cuid)
-
getHighestEnquiries
public java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.Object>> getHighestEnquiries(EnquiryType type, java.util.UUID cuid)
-
getLowestEnquiries
public java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.Object>> getLowestEnquiries(EnquiryType type, java.util.UUID cuid)
-
getHighestEnquiryPrice
public double getHighestEnquiryPrice(EnquiryType type)
-
getHighestEnquiryPrice
public double getHighestEnquiryPrice(EnquiryType type, java.util.UUID cuid)
-
getHighestEnquiryPriceOrDefault
public double getHighestEnquiryPriceOrDefault(EnquiryType type, java.util.UUID cuid)
-
getLowestEnquiryPrice
public double getLowestEnquiryPrice(EnquiryType type)
-
getLowestEnquiryPrice
public double getLowestEnquiryPrice(EnquiryType type, java.util.UUID cuid)
-
getLowestEnquiryPriceOrDefault
public double getLowestEnquiryPriceOrDefault(EnquiryType type, java.util.UUID cuid)
-
getKthLargestEnquiry
public de.ancash.datastructures.tuples.Triplet<java.lang.Double,java.lang.Integer,java.lang.Integer> getKthLargestEnquiry(EnquiryType type, java.util.UUID cuid, int k)
-
getKthSmallestEnquiry
public de.ancash.datastructures.tuples.Triplet<java.lang.Double,java.lang.Integer,java.lang.Integer> getKthSmallestEnquiry(EnquiryType type, java.util.UUID cuid, int k)
-
getEnquiryAsMap
public java.util.HashMap<java.lang.String,java.lang.Object> getEnquiryAsMap(java.util.UUID uuid, long id, EnquiryType type)
-
getEnquiriesAsMap
public java.util.HashMap<java.lang.Long,java.util.HashMap<java.lang.String,java.lang.Object>> getEnquiriesAsMap(java.util.UUID uuid, EnquiryType type)
-
sumEnquiries
public int sumEnquiries(EnquiryType type, java.util.UUID cuid)
-
getAllInfertileChildren
public java.util.Set<java.util.UUID> getAllInfertileChildren(java.util.UUID cuid)
-
countEnquiries
public int countEnquiries(EnquiryType type, java.util.UUID cuid)
-
lazySumEnquiries
public int lazySumEnquiries(EnquiryType type, java.util.UUID cuid)
-
lazyCountEnquiries
public int lazyCountEnquiries(EnquiryType type, java.util.UUID cuid)
-
countEnquiries
public int countEnquiries(java.util.UUID uuid)
-
existEnquiries
public boolean existEnquiries(EnquiryType type, java.util.UUID cuid)
-
getClaimableCoins
public double getClaimableCoins(java.util.UUID uuid)
-
getClaimableItems
public int getClaimableItems(java.util.UUID uuid)
-
getClaimable
public int getClaimable(java.util.UUID uuid, long id, EnquiryType type)
-
getLeft
public int getLeft(java.util.UUID uuid, long id, EnquiryType type)
-
getRemnants
public double getRemnants(java.util.UUID id)
-
getRemnants
public double getRemnants(java.util.UUID uuid, long id)
-
-