| java.lang.Object org.kuali.module.labor.util.ConsolidationUtil
ConsolidationUtil | public class ConsolidationUtil (Code) | | Utility class for helping DAOs deal with building queries for the consolidation option
|
buildAttributeCollection | public static Collection<String> buildAttributeCollection(String... extendedFields)(Code) | | This method builds the atrribute list used by balance searching
Parameters: extendedFields - extra fields List an attribute list |
buildAttributeCollection | public static Collection<String> buildAttributeCollection(Collection<String> extendedFields)(Code) | | This method builds the atrribute list used by balance searching
Parameters: extendedFields - extra fields Collection an attribute list |
buildConsolidatedQuery | public static void buildConsolidatedQuery(ReportQueryByCriteria query, String... extraFields)(Code) | | Utility class for helping DAOs deal with building queries for the consolidation option
Parameters: query - Query to make consolidated Parameters: extraFields - fields included in the query Parameters: ignoredFields - to omit from the query |
buildGroupByCollection | public static Collection<String> buildGroupByCollection(Collection<String> extraFields)(Code) | | This method builds group by attribute list used by balance searching
extraFields Collection an group by attribute list |
buildGroupByCollection | public static Collection<String> buildGroupByCollection(String... extraFields)(Code) | | This method builds group by attribute list used by balance searching
extraFields Collection an group by attribute list |
consolidateA2Balances | public static Collection<LedgerBalance> consolidateA2Balances(Collection<LedgerBalance> actualBalances, Collection<LedgerBalance> effortBalances, String consolidatedBalanceTypeCode)(Code) | | Consolidates a collection of actual balances with a collection of A2 balances. The A2 balances are changed to AC, then
matched by balance key with balances from the actual collection.
Parameters: actualBalances - - collection of actual balances (consolidatedBalanceTypeCode) Parameters: effortBalances - - collection of effort balances ('A2') Parameters: consolidatedBalanceTypeCode - - balance type to change A2 records to Collection - collection with consolidated balance records |
sum | final public static String sum(String fieldName)(Code) | | wrap the given field name with SQL function "sum"
Parameters: fieldName - the given field name the wrapped field name with SQL function "sum" |
sumLedgerBalances | public static void sumLedgerBalances(LedgerBalance balance1, LedgerBalance balance2)(Code) | | Adds the amounts fields of the second balance record to the first.
Parameters: balance1 - - LedgerBalance Parameters: balance2 - - LedgerBalance |
wrapAttributeName | public static String wrapAttributeName(String attributeName, boolean isAttributeNameNeeded)(Code) | | wrap the attribute name based on the given flag: isAttributeNameNeeded
Parameters: attributeName - the given attribute name Parameters: isAttributeNameNeeded - the flag that indicates if the attribute name needs to be wrapped with consolidation the attribute name as it is if isAttributeNameNeeded is true; otherwise, the attribute name wrapped withconsolidation string |
|
|