public class CurrencyExchangeRateManager extends Object
| Constructor and Description |
|---|
CurrencyExchangeRateManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearRatesBeforeDate(Date d)
Czysci kursy starsze niz podana data
|
static CurrencyExchangeRate |
getCurrencyRate(Date startDate,
Date endDate,
String code)
Pobiera najnowszy kurs z danego dnia dla podanego kodu waluty
|
static List<String> |
getCurrencySet(String tableName) |
static Date |
getExtremeCurrencyDate(boolean last)
Pobiera pierwszą lub ostatnią datę z którą zapisany jest kurs
|
static void |
save(List<CurrencyExchangeRate> list)
Zapisuje liste kursów
|
static boolean |
validate(CurrencyExchangeRate cer)
Sprawdzaczy istnieje obiekt o takim samym kluczu głównym
|
public static Date getExtremeCurrencyDate(boolean last) throws Exception
last - - jezeli true to pobierze ostatnia date, jezeli false to pobierze pierwszaExceptionpublic static void clearRatesBeforeDate(Date d) throws Exception
d - - data do której zostaną usuniete kursyExceptionpublic static CurrencyExchangeRate getCurrencyRate(Date startDate, Date endDate, String code) throws Exception
startDate - początek dniaendDate - koniec dniacode - kod walutyExceptionpublic static boolean validate(CurrencyExchangeRate cer) throws Exception
cer - - obiekt zawierający informacje o kursieExceptionpublic static void save(List<CurrencyExchangeRate> list) throws Exception
list - ExceptionCopyright © 2021 Suncode. All rights reserved.