Java Doc for StockAccount.java in  » ERP-CRM-Financial » jmoney » net » sf » jmoney » stocks » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » jmoney » net.sf.jmoney.stocks 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.sf.jmoney.model2.CapitalAccount
   net.sf.jmoney.stocks.StockAccount

StockAccount
public class StockAccount extends CapitalAccount (Code)
The data model for an account.


Field Summary
protected  StringaccountNumber
    
protected  StringbrokerageFirm
    
protected  RatesTablebuyCommissionRates
     A table that allows the commission to be calculated based on the amount of any purchase.
 IObjectKeycommissionAccountKey
     The expense account into which all buy and sell commissions are entered.
 IObjectKeycurrencyKey
     Guaranteed non-null because the session default currency is set by default.
 IObjectKeydividendAccountKey
     The income account into which all dividends from stock in this account are entered.
protected  RatesTablesellCommissionRates
     A table that allows the commission to be calculated based on the amount of any sale.
 IObjectKeytax1AccountKey
     The expense account into which all amounts of tax 1 are entered.
protected  Stringtax1Name
     The name of this tax.
protected  RatesTabletax1Rates
     A table that allows a tax to be calculated from the amount of any purchase.
 IObjectKeytax2AccountKey
     The expense account into which all amounts of tax 1 are entered.
protected  Stringtax2Name
     The name of this tax.
protected  RatesTabletax2Rates
     A table that allows a tax to be calculated from the amount of any purchase.
 IObjectKeywithholdingTaxAccountKey
     The income account into which any tax withholding on dividends from stock in this account are entered.

Constructor Summary
public  StockAccount(IObjectKey objectKey, ListKey parentKey, String name, IListManager<CapitalAccount> subAccounts, String abbreviation, String comment, IObjectKey currencyKey, String brokerageFirm, String accountNumber, String tax1Name, String tax2Name, IObjectKey commissionAccountKey, IObjectKey tax1AccountKey, IObjectKey tax2AccountKey, RatesTable buyCommissionRates, RatesTable sellCommissionRates, RatesTable tax1Rates, RatesTable tax2Rates, IValues extensionValues)
     The full constructor for a StockAccount object.
public  StockAccount(IObjectKey objectKey, ListKey parent)
    

Method Summary
public  StringgetAccountNumber()
    
public  StringgetBrokerageFirm()
    
public  RatesTablegetBuyCommissionRates()
    
public  IncomeExpenseAccountgetCommissionAccount()
    
public  CommoditygetCommodity(Entry entry)
     Returns the commodity represented by the amount in this entry.
public  CurrencygetCurrency()
    
public  IncomeExpenseAccountgetDividendAccount()
    
protected  StringgetExtendablePropertySetId()
    
public  RatesTablegetSellCommissionRates()
    
public  IncomeExpenseAccountgetTax1Account()
    
public  StringgetTax1Name()
    
public  RatesTablegetTax1Rates()
    
public  IncomeExpenseAccountgetTax2Account()
    
public  StringgetTax2Name()
    
public  RatesTablegetTax2Rates()
    
public  IncomeExpenseAccountgetWithholdingTaxAccount()
    
public  voidsetAccountNumber(String accountNumber)
    
public  voidsetBrokerageFirm(String brokerageFirm)
    
public  voidsetBuyCommissionRates(RatesTable newCommissionRates)
    
public  voidsetCommissionAccount(IncomeExpenseAccount newAccount)
    
public  voidsetCurrency(Currency aCurrency)
    
public  voidsetDividendAccount(IncomeExpenseAccount newAccount)
    
public  voidsetSellCommissionRates(RatesTable newCommissionRates)
    
public  voidsetTax1Account(IncomeExpenseAccount newAccount)
    
public  voidsetTax1Name(String newTaxName)
    
public  voidsetTax1Rates(RatesTable newTaxRates)
    
public  voidsetTax2Account(IncomeExpenseAccount newAccount)
    
public  voidsetTax2Name(String newTaxName)
    
public  voidsetTax2Rates(RatesTable newTaxRates)
    
public  voidsetWithholdingTaxAccount(IncomeExpenseAccount newAccount)
    

Field Detail
accountNumber
protected String accountNumber(Code)



brokerageFirm
protected String brokerageFirm(Code)



buyCommissionRates
protected RatesTable buyCommissionRates(Code)
A table that allows the commission to be calculated based on the amount of any purchase. Null indicates no rate table is available in which case the user must enter the amount.



commissionAccountKey
IObjectKey commissionAccountKey(Code)
The expense account into which all buy and sell commissions are entered.



currencyKey
IObjectKey currencyKey(Code)
Guaranteed non-null because the session default currency is set by default.



dividendAccountKey
IObjectKey dividendAccountKey(Code)
The income account into which all dividends from stock in this account are entered.



sellCommissionRates
protected RatesTable sellCommissionRates(Code)
A table that allows the commission to be calculated based on the amount of any sale. Null indicates no rate table is available in which case the user must enter the amount.



tax1AccountKey
IObjectKey tax1AccountKey(Code)
The expense account into which all amounts of tax 1 are entered.



tax1Name
protected String tax1Name(Code)
The name of this tax. For example, in the UK a transfer stamp is charged so you might want to call this tax "Transfer Stamp".



tax1Rates
protected RatesTable tax1Rates(Code)
A table that allows a tax to be calculated from the amount of any purchase. Null indicates no rate table is available in which case the user must enter the amount. For example, in the UK a transfer stamp is charged on every purchase/sale.



tax2AccountKey
IObjectKey tax2AccountKey(Code)
The expense account into which all amounts of tax 1 are entered.



