public class TariffDetailUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CALC_TYPE_COMMON |
static int |
CALC_TYPE_MAX |
Constructor and Description |
---|
TariffDetailUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
flushTariffDetail(org.apache.log4j.Logger logger,
java.lang.String module,
DefaultServerSetup setup,
Preferences moduleSetup,
java.sql.Connection con,
int mid,
java.util.Calendar startMonth,
java.util.Calendar endMonth,
java.lang.String workingContracts,
long groups,
java.util.Map<bitel.billing.server.tariff.detail.TariffDetailKey,bitel.billing.server.tariff.detail.TariffDetailValue> tariffDetailMap,
java.util.Set<java.lang.Integer> tariffDetailRangeTakeAllSet,
int calcType) |
static java.util.Set<java.lang.Integer> |
getCostTypeIdSet(Preferences moduleSetup,
int calcType) |
static java.lang.String |
getCostTypeIdString(Preferences moduleSetup,
int calcType) |
static java.util.Set<java.lang.Integer> |
getCostTypeRangeTakeAllIdSet(Preferences moduleSetup) |
static void |
processRequest(bitel.billing.server.tariff.TariffRequest request,
int cid,
java.lang.Integer serviceId,
long takedAmount,
float takedCost,
long nodeAmount,
float cost,
long divisor) |
static void |
putTariffDetail(java.util.Map<bitel.billing.server.tariff.detail.TariffDetailKey,bitel.billing.server.tariff.detail.TariffDetailValue> tariffDetailMap,
bitel.billing.server.tariff.TariffRequest calcReq,
int contractId,
int serviceId,
double fullCost,
long fullAmount) |
public static final int CALC_TYPE_COMMON
public static final int CALC_TYPE_MAX
public static final void processRequest(bitel.billing.server.tariff.TariffRequest request, int cid, java.lang.Integer serviceId, long takedAmount, float takedCost, long nodeAmount, float cost, long divisor)
public static final void putTariffDetail(java.util.Map<bitel.billing.server.tariff.detail.TariffDetailKey,bitel.billing.server.tariff.detail.TariffDetailValue> tariffDetailMap, bitel.billing.server.tariff.TariffRequest calcReq, int contractId, int serviceId, double fullCost, long fullAmount)
public static final int flushTariffDetail(org.apache.log4j.Logger logger, java.lang.String module, DefaultServerSetup setup, Preferences moduleSetup, java.sql.Connection con, int mid, java.util.Calendar startMonth, java.util.Calendar endMonth, java.lang.String workingContracts, long groups, java.util.Map<bitel.billing.server.tariff.detail.TariffDetailKey,bitel.billing.server.tariff.detail.TariffDetailValue> tariffDetailMap, java.util.Set<java.lang.Integer> tariffDetailRangeTakeAllSet, int calcType) throws java.sql.SQLException
java.sql.SQLException
public static final java.util.Set<java.lang.Integer> getCostTypeIdSet(Preferences moduleSetup, int calcType)
public static final java.lang.String getCostTypeIdString(Preferences moduleSetup, int calcType)
public static final java.util.Set<java.lang.Integer> getCostTypeRangeTakeAllIdSet(Preferences moduleSetup)