1 4 package com.nightlabs.ipanema.accounting; 5 6 import java.io.Serializable ; 7 8 9 24 public class PriceFragment 25 implements Serializable 26 { 27 31 private String organisationID; 32 33 36 private long priceConfigID; 37 38 41 private long priceID; 42 43 47 private String priceFragmentTypeOrganisationID; 48 49 53 private String priceFragmentTypeID; 54 55 private PriceFragmentType priceFragmentType; 56 57 private Price price; 58 59 private Currency currency; 60 61 private long amount = 0; 62 63 protected PriceFragment() { } 64 65 public PriceFragment(Price price, PriceFragmentType priceFragmentType) 66 { 67 this.price = price; 68 this.organisationID = price.getOrganisationID(); 69 this.priceConfigID = price.getPriceConfigID(); 70 this.priceID = price.getPriceID(); 71 this.currency = price.getCurrency(); 72 this.priceFragmentTypeOrganisationID = priceFragmentType.getOrganisationID(); 73 this.priceFragmentTypeID = priceFragmentType.getPriceFragmentTypeID(); 74 this.priceFragmentType = priceFragmentType; 75 } 76 77 public PriceFragment(Price price, PriceFragment origPriceFragment) 78 { 79 this.price = price; 80 this.organisationID = price.getOrganisationID(); 81 this.priceConfigID = price.getPriceConfigID(); 82 this.priceID = price.getPriceID(); 83 this.currency = price.getCurrency(); 84 this.priceFragmentTypeOrganisationID = origPriceFragment.priceFragmentTypeOrganisationID; 85 this.priceFragmentTypeID = origPriceFragment.getPriceFragmentTypeID(); 86 this.priceFragmentType = origPriceFragment.getPriceFragmentType(); 87 this.amount = origPriceFragment.getAmount(); 88 } 89 90 93 public String getOrganisationID() 94 { 95 return organisationID; 96 } 97 100 public long getPriceConfigID() 101 { 102 return priceConfigID; 103 } 104 107 public long getPriceID() 108 { 109 return priceID; 110 } 111 114 public String getPriceFragmentTypeOrganisationID() 115 { 116 return priceFragmentTypeOrganisationID; 117 } 118 121 public String getPriceFragmentTypeID() 122 { 123 return priceFragmentTypeID; 124 } 125 128 public PriceFragmentType getPriceFragmentType() 129 { 130 return priceFragmentType; 131 } 132 135 public long getAmount() 136 { 137 return amount; 138 } 139 142 public void setAmount(long amount) 143 { 144 this.amount = amount; 145 } 146 } 147 | Popular Tags |