tax2Name
protected String tax2Name(Code)
The name of this tax. For example, in the UK a PTM Levy is charged so you might want to call this tax "PTM Levy".



tax2Rates
protected RatesTable tax2Rates(Code)
A table that allows a tax to be calculated from the amount of any purchase. Null indicates no rate table is available in which case the user must enter the amount. For example, in the UK a PTM levy is charged on every purchase/sale.



withholdingTaxAccountKey
IObjectKey withholdingTaxAccountKey(Code)
The income account into which any tax withholding on dividends from stock in this account are entered.




Constructor Detail
StockAccount
public StockAccount(IObjectKey objectKey, ListKey parentKey, String name, IListManager<CapitalAccount> subAccounts, String abbreviation, String comment, IObjectKey currencyKey, String brokerageFirm, String accountNumber, String tax1Name, String tax2Name, IObjectKey commissionAccountKey, IObjectKey tax1AccountKey, IObjectKey tax2AccountKey, RatesTable buyCommissionRates, RatesTable sellCommissionRates, RatesTable tax1Rates, RatesTable tax2Rates, IValues extensionValues)(Code)
The full constructor for a StockAccount object. This constructor is called only be the datastore when loading data from the datastore. The properties passed to this constructor must be valid because datastores should only pass back values that were previously saved from a StockAccount object. So, for example, we can be sure that a non-null name and currency are passed to this constructor.
Parameters:
  name - the name of the account



StockAccount
public StockAccount(IObjectKey objectKey, ListKey parent)(Code)




Method Detail
getAccountNumber
public String getAccountNumber()(Code)
the account number of this account.



getBrokerageFirm
public String getBrokerageFirm()(Code)
the bank name of this account.



getBuyCommissionRates
public RatesTable getBuyCommissionRates()(Code)



getCommissionAccount
public IncomeExpenseAccount getCommissionAccount()(Code)



getCommodity
public Commodity getCommodity(Entry entry)(Code)
Returns the commodity represented by the amount in this entry. If this entry represents an addition of stock to the account or a removal of stock from the account then the amount represents the amount of that stock. Otherwise the amount represents an amount in the currency for the account.



getCurrency
public Currency getCurrency()(Code)



getDividendAccount
public IncomeExpenseAccount getDividendAccount()(Code)
the account that contains the dividend income forstock in this account



getExtendablePropertySetId
protected String getExtendablePropertySetId()(Code)



getSellCommissionRates
public RatesTable getSellCommissionRates()(Code)



getTax1Account
public IncomeExpenseAccount getTax1Account()(Code)



getTax1Name
public String getTax1Name()(Code)



getTax1Rates
public RatesTable getTax1Rates()(Code)



getTax2Account
public IncomeExpenseAccount getTax2Account()(Code)



getTax2Name
public String getTax2Name()(Code)



getTax2Rates
public RatesTable getTax2Rates()(Code)



getWithholdingTaxAccount
public IncomeExpenseAccount getWithholdingTaxAccount()(Code)



setAccountNumber
public void setAccountNumber(String accountNumber)(Code)



setBrokerageFirm
public void setBrokerageFirm(String brokerageFirm)(Code)

Parameters:
  aBank - the name of this account.



setBuyCommissionRates
public void setBuyCommissionRates(RatesTable newCommissionRates)(Code)



setCommissionAccount
public void setCommissionAccount(IncomeExpenseAccount newAccount)(Code)



setCurrency
public void setCurrency(Currency aCurrency)(Code)



setDividendAccount
public void setDividendAccount(IncomeExpenseAccount newAccount)(Code)



setSellCommissionRates
public void setSellCommissionRates(RatesTable newCommissionRates)(Code)



setTax1Account
public void setTax1Account(IncomeExpenseAccount newAccount)(Code)



setTax1Name
public void setTax1Name(String newTaxName)(Code)



setTax1Rates
public void setTax1Rates(RatesTable newTaxRates)(Code)



setTax2Account
public void setTax2Account(IncomeExpenseAccount newAccount)(Code)



setTax2Name
public void setTax2Name(String newTaxName)(Code)



setTax2Rates
public void setTax2Rates(RatesTable newTaxRates)(Code)



setWithholdingTaxAccount
public void setWithholdingTaxAccount(IncomeExpenseAccount newAccount)(Code)



Fields inherited from net.sf.jmoney.model2.CapitalAccount
protected String abbreviation(Code)(Java Doc)
protected String comment(Code)(Java Doc)
protected IListManager<CapitalAccount> subAccounts(Code)(Java Doc)

Methods inherited from net.sf.jmoney.model2.CapitalAccount
public void addEntriesFromSubAccounts(CapitalAccount a, Collection<Entry> entriesList)(Code)(Java Doc)
public CapitalAccount createSubAccount(ExtendablePropertySet<? extends CapitalAccount> propertySet)(Code)(Java Doc)
public String getAbbreviation()(Code)(Java Doc)
public String getComment()(Code)(Java Doc)
public long[] getEntryTotalsByMonth(int startYear, int startMonth, int numberOfMonths, boolean includeSubAccounts)(Code)(Java Doc)
protected String getExtendablePropertySetId()(Code)(Java Doc)
public String getFullAccountName()(Code)(Java Doc)
public Collection<Entry> getSortedEntries(ScalarPropertyAccessor sortProperty, boolean descending)(Code)(Java Doc)
public ObjectCollection<CapitalAccount> getSubAccountCollection()(Code)(Java Doc)
public void setAbbreviation(String anAbbreviation)(Code)(Java Doc)
public void setComment(String aComment)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.