001// --------------------------------------------------------------------------------
002// Copyright 2002-2024 Echo Three, LLC
003//
004// Licensed under the Apache License, Version 2.0 (the "License");
005// you may not use this file except in compliance with the License.
006// You may obtain a copy of the License at
007//
008//     http://www.apache.org/licenses/LICENSE-2.0
009//
010// Unless required by applicable law or agreed to in writing, software
011// distributed under the License is distributed on an "AS IS" BASIS,
012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013// See the License for the specific language governing permissions and
014// limitations under the License.
015// --------------------------------------------------------------------------------
016// Generated File -- DO NOT EDIT BY HAND
017// --------------------------------------------------------------------------------
018
019/**
020 * CurrencyValue.java
021 */
022
023package com.echothree.model.data.accounting.server.value;
024
025import com.echothree.model.data.accounting.common.pk.CurrencyPK;
026
027import com.echothree.model.data.accounting.server.factory.CurrencyFactory;
028
029import com.echothree.model.data.accounting.common.pk.SymbolPositionPK;
030
031import com.echothree.util.common.exception.PersistenceCloneException;
032import com.echothree.util.common.exception.PersistenceNotNullException;
033
034import com.echothree.util.server.persistence.BaseValue;
035
036import java.io.Serializable;
037
038public class CurrencyValue
039        extends BaseValue<CurrencyPK>
040        implements Cloneable, Serializable {
041    
042    private String currencyIsoName;
043    private boolean currencyIsoNameHasBeenModified = false;
044    private String symbol;
045    private boolean symbolHasBeenModified = false;
046    private SymbolPositionPK symbolPositionPK;
047    private boolean symbolPositionPKHasBeenModified = false;
048    private Boolean symbolOnListStart;
049    private boolean symbolOnListStartHasBeenModified = false;
050    private Boolean symbolOnListMember;
051    private boolean symbolOnListMemberHasBeenModified = false;
052    private Boolean symbolOnSubtotal;
053    private boolean symbolOnSubtotalHasBeenModified = false;
054    private Boolean symbolOnTotal;
055    private boolean symbolOnTotalHasBeenModified = false;
056    private String groupingSeparator;
057    private boolean groupingSeparatorHasBeenModified = false;
058    private Integer groupingSize;
059    private boolean groupingSizeHasBeenModified = false;
060    private String fractionSeparator;
061    private boolean fractionSeparatorHasBeenModified = false;
062    private Integer defaultFractionDigits;
063    private boolean defaultFractionDigitsHasBeenModified = false;
064    private Integer priceUnitFractionDigits;
065    private boolean priceUnitFractionDigitsHasBeenModified = false;
066    private Integer priceLineFractionDigits;
067    private boolean priceLineFractionDigitsHasBeenModified = false;
068    private Integer costUnitFractionDigits;
069    private boolean costUnitFractionDigitsHasBeenModified = false;
070    private Integer costLineFractionDigits;
071    private boolean costLineFractionDigitsHasBeenModified = false;
072    private String minusSign;
073    private boolean minusSignHasBeenModified = false;
074    private Boolean isDefault;
075    private boolean isDefaultHasBeenModified = false;
076    private Integer sortOrder;
077    private boolean sortOrderHasBeenModified = false;
078    
079    private transient Integer _hashCode = null;
080    private transient String _stringValue = null;
081    
082    private void constructFields(String currencyIsoName, String symbol, SymbolPositionPK symbolPositionPK, Boolean symbolOnListStart, Boolean symbolOnListMember, Boolean symbolOnSubtotal, Boolean symbolOnTotal, String groupingSeparator, Integer groupingSize, String fractionSeparator, Integer defaultFractionDigits, Integer priceUnitFractionDigits, Integer priceLineFractionDigits, Integer costUnitFractionDigits, Integer costLineFractionDigits, String minusSign, Boolean isDefault, Integer sortOrder)
083            throws PersistenceNotNullException {
084        checkForNull(currencyIsoName);
085        this.currencyIsoName = currencyIsoName;
086        this.symbol = symbol;
087        checkForNull(symbolPositionPK);
088        this.symbolPositionPK = symbolPositionPK;
089        this.symbolOnListStart = symbolOnListStart;
090        this.symbolOnListMember = symbolOnListMember;
091        this.symbolOnSubtotal = symbolOnSubtotal;
092        this.symbolOnTotal = symbolOnTotal;
093        checkForNull(groupingSeparator);
094        this.groupingSeparator = groupingSeparator;
095        checkForNull(groupingSize);
096        this.groupingSize = groupingSize;
097        this.fractionSeparator = fractionSeparator;
098        this.defaultFractionDigits = defaultFractionDigits;
099        this.priceUnitFractionDigits = priceUnitFractionDigits;
100        this.priceLineFractionDigits = priceLineFractionDigits;
101        this.costUnitFractionDigits = costUnitFractionDigits;
102        this.costLineFractionDigits = costLineFractionDigits;
103        checkForNull(minusSign);
104        this.minusSign = minusSign;
105        checkForNull(isDefault);
106        this.isDefault = isDefault;
107        checkForNull(sortOrder);
108        this.sortOrder = sortOrder;
109    }
110    
111    /** Creates a new instance of CurrencyValue */
112    public CurrencyValue(CurrencyPK currencyPK, String currencyIsoName, String symbol, SymbolPositionPK symbolPositionPK, Boolean symbolOnListStart, Boolean symbolOnListMember, Boolean symbolOnSubtotal, Boolean symbolOnTotal, String groupingSeparator, Integer groupingSize, String fractionSeparator, Integer defaultFractionDigits, Integer priceUnitFractionDigits, Integer priceLineFractionDigits, Integer costUnitFractionDigits, Integer costLineFractionDigits, String minusSign, Boolean isDefault, Integer sortOrder)
113            throws PersistenceNotNullException {
114        super(currencyPK);
115        constructFields(currencyIsoName, symbol, symbolPositionPK, symbolOnListStart, symbolOnListMember, symbolOnSubtotal, symbolOnTotal, groupingSeparator, groupingSize, fractionSeparator, defaultFractionDigits, priceUnitFractionDigits, priceLineFractionDigits, costUnitFractionDigits, costLineFractionDigits, minusSign, isDefault, sortOrder);
116    }
117    
118    /** Creates a new instance of CurrencyValue */
119    public CurrencyValue(String currencyIsoName, String symbol, SymbolPositionPK symbolPositionPK, Boolean symbolOnListStart, Boolean symbolOnListMember, Boolean symbolOnSubtotal, Boolean symbolOnTotal, String groupingSeparator, Integer groupingSize, String fractionSeparator, Integer defaultFractionDigits, Integer priceUnitFractionDigits, Integer priceLineFractionDigits, Integer costUnitFractionDigits, Integer costLineFractionDigits, String minusSign, Boolean isDefault, Integer sortOrder)
120            throws PersistenceNotNullException {
121        super();
122        constructFields(currencyIsoName, symbol, symbolPositionPK, symbolOnListStart, symbolOnListMember, symbolOnSubtotal, symbolOnTotal, groupingSeparator, groupingSize, fractionSeparator, defaultFractionDigits, priceUnitFractionDigits, priceLineFractionDigits, costUnitFractionDigits, costLineFractionDigits, minusSign, isDefault, sortOrder);
123    }
124    
125   @Override
126   public CurrencyFactory getBaseFactoryInstance() {
127        return CurrencyFactory.getInstance();
128    }
129    
130    @Override
131    public CurrencyValue clone() {
132        Object result;
133        
134        try {
135            result = super.clone();
136        } catch (CloneNotSupportedException cnse) {
137            // This shouldn't happen, fail when it does.
138            throw new PersistenceCloneException(cnse);
139        }
140        
141        return (CurrencyValue)result;
142    }
143    
144   @Override
145    public CurrencyPK getPrimaryKey() {
146        if(_primaryKey == null) {
147            _primaryKey = new CurrencyPK(entityId);
148        }
149        
150        return _primaryKey;
151    }
152    
153    private void clearHashAndString() {
154        _hashCode = null;
155        _stringValue = null;
156    }
157    
158    @Override
159    public int hashCode() {
160        if(_hashCode == null) {
161            int hashCode = 17;
162            
163            hashCode = 37 * hashCode + ((entityId != null) ? entityId.hashCode() : 0);
164            
165            hashCode = 37 * hashCode + ((currencyIsoName != null) ? currencyIsoName.hashCode() : 0);
166            hashCode = 37 * hashCode + ((symbol != null) ? symbol.hashCode() : 0);
167            hashCode = 37 * hashCode + ((symbolPositionPK != null) ? symbolPositionPK.hashCode() : 0);
168            hashCode = 37 * hashCode + ((symbolOnListStart != null) ? symbolOnListStart.hashCode() : 0);
169            hashCode = 37 * hashCode + ((symbolOnListMember != null) ? symbolOnListMember.hashCode() : 0);
170            hashCode = 37 * hashCode + ((symbolOnSubtotal != null) ? symbolOnSubtotal.hashCode() : 0);
171            hashCode = 37 * hashCode + ((symbolOnTotal != null) ? symbolOnTotal.hashCode() : 0);
172            hashCode = 37 * hashCode + ((groupingSeparator != null) ? groupingSeparator.hashCode() : 0);
173            hashCode = 37 * hashCode + ((groupingSize != null) ? groupingSize.hashCode() : 0);
174            hashCode = 37 * hashCode + ((fractionSeparator != null) ? fractionSeparator.hashCode() : 0);
175            hashCode = 37 * hashCode + ((defaultFractionDigits != null) ? defaultFractionDigits.hashCode() : 0);
176            hashCode = 37 * hashCode + ((priceUnitFractionDigits != null) ? priceUnitFractionDigits.hashCode() : 0);
177            hashCode = 37 * hashCode + ((priceLineFractionDigits != null) ? priceLineFractionDigits.hashCode() : 0);
178            hashCode = 37 * hashCode + ((costUnitFractionDigits != null) ? costUnitFractionDigits.hashCode() : 0);
179            hashCode = 37 * hashCode + ((costLineFractionDigits != null) ? costLineFractionDigits.hashCode() : 0);
180            hashCode = 37 * hashCode + ((minusSign != null) ? minusSign.hashCode() : 0);
181            hashCode = 37 * hashCode + ((isDefault != null) ? isDefault.hashCode() : 0);
182            hashCode = 37 * hashCode + ((sortOrder != null) ? sortOrder.hashCode() : 0);
183            
184            _hashCode = hashCode;
185        }
186        
187        return _hashCode;
188    }
189    
190    @Override
191    public String toString() {
192        if(_stringValue == null) {
193            StringBuilder stringValue = new StringBuilder("{");
194            
195            stringValue.append("entityId=").append(getEntityId());
196            
197            stringValue.append(", currencyIsoName=").append(getCurrencyIsoName());
198            stringValue.append(", symbol=").append(getSymbol());
199            stringValue.append(", symbolPositionPK=").append(getSymbolPositionPK());
200            stringValue.append(", symbolOnListStart=").append(getSymbolOnListStart());
201            stringValue.append(", symbolOnListMember=").append(getSymbolOnListMember());
202            stringValue.append(", symbolOnSubtotal=").append(getSymbolOnSubtotal());
203            stringValue.append(", symbolOnTotal=").append(getSymbolOnTotal());
204            stringValue.append(", groupingSeparator=").append(getGroupingSeparator());
205            stringValue.append(", groupingSize=").append(getGroupingSize());
206            stringValue.append(", fractionSeparator=").append(getFractionSeparator());
207            stringValue.append(", defaultFractionDigits=").append(getDefaultFractionDigits());
208            stringValue.append(", priceUnitFractionDigits=").append(getPriceUnitFractionDigits());
209            stringValue.append(", priceLineFractionDigits=").append(getPriceLineFractionDigits());
210            stringValue.append(", costUnitFractionDigits=").append(getCostUnitFractionDigits());
211            stringValue.append(", costLineFractionDigits=").append(getCostLineFractionDigits());
212            stringValue.append(", minusSign=").append(getMinusSign());
213            stringValue.append(", isDefault=").append(getIsDefault());
214            stringValue.append(", sortOrder=").append(getSortOrder());
215            
216            stringValue.append('}');
217            
218            _stringValue = stringValue.toString();
219        }
220        return _stringValue;
221    }
222    
223    @Override
224    public boolean equals(Object other) {
225        if(this == other)
226            return true;
227        
228        if(!hasIdentity())
229            return false;
230        
231        if(other instanceof  CurrencyValue) {
232            CurrencyValue that = (CurrencyValue)other;
233            
234            if(!that.hasIdentity())
235                return false;
236            
237            Long thisEntityId = getEntityId();
238            Long thatEntityId = that.getEntityId();
239            
240            boolean objectsEqual = thisEntityId.equals(thatEntityId);
241            if(objectsEqual)
242                objectsEqual = objectsEqual && isIdentical(that);
243            
244            return objectsEqual;
245        } else {
246            return false;
247        }
248    }
249    
250    public boolean isIdentical(Object other) {
251        if(other instanceof CurrencyValue) {
252            CurrencyValue that = (CurrencyValue)other;
253            boolean objectsEqual = true;
254            
255            
256            if(objectsEqual) {
257                String thisCurrencyIsoName = getCurrencyIsoName();
258                String thatCurrencyIsoName = that.getCurrencyIsoName();
259                
260                if(thisCurrencyIsoName == null) {
261                    objectsEqual = objectsEqual && (thatCurrencyIsoName == null);
262                } else {
263                    objectsEqual = objectsEqual && thisCurrencyIsoName.equals(thatCurrencyIsoName);
264                }
265            }
266            
267            if(objectsEqual) {
268                String thisSymbol = getSymbol();
269                String thatSymbol = that.getSymbol();
270                
271                if(thisSymbol == null) {
272                    objectsEqual = objectsEqual && (thatSymbol == null);
273                } else {
274                    objectsEqual = objectsEqual && thisSymbol.equals(thatSymbol);
275                }
276            }
277            
278            if(objectsEqual) {
279                SymbolPositionPK thisSymbolPositionPK = getSymbolPositionPK();
280                SymbolPositionPK thatSymbolPositionPK = that.getSymbolPositionPK();
281                
282                if(thisSymbolPositionPK == null) {
283                    objectsEqual = objectsEqual && (thatSymbolPositionPK == null);
284                } else {
285                    objectsEqual = objectsEqual && thisSymbolPositionPK.equals(thatSymbolPositionPK);
286                }
287            }
288            
289            if(objectsEqual) {
290                Boolean thisSymbolOnListStart = getSymbolOnListStart();
291                Boolean thatSymbolOnListStart = that.getSymbolOnListStart();
292                
293                if(thisSymbolOnListStart == null) {
294                    objectsEqual = objectsEqual && (thatSymbolOnListStart == null);
295                } else {
296                    objectsEqual = objectsEqual && thisSymbolOnListStart.equals(thatSymbolOnListStart);
297                }
298            }
299            
300            if(objectsEqual) {
301                Boolean thisSymbolOnListMember = getSymbolOnListMember();
302                Boolean thatSymbolOnListMember = that.getSymbolOnListMember();
303                
304                if(thisSymbolOnListMember == null) {
305                    objectsEqual = objectsEqual && (thatSymbolOnListMember == null);
306                } else {
307                    objectsEqual = objectsEqual && thisSymbolOnListMember.equals(thatSymbolOnListMember);
308                }
309            }
310            
311            if(objectsEqual) {
312                Boolean thisSymbolOnSubtotal = getSymbolOnSubtotal();
313                Boolean thatSymbolOnSubtotal = that.getSymbolOnSubtotal();
314                
315                if(thisSymbolOnSubtotal == null) {
316                    objectsEqual = objectsEqual && (thatSymbolOnSubtotal == null);
317                } else {
318                    objectsEqual = objectsEqual && thisSymbolOnSubtotal.equals(thatSymbolOnSubtotal);
319                }
320            }
321            
322            if(objectsEqual) {
323                Boolean thisSymbolOnTotal = getSymbolOnTotal();
324                Boolean thatSymbolOnTotal = that.getSymbolOnTotal();
325                
326                if(thisSymbolOnTotal == null) {
327                    objectsEqual = objectsEqual && (thatSymbolOnTotal == null);
328                } else {
329                    objectsEqual = objectsEqual && thisSymbolOnTotal.equals(thatSymbolOnTotal);
330                }
331            }
332            
333            if(objectsEqual) {
334                String thisGroupingSeparator = getGroupingSeparator();
335                String thatGroupingSeparator = that.getGroupingSeparator();
336                
337                if(thisGroupingSeparator == null) {
338                    objectsEqual = objectsEqual && (thatGroupingSeparator == null);
339                } else {
340                    objectsEqual = objectsEqual && thisGroupingSeparator.equals(thatGroupingSeparator);
341                }
342            }
343            
344            if(objectsEqual) {
345                Integer thisGroupingSize = getGroupingSize();
346                Integer thatGroupingSize = that.getGroupingSize();
347                
348                if(thisGroupingSize == null) {
349                    objectsEqual = objectsEqual && (thatGroupingSize == null);
350                } else {
351                    objectsEqual = objectsEqual && thisGroupingSize.equals(thatGroupingSize);
352                }
353            }
354            
355            if(objectsEqual) {
356                String thisFractionSeparator = getFractionSeparator();
357                String thatFractionSeparator = that.getFractionSeparator();
358                
359                if(thisFractionSeparator == null) {
360                    objectsEqual = objectsEqual && (thatFractionSeparator == null);
361                } else {
362                    objectsEqual = objectsEqual && thisFractionSeparator.equals(thatFractionSeparator);
363                }
364            }
365            
366            if(objectsEqual) {
367                Integer thisDefaultFractionDigits = getDefaultFractionDigits();
368                Integer thatDefaultFractionDigits = that.getDefaultFractionDigits();
369                
370                if(thisDefaultFractionDigits == null) {
371                    objectsEqual = objectsEqual && (thatDefaultFractionDigits == null);
372                } else {
373                    objectsEqual = objectsEqual && thisDefaultFractionDigits.equals(thatDefaultFractionDigits);
374                }
375            }
376            
377            if(objectsEqual) {
378                Integer thisPriceUnitFractionDigits = getPriceUnitFractionDigits();
379                Integer thatPriceUnitFractionDigits = that.getPriceUnitFractionDigits();
380                
381                if(thisPriceUnitFractionDigits == null) {
382                    objectsEqual = objectsEqual && (thatPriceUnitFractionDigits == null);
383                } else {
384                    objectsEqual = objectsEqual && thisPriceUnitFractionDigits.equals(thatPriceUnitFractionDigits);
385                }
386            }
387            
388            if(objectsEqual) {
389                Integer thisPriceLineFractionDigits = getPriceLineFractionDigits();
390                Integer thatPriceLineFractionDigits = that.getPriceLineFractionDigits();
391                
392                if(thisPriceLineFractionDigits == null) {
393                    objectsEqual = objectsEqual && (thatPriceLineFractionDigits == null);
394                } else {
395                    objectsEqual = objectsEqual && thisPriceLineFractionDigits.equals(thatPriceLineFractionDigits);
396                }
397            }
398            
399            if(objectsEqual) {
400                Integer thisCostUnitFractionDigits = getCostUnitFractionDigits();
401                Integer thatCostUnitFractionDigits = that.getCostUnitFractionDigits();
402                
403                if(thisCostUnitFractionDigits == null) {
404                    objectsEqual = objectsEqual && (thatCostUnitFractionDigits == null);
405                } else {
406                    objectsEqual = objectsEqual && thisCostUnitFractionDigits.equals(thatCostUnitFractionDigits);
407                }
408            }
409            
410            if(objectsEqual) {
411                Integer thisCostLineFractionDigits = getCostLineFractionDigits();
412                Integer thatCostLineFractionDigits = that.getCostLineFractionDigits();
413                
414                if(thisCostLineFractionDigits == null) {
415                    objectsEqual = objectsEqual && (thatCostLineFractionDigits == null);
416                } else {
417                    objectsEqual = objectsEqual && thisCostLineFractionDigits.equals(thatCostLineFractionDigits);
418                }
419            }
420            
421            if(objectsEqual) {
422                String thisMinusSign = getMinusSign();
423                String thatMinusSign = that.getMinusSign();
424                
425                if(thisMinusSign == null) {
426                    objectsEqual = objectsEqual && (thatMinusSign == null);
427                } else {
428                    objectsEqual = objectsEqual && thisMinusSign.equals(thatMinusSign);
429                }
430            }
431            
432            if(objectsEqual) {
433                Boolean thisIsDefault = getIsDefault();
434                Boolean thatIsDefault = that.getIsDefault();
435                
436                if(thisIsDefault == null) {
437                    objectsEqual = objectsEqual && (thatIsDefault == null);
438                } else {
439                    objectsEqual = objectsEqual && thisIsDefault.equals(thatIsDefault);
440                }
441            }
442            
443            if(objectsEqual) {
444                Integer thisSortOrder = getSortOrder();
445                Integer thatSortOrder = that.getSortOrder();
446                
447                if(thisSortOrder == null) {
448                    objectsEqual = objectsEqual && (thatSortOrder == null);
449                } else {
450                    objectsEqual = objectsEqual && thisSortOrder.equals(thatSortOrder);
451                }
452            }
453            
454            return objectsEqual;
455        } else {
456            return false;
457        }
458    }
459    
460    @Override
461    public boolean hasBeenModified() {
462        return currencyIsoNameHasBeenModified || symbolHasBeenModified || symbolPositionPKHasBeenModified || symbolOnListStartHasBeenModified || symbolOnListMemberHasBeenModified || symbolOnSubtotalHasBeenModified || symbolOnTotalHasBeenModified || groupingSeparatorHasBeenModified || groupingSizeHasBeenModified || fractionSeparatorHasBeenModified || defaultFractionDigitsHasBeenModified || priceUnitFractionDigitsHasBeenModified || priceLineFractionDigitsHasBeenModified || costUnitFractionDigitsHasBeenModified || costLineFractionDigitsHasBeenModified || minusSignHasBeenModified || isDefaultHasBeenModified || sortOrderHasBeenModified;
463    }
464    
465    @Override
466    public void clearHasBeenModified() {
467        currencyIsoNameHasBeenModified = false;
468        symbolHasBeenModified = false;
469        symbolPositionPKHasBeenModified = false;
470        symbolOnListStartHasBeenModified = false;
471        symbolOnListMemberHasBeenModified = false;
472        symbolOnSubtotalHasBeenModified = false;
473        symbolOnTotalHasBeenModified = false;
474        groupingSeparatorHasBeenModified = false;
475        groupingSizeHasBeenModified = false;
476        fractionSeparatorHasBeenModified = false;
477        defaultFractionDigitsHasBeenModified = false;
478        priceUnitFractionDigitsHasBeenModified = false;
479        priceLineFractionDigitsHasBeenModified = false;
480        costUnitFractionDigitsHasBeenModified = false;
481        costLineFractionDigitsHasBeenModified = false;
482        minusSignHasBeenModified = false;
483        isDefaultHasBeenModified = false;
484        sortOrderHasBeenModified = false;
485    }
486    
487    public String getCurrencyIsoName() {
488        return currencyIsoName;
489    }
490    
491    public void setCurrencyIsoName(String currencyIsoName)
492            throws PersistenceNotNullException {
493        checkForNull(currencyIsoName);
494        
495        boolean update = true;
496        
497        if(this.currencyIsoName != null) {
498            if(this.currencyIsoName.equals(currencyIsoName)) {
499                update = false;
500            }
501        } else if(currencyIsoName == null) {
502            update = false;
503        }
504        
505        if(update) {
506            this.currencyIsoName = currencyIsoName;
507            currencyIsoNameHasBeenModified = true;
508            clearHashAndString();
509        }
510    }
511    
512    public boolean getCurrencyIsoNameHasBeenModified() {
513        return currencyIsoNameHasBeenModified;
514    }
515    
516    public String getSymbol() {
517        return symbol;
518    }
519    
520    public void setSymbol(String symbol) {
521        boolean update = true;
522        
523        if(this.symbol != null) {
524            if(this.symbol.equals(symbol)) {
525                update = false;
526            }
527        } else if(symbol == null) {
528            update = false;
529        }
530        
531        if(update) {
532            this.symbol = symbol;
533            symbolHasBeenModified = true;
534            clearHashAndString();
535        }
536    }
537    
538    public boolean getSymbolHasBeenModified() {
539        return symbolHasBeenModified;
540    }
541    
542    public SymbolPositionPK getSymbolPositionPK() {
543        return symbolPositionPK;
544    }
545    
546    public void setSymbolPositionPK(SymbolPositionPK symbolPositionPK)
547            throws PersistenceNotNullException {
548        checkForNull(symbolPositionPK);
549        
550        boolean update = true;
551        
552        if(this.symbolPositionPK != null) {
553            if(this.symbolPositionPK.equals(symbolPositionPK)) {
554                update = false;
555            }
556        } else if(symbolPositionPK == null) {
557            update = false;
558        }
559        
560        if(update) {
561            this.symbolPositionPK = symbolPositionPK;
562            symbolPositionPKHasBeenModified = true;
563            clearHashAndString();
564        }
565    }
566    
567    public boolean getSymbolPositionPKHasBeenModified() {
568        return symbolPositionPKHasBeenModified;
569    }
570    
571    public Boolean getSymbolOnListStart() {
572        return symbolOnListStart;
573    }
574    
575    public void setSymbolOnListStart(Boolean symbolOnListStart) {
576        boolean update = true;
577        
578        if(this.symbolOnListStart != null) {
579            if(this.symbolOnListStart.equals(symbolOnListStart)) {
580                update = false;
581            }
582        } else if(symbolOnListStart == null) {
583            update = false;
584        }
585        
586        if(update) {
587            this.symbolOnListStart = symbolOnListStart;
588            symbolOnListStartHasBeenModified = true;
589            clearHashAndString();
590        }
591    }
592    
593    public boolean getSymbolOnListStartHasBeenModified() {
594        return symbolOnListStartHasBeenModified;
595    }
596    
597    public Boolean getSymbolOnListMember() {
598        return symbolOnListMember;
599    }
600    
601    public void setSymbolOnListMember(Boolean symbolOnListMember) {
602        boolean update = true;
603        
604        if(this.symbolOnListMember != null) {
605            if(this.symbolOnListMember.equals(symbolOnListMember)) {
606                update = false;
607            }
608        } else if(symbolOnListMember == null) {
609            update = false;
610        }
611        
612        if(update) {
613            this.symbolOnListMember = symbolOnListMember;
614            symbolOnListMemberHasBeenModified = true;
615            clearHashAndString();
616        }
617    }
618    
619    public boolean getSymbolOnListMemberHasBeenModified() {
620        return symbolOnListMemberHasBeenModified;
621    }
622    
623    public Boolean getSymbolOnSubtotal() {
624        return symbolOnSubtotal;
625    }
626    
627    public void setSymbolOnSubtotal(Boolean symbolOnSubtotal) {
628        boolean update = true;
629        
630        if(this.symbolOnSubtotal != null) {
631            if(this.symbolOnSubtotal.equals(symbolOnSubtotal)) {
632                update = false;
633            }
634        } else if(symbolOnSubtotal == null) {
635            update = false;
636        }
637        
638        if(update) {
639            this.symbolOnSubtotal = symbolOnSubtotal;
640            symbolOnSubtotalHasBeenModified = true;
641            clearHashAndString();
642        }
643    }
644    
645    public boolean getSymbolOnSubtotalHasBeenModified() {
646        return symbolOnSubtotalHasBeenModified;
647    }
648    
649    public Boolean getSymbolOnTotal() {
650        return symbolOnTotal;
651    }
652    
653    public void setSymbolOnTotal(Boolean symbolOnTotal) {
654        boolean update = true;
655        
656        if(this.symbolOnTotal != null) {
657            if(this.symbolOnTotal.equals(symbolOnTotal)) {
658                update = false;
659            }
660        } else if(symbolOnTotal == null) {
661            update = false;
662        }
663        
664        if(update) {
665            this.symbolOnTotal = symbolOnTotal;
666            symbolOnTotalHasBeenModified = true;
667            clearHashAndString();
668        }
669    }
670    
671    public boolean getSymbolOnTotalHasBeenModified() {
672        return symbolOnTotalHasBeenModified;
673    }
674    
675    public String getGroupingSeparator() {
676        return groupingSeparator;
677    }
678    
679    public void setGroupingSeparator(String groupingSeparator)
680            throws PersistenceNotNullException {
681        checkForNull(groupingSeparator);
682        
683        boolean update = true;
684        
685        if(this.groupingSeparator != null) {
686            if(this.groupingSeparator.equals(groupingSeparator)) {
687                update = false;
688            }
689        } else if(groupingSeparator == null) {
690            update = false;
691        }
692        
693        if(update) {
694            this.groupingSeparator = groupingSeparator;
695            groupingSeparatorHasBeenModified = true;
696            clearHashAndString();
697        }
698    }
699    
700    public boolean getGroupingSeparatorHasBeenModified() {
701        return groupingSeparatorHasBeenModified;
702    }
703    
704    public Integer getGroupingSize() {
705        return groupingSize;
706    }
707    
708    public void setGroupingSize(Integer groupingSize)
709            throws PersistenceNotNullException {
710        checkForNull(groupingSize);
711        
712        boolean update = true;
713        
714        if(this.groupingSize != null) {
715            if(this.groupingSize.equals(groupingSize)) {
716                update = false;
717            }
718        } else if(groupingSize == null) {
719            update = false;
720        }
721        
722        if(update) {
723            this.groupingSize = groupingSize;
724            groupingSizeHasBeenModified = true;
725            clearHashAndString();
726        }
727    }
728    
729    public boolean getGroupingSizeHasBeenModified() {
730        return groupingSizeHasBeenModified;
731    }
732    
733    public String getFractionSeparator() {
734        return fractionSeparator;
735    }
736    
737    public void setFractionSeparator(String fractionSeparator) {
738        boolean update = true;
739        
740        if(this.fractionSeparator != null) {
741            if(this.fractionSeparator.equals(fractionSeparator)) {
742                update = false;
743            }
744        } else if(fractionSeparator == null) {
745            update = false;
746        }
747        
748        if(update) {
749            this.fractionSeparator = fractionSeparator;
750            fractionSeparatorHasBeenModified = true;
751            clearHashAndString();
752        }
753    }
754    
755    public boolean getFractionSeparatorHasBeenModified() {
756        return fractionSeparatorHasBeenModified;
757    }
758    
759    public Integer getDefaultFractionDigits() {
760        return defaultFractionDigits;
761    }
762    
763    public void setDefaultFractionDigits(Integer defaultFractionDigits) {
764        boolean update = true;
765        
766        if(this.defaultFractionDigits != null) {
767            if(this.defaultFractionDigits.equals(defaultFractionDigits)) {
768                update = false;
769            }
770        } else if(defaultFractionDigits == null) {
771            update = false;
772        }
773        
774        if(update) {
775            this.defaultFractionDigits = defaultFractionDigits;
776            defaultFractionDigitsHasBeenModified = true;
777            clearHashAndString();
778        }
779    }
780    
781    public boolean getDefaultFractionDigitsHasBeenModified() {
782        return defaultFractionDigitsHasBeenModified;
783    }
784    
785    public Integer getPriceUnitFractionDigits() {
786        return priceUnitFractionDigits;
787    }
788    
789    public void setPriceUnitFractionDigits(Integer priceUnitFractionDigits) {
790        boolean update = true;
791        
792        if(this.priceUnitFractionDigits != null) {
793            if(this.priceUnitFractionDigits.equals(priceUnitFractionDigits)) {
794                update = false;
795            }
796        } else if(priceUnitFractionDigits == null) {
797            update = false;
798        }
799        
800        if(update) {
801            this.priceUnitFractionDigits = priceUnitFractionDigits;
802            priceUnitFractionDigitsHasBeenModified = true;
803            clearHashAndString();
804        }
805    }
806    
807    public boolean getPriceUnitFractionDigitsHasBeenModified() {
808        return priceUnitFractionDigitsHasBeenModified;
809    }
810    
811    public Integer getPriceLineFractionDigits() {
812        return priceLineFractionDigits;
813    }
814    
815    public void setPriceLineFractionDigits(Integer priceLineFractionDigits) {
816        boolean update = true;
817        
818        if(this.priceLineFractionDigits != null) {
819            if(this.priceLineFractionDigits.equals(priceLineFractionDigits)) {
820                update = false;
821            }
822        } else if(priceLineFractionDigits == null) {
823            update = false;
824        }
825        
826        if(update) {
827            this.priceLineFractionDigits = priceLineFractionDigits;
828            priceLineFractionDigitsHasBeenModified = true;
829            clearHashAndString();
830        }
831    }
832    
833    public boolean getPriceLineFractionDigitsHasBeenModified() {
834        return priceLineFractionDigitsHasBeenModified;
835    }
836    
837    public Integer getCostUnitFractionDigits() {
838        return costUnitFractionDigits;
839    }
840    
841    public void setCostUnitFractionDigits(Integer costUnitFractionDigits) {
842        boolean update = true;
843        
844        if(this.costUnitFractionDigits != null) {
845            if(this.costUnitFractionDigits.equals(costUnitFractionDigits)) {
846                update = false;
847            }
848        } else if(costUnitFractionDigits == null) {
849            update = false;
850        }
851        
852        if(update) {
853            this.costUnitFractionDigits = costUnitFractionDigits;
854            costUnitFractionDigitsHasBeenModified = true;
855            clearHashAndString();
856        }
857    }
858    
859    public boolean getCostUnitFractionDigitsHasBeenModified() {
860        return costUnitFractionDigitsHasBeenModified;
861    }
862    
863    public Integer getCostLineFractionDigits() {
864        return costLineFractionDigits;
865    }
866    
867    public void setCostLineFractionDigits(Integer costLineFractionDigits) {
868        boolean update = true;
869        
870        if(this.costLineFractionDigits != null) {
871            if(this.costLineFractionDigits.equals(costLineFractionDigits)) {
872                update = false;
873            }
874        } else if(costLineFractionDigits == null) {
875            update = false;
876        }
877        
878        if(update) {
879            this.costLineFractionDigits = costLineFractionDigits;
880            costLineFractionDigitsHasBeenModified = true;
881            clearHashAndString();
882        }
883    }
884    
885    public boolean getCostLineFractionDigitsHasBeenModified() {
886        return costLineFractionDigitsHasBeenModified;
887    }
888    
889    public String getMinusSign() {
890        return minusSign;
891    }
892    
893    public void setMinusSign(String minusSign)
894            throws PersistenceNotNullException {
895        checkForNull(minusSign);
896        
897        boolean update = true;
898        
899        if(this.minusSign != null) {
900            if(this.minusSign.equals(minusSign)) {
901                update = false;
902            }
903        } else if(minusSign == null) {
904            update = false;
905        }
906        
907        if(update) {
908            this.minusSign = minusSign;
909            minusSignHasBeenModified = true;
910            clearHashAndString();
911        }
912    }
913    
914    public boolean getMinusSignHasBeenModified() {
915        return minusSignHasBeenModified;
916    }
917    
918    public Boolean getIsDefault() {
919        return isDefault;
920    }
921    
922    public void setIsDefault(Boolean isDefault)
923            throws PersistenceNotNullException {
924        checkForNull(isDefault);
925        
926        boolean update = true;
927        
928        if(this.isDefault != null) {
929            if(this.isDefault.equals(isDefault)) {
930                update = false;
931            }
932        } else if(isDefault == null) {
933            update = false;
934        }
935        
936        if(update) {
937            this.isDefault = isDefault;
938            isDefaultHasBeenModified = true;
939            clearHashAndString();
940        }
941    }
942    
943    public boolean getIsDefaultHasBeenModified() {
944        return isDefaultHasBeenModified;
945    }
946    
947    public Integer getSortOrder() {
948        return sortOrder;
949    }
950    
951    public void setSortOrder(Integer sortOrder)
952            throws PersistenceNotNullException {
953        checkForNull(sortOrder);
954        
955        boolean update = true;
956        
957        if(this.sortOrder != null) {
958            if(this.sortOrder.equals(sortOrder)) {
959                update = false;
960            }
961        } else if(sortOrder == null) {
962            update = false;
963        }
964        
965        if(update) {
966            this.sortOrder = sortOrder;
967            sortOrderHasBeenModified = true;
968            clearHashAndString();
969        }
970    }
971    
972    public boolean getSortOrderHasBeenModified() {
973        return sortOrderHasBeenModified;
974    }
975    
976}