Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.pjsofts.eurobudget.beans
Class FileData  view FileData download FileData.java

java.lang.Object
  extended bycom.pjsofts.eurobudget.beans.FileData
All Implemented Interfaces:
java.io.Serializable

public class FileData
extends java.lang.Object
implements java.io.Serializable

Bean Standard. Main object which contains all information for an EuroBudget sesssion. It is the object which is saved into file through serialization. Should minimize all changes to this class as it may breaks its persistence (serial uid of the class will change and old files could'nt be load again) Note on xml encoding/decoding:seems to fail on ArrayList;SortedSet and some others !


Field Summary
private  AccountGroup[] accountGroups
           
private  java.util.Vector accounts
          All account of the owner
private  java.util.Vector banks
          All banks
private  CategoryGroup[] categoryGroups
          group of ctg, Items: CategoryGroup , no more Set to allow better serialization in xml
private  java.util.SortedMap costCategories
          All categories SortedMap(key:Category) of List//SortedSet of Categories
private  java.util.Date creationDate
           
private  java.lang.String creationUser
           
private  java.util.Vector entities
          All entities
static java.lang.String FILE_STAMP
           
 int FILE_VERSION
          may be usefull later on (not static to be saved with other fields)
private  java.util.List goods
          List of Goods
private  TypeOfGood[] goodTypes
           
private  java.util.List impots
          List of Impots Impots (not report, but what has been set and predictions of what we will pay) Depend of the country also.
private  java.util.Date lastAccessDate
           
private  java.lang.String lastAccessUser
           
private  java.util.Date lastModifyDate
           
private  java.lang.String lastModifyUser
           
private  Entity owner
          Doer of this account
private  java.lang.String passwordHint
           
private  java.util.List periodicTxns
          List of PeriodicTxn
private  java.util.SortedMap revenueCategories
          All categories SortedMap(key:Category) of SortedSet//ArrayList of Categories
private  java.util.List savedReports
          List of ReportSaved Saved reports
private static long serialVersionUID
           
 
Constructor Summary
FileData()
          Creates a new instance of FileData
 
Method Summary
 java.util.Vector getAccounts()
          Getter for property accounts.
 java.util.Vector getBanks()
          Getter for property banks.
 CategoryGroup[] getCategoryGroups()
          Getter for property categoryGroups.
 java.util.SortedMap getCostCategories()
          Getter for property costCategories.
 java.util.Date getCreationDate()
          Getter for property creationDate.
 java.lang.String getCreationUser()
          Getter for property creationUser.
 java.util.Vector getEntities()
          Getter for property entities.
 java.util.List getGoods()
          Getter for property goods.
 TypeOfGood[] getGoodTypes()
          Getter for property goodTypes.
 java.util.List getImpots()
          Getter for property impots.
 java.util.Date getLastAccessDate()
          Getter for property lastAccessDate.
 java.lang.String getLastAccessUser()
          Getter for property lastAccessUser.
 java.util.Date getLastModifyDate()
          Getter for property lastModifyDate.
 java.lang.String getLastModifyUser()
          Getter for property lastModifyUser.
 Entity getOwner()
          Getter for property owner.
 java.lang.String getPasswordHint()
          Getter for property passwordHint.
 java.util.List getPeriodicTxns()
          Getter for property periodicTxns.
 java.util.SortedMap getRevenueCategories()
          Getter for property revenueCategories.
 java.util.List getSavedReports()
          Getter for property savedReports.
 void setAccounts(java.util.Vector accounts)
          Setter for property accounts.
 void setBanks(java.util.Vector banks)
          Setter for property banks.
 void setCategoryGroups(CategoryGroup[] categoryGroups)
          Setter for property categoryGroups.
 void setCostCategories(java.util.SortedMap costCategories)
          Setter for property costCategories.
 void setCreationDate(java.util.Date creationDate)
          Setter for property creationDate.
 void setCreationUser(java.lang.String creationUser)
          Setter for property creationUser.
 void setEntities(java.util.Vector entities)
          Setter for property entities.
 void setGoods(java.util.List goods)
          Setter for property goods.
 void setGoodTypes(TypeOfGood[] goodTypes)
          Setter for property goodTypes.
 void setImpots(java.util.List impots)
          Setter for property impots.
 void setLastAccessDate(java.util.Date lastAccessDate)
          Setter for property lastAccessDate.
 void setLastAccessUser(java.lang.String lastAccessUser)
          Setter for property lastAccessUser.
 void setLastModifyDate(java.util.Date lastModifyDate)
          Setter for property lastModifyDate.
 void setLastModifyUser(java.lang.String lastModifyUser)
          Setter for property lastModifyUser.
 void setOwner(Entity owner)
          Setter for property owner.
 void setPasswordHint(java.lang.String passwordHint)
          Setter for property passwordHint.
 void setPeriodicTxns(java.util.List periodicTxns)
          Setter for property periodicTxns.
 void setRevenueCategories(java.util.SortedMap revenueCategories)
          Setter for property revenueCategories.
 void setSavedReports(java.util.List savedReports)
          Setter for property savedReports.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

FILE_STAMP

public static final java.lang.String FILE_STAMP
See Also:
Constant Field Values

FILE_VERSION

public final int FILE_VERSION
may be usefull later on (not static to be saved with other fields)

See Also:
Constant Field Values

lastModifyDate

private java.util.Date lastModifyDate

lastModifyUser

private java.lang.String lastModifyUser

lastAccessDate

private java.util.Date lastAccessDate

lastAccessUser

private java.lang.String lastAccessUser

creationDate

private java.util.Date creationDate

creationUser

private java.lang.String creationUser

passwordHint

private java.lang.String passwordHint

owner

private Entity owner
Doer of this account


accounts

private java.util.Vector accounts
All account of the owner


entities

private java.util.Vector entities
All entities


banks

private java.util.Vector banks
All banks


costCategories

private java.util.SortedMap costCategories
All categories SortedMap(key:Category) of List//SortedSet of Categories


revenueCategories

private java.util.SortedMap revenueCategories
All categories SortedMap(key:Category) of SortedSet//ArrayList of Categories


categoryGroups

private CategoryGroup[] categoryGroups
group of ctg, Items: CategoryGroup , no more Set to allow better serialization in xml


accountGroups

private AccountGroup[] accountGroups

goodTypes

private TypeOfGood[] goodTypes

goods

private java.util.List goods
List of Goods


impots

private transient java.util.List impots
List of Impots Impots (not report, but what has been set and predictions of what we will pay) Depend of the country also. country decide what kind of class for entry, choices, baremes and results all may have global interface independant of country (display result) 1 or 2 per user and per year, may do more to simulate many situation: Key: user+name+year Sort on date again Need to separate: entry data (amount), choices of user (frais réel ou 10%, etc ...), Bareme of the year, Result (mensuel,year,..).


periodicTxns

private transient java.util.List periodicTxns
List of PeriodicTxn


savedReports

private transient java.util.List savedReports
List of ReportSaved Saved reports

Constructor Detail

FileData

public FileData()
Creates a new instance of FileData

Method Detail

getOwner

public Entity getOwner()
Getter for property owner.


setOwner

public void setOwner(Entity owner)
Setter for property owner.


getAccounts

public java.util.Vector getAccounts()
Getter for property accounts.


setAccounts

public void setAccounts(java.util.Vector accounts)
Setter for property accounts.


getEntities

public java.util.Vector getEntities()
Getter for property entities.


setEntities

public void setEntities(java.util.Vector entities)
Setter for property entities.


getBanks

public java.util.Vector getBanks()
Getter for property banks.


setBanks

public void setBanks(java.util.Vector banks)
Setter for property banks.


getCostCategories

public java.util.SortedMap getCostCategories()
Getter for property costCategories.


setCostCategories

public void setCostCategories(java.util.SortedMap costCategories)
Setter for property costCategories.


getRevenueCategories

public java.util.SortedMap getRevenueCategories()
Getter for property revenueCategories.


setRevenueCategories

public void setRevenueCategories(java.util.SortedMap revenueCategories)
Setter for property revenueCategories.


getCategoryGroups

public CategoryGroup[] getCategoryGroups()
Getter for property categoryGroups.


setCategoryGroups

public void setCategoryGroups(CategoryGroup[] categoryGroups)
Setter for property categoryGroups.


getGoodTypes

public TypeOfGood[] getGoodTypes()
Getter for property goodTypes.


setGoodTypes

public void setGoodTypes(TypeOfGood[] goodTypes)
Setter for property goodTypes.


getGoods

public java.util.List getGoods()
Getter for property goods.


setGoods

public void setGoods(java.util.List goods)
Setter for property goods.


getLastAccessDate

public java.util.Date getLastAccessDate()
Getter for property lastAccessDate.


setLastAccessDate

public void setLastAccessDate(java.util.Date lastAccessDate)
Setter for property lastAccessDate.


getLastAccessUser

public java.lang.String getLastAccessUser()
Getter for property lastAccessUser.


setLastAccessUser

public void setLastAccessUser(java.lang.String lastAccessUser)
Setter for property lastAccessUser.


getLastModifyDate

public java.util.Date getLastModifyDate()
Getter for property lastModifyDate.


setLastModifyDate

public void setLastModifyDate(java.util.Date lastModifyDate)
Setter for property lastModifyDate.


getLastModifyUser

public java.lang.String getLastModifyUser()
Getter for property lastModifyUser.


setLastModifyUser

public void setLastModifyUser(java.lang.String lastModifyUser)
Setter for property lastModifyUser.


getCreationDate

public java.util.Date getCreationDate()
Getter for property creationDate.


setCreationDate

public void setCreationDate(java.util.Date creationDate)
Setter for property creationDate.


getCreationUser

public java.lang.String getCreationUser()
Getter for property creationUser.


setCreationUser

public void setCreationUser(java.lang.String creationUser)
Setter for property creationUser.


getPeriodicTxns

public java.util.List getPeriodicTxns()
Getter for property periodicTxns.


setPeriodicTxns

public void setPeriodicTxns(java.util.List periodicTxns)
Setter for property periodicTxns.


getImpots

public java.util.List getImpots()
Getter for property impots.


setImpots

public void setImpots(java.util.List impots)
Setter for property impots.


getSavedReports

public java.util.List getSavedReports()
Getter for property savedReports.


setSavedReports

public void setSavedReports(java.util.List savedReports)
Setter for property savedReports.


getPasswordHint

public java.lang.String getPasswordHint()
Getter for property passwordHint.


setPasswordHint

public void setPasswordHint(java.lang.String passwordHint)
Setter for property passwordHint.