| java.lang.Object net.sf.jmoney.charts.Util
Util | public class Util (Code) | | Toolbox-Class for the access to the dataes.
This class won't be instanced.
TODO - Faucheux This class should be defined as a plug-in
author: Faucheux |
Method Summary | |
public static Account | getAccountByFullName(Session session, String name) | public static Vector | getAccountsUntilLevel(Session session, int level) | public static List | getEntriesFromAccount(Session session, CapitalAccount a) | public static List | getEntriesFromAccountAndSubaccounts(Session session, CapitalAccount a) return a list of all entries of the given account and its subaccounts. | public static List | getEntriesFromAccountBetweenDates(Session session, CapitalAccount a, Date fromDate, Date toDate) | public static long[] | getEntryTotalsByPeriod(CapitalAccount a, RegularTimePeriod startPeriod, int numberOfPeriods, boolean includeSubAccounts) | public static List | getSubAccounts(CapitalAccount a) return a list of all directs subaccounts. | public static List | getSubAccountsUntilLevel(CapitalAccount a, int level) return a list of all subaccounts until the given level. | public static long | getSumMouvementsBetweenDates(List mvt, Date fromDate, Date toDate) | public static List | sortChronogicalyEntries(List entries) return the list of the entries of an account, chronlogicaly ordered. |
getAccountsUntilLevel | public static Vector getAccountsUntilLevel(Session session, int level)(Code) | | returns as Vector the list (not ordered) the accounts till the wished level (0 are the 'root' accounts)
author: Faucheux |
getEntriesFromAccountAndSubaccounts | public static List getEntriesFromAccountAndSubaccounts(Session session, CapitalAccount a)(Code) | | return a list of all entries of the given account and its subaccounts.
Parameters: session - Parameters: a - |
getEntryTotalsByPeriod | public static long[] getEntryTotalsByPeriod(CapitalAccount a, RegularTimePeriod startPeriod, int numberOfPeriods, boolean includeSubAccounts)(Code) | | Parameters: date - Parameters: date2 - Parameters: includeSubAccounts - |
getSubAccounts | public static List getSubAccounts(CapitalAccount a)(Code) | | return a list of all directs subaccounts.
Parameters: session - Parameters: a - |
getSubAccountsUntilLevel | public static List getSubAccountsUntilLevel(CapitalAccount a, int level)(Code) | | return a list of all subaccounts until the given level.
Parameters: session - Parameters: a - |
getSumMouvementsBetweenDates | public static long getSumMouvementsBetweenDates(List mvt, Date fromDate, Date toDate)(Code) | | Return the sum of the mouvements between the two dates ; the list must be chronogically
sorted !
Parameters: mvt - Parameters: fromDate - Parameters: toDate - |
sortChronogicalyEntries | public static List sortChronogicalyEntries(List entries)(Code) | | return the list of the entries of an account, chronlogicaly ordered.
Parameters: session - Parameters: a - |
|
|