|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityService
Method Summary | |
---|---|
void |
computeValueBasedOnValuationMethod(Security security)
Calculates market value or unit value based on the security valuation method |
Security |
getByPrimaryKey(String id)
Gets a Security by primary key. |
List<Security> |
getSecuritiesByClassCodeWithUnitsGreaterThanZero(List<String> classCodes)
Gets all the Securities with the class code in the classCodes array and the units held greater than zero. |
Security |
updateIncomeChangeDate(Security security)
Updates incomeChangeDate to currentDate |
Security |
updateInterestRate(Security theSecurity,
BigDecimal interestRate)
This method will update the interest rate or amount |
Security |
updateUnitValue(Security security,
BigDecimal newUnitValue,
Date newValueDate,
String newUnitValueSource)
This method will perform the following updates: 1) Copy current Security Unit Value to Previous Unit Value 2) Copy current Security Value Date to Previous Unit Value Date 3) Copy newUnitValue to current Security Unit Value 4) Copy newValueDate to current Security Unit Value Date 5) Copy newUnitValueSource to Unit Value Source |
Method Detail |
---|
void computeValueBasedOnValuationMethod(Security security)
security
- the security for which we calculate the market value or unit valueSecurity updateUnitValue(Security security, BigDecimal newUnitValue, Date newValueDate, String newUnitValueSource)
security
- the BO that needs to be updated.newUnitValue
- the new unit value for that securitynewValueDate
- the new value date for that securitynewUnitValueSource
- the new unit value source for that security
Security updateInterestRate(Security theSecurity, BigDecimal interestRate)
Security updateIncomeChangeDate(Security security)
id
- Security getByPrimaryKey(String id)
id
-
List<Security> getSecuritiesByClassCodeWithUnitsGreaterThanZero(List<String> classCodes)
classCodes
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |