001// --------------------------------------------------------------------------------
002// Copyright 2002-2025 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            _stringValue = "{" + 
194                    "entityId=" + getEntityId() +
195                    ", currencyIsoName=" + getCurrencyIsoName() +
196                    ", symbol=" + getSymbol() +
197                    ", symbolPositionPK=" + getSymbolPositionPK() +
198                    ", symbolOnListStart=" + getSymbolOnListStart() +
199                    ", symbolOnListMember=" + getSymbolOnListMember() +
200                    ", symbolOnSubtotal=" + getSymbolOnSubtotal() +
201                    ", symbolOnTotal=" + getSymbolOnTotal() +
202                    ", groupingSeparator=" + getGroupingSeparator() +
203                    ", groupingSize=" + getGroupingSize() +
204                    ", fractionSeparator=" + getFractionSeparator() +
205                    ", defaultFractionDigits=" + getDefaultFractionDigits() +
206                    ", priceUnitFractionDigits=" + getPriceUnitFractionDigits() +
207                    ", priceLineFractionDigits=" + getPriceLineFractionDigits() +
208                    ", costUnitFractionDigits=" + getCostUnitFractionDigits() +
209                    ", costLineFractionDigits=" + getCostLineFractionDigits() +
210                    ", minusSign=" + getMinusSign() +
211                    ", isDefault=" + getIsDefault() +
212                    ", sortOrder=" + getSortOrder() +
213                    "}";
214        }
215        return _stringValue;
216    }
217    
218    @Override
219    public boolean equals(Object other) {
220        if(this == other)
221            return true;
222        
223        if(!hasIdentity())
224            return false;
225        
226        if(other instanceof  CurrencyValue that) {
227            if(!that.hasIdentity())
228                return false;
229            
230            Long thisEntityId = getEntityId();
231            Long thatEntityId = that.getEntityId();
232            
233            boolean objectsEqual = thisEntityId.equals(thatEntityId);
234            if(objectsEqual)
235                objectsEqual = isIdentical(that);
236            
237            return objectsEqual;
238        } else {
239            return false;
240        }
241    }
242    
243    public boolean isIdentical(Object other) {
244        if(other instanceof CurrencyValue that) {
245            boolean objectsEqual = true;
246            
247            
248            if(objectsEqual) {
249                String thisCurrencyIsoName = getCurrencyIsoName();
250                String thatCurrencyIsoName = that.getCurrencyIsoName();
251                
252                if(thisCurrencyIsoName == null) {
253                    objectsEqual = objectsEqual && (thatCurrencyIsoName == null);
254                } else {
255                    objectsEqual = objectsEqual && thisCurrencyIsoName.equals(thatCurrencyIsoName);
256                }
257            }
258            
259            if(objectsEqual) {
260                String thisSymbol = getSymbol();
261                String thatSymbol = that.getSymbol();
262                
263                if(thisSymbol == null) {
264                    objectsEqual = objectsEqual && (thatSymbol == null);
265                } else {
266                    objectsEqual = objectsEqual && thisSymbol.equals(thatSymbol);
267                }
268            }
269            
270            if(objectsEqual) {
271                SymbolPositionPK thisSymbolPositionPK = getSymbolPositionPK();
272                SymbolPositionPK thatSymbolPositionPK = that.getSymbolPositionPK();
273                
274                if(thisSymbolPositionPK == null) {
275                    objectsEqual = objectsEqual && (thatSymbolPositionPK == null);
276                } else {
277                    objectsEqual = objectsEqual && thisSymbolPositionPK.equals(thatSymbolPositionPK);
278                }
279            }
280            
281            if(objectsEqual) {
282                Boolean thisSymbolOnListStart = getSymbolOnListStart();
283                Boolean thatSymbolOnListStart = that.getSymbolOnListStart();
284                
285                if(thisSymbolOnListStart == null) {
286                    objectsEqual = objectsEqual && (thatSymbolOnListStart == null);
287                } else {
288                    objectsEqual = objectsEqual && thisSymbolOnListStart.equals(thatSymbolOnListStart);
289                }
290            }
291            
292            if(objectsEqual) {
293                Boolean thisSymbolOnListMember = getSymbolOnListMember();
294                Boolean thatSymbolOnListMember = that.getSymbolOnListMember();
295                
296                if(thisSymbolOnListMember == null) {
297                    objectsEqual = objectsEqual && (thatSymbolOnListMember == null);
298                } else {
299                    objectsEqual = objectsEqual && thisSymbolOnListMember.equals(thatSymbolOnListMember);
300                }
301            }
302            
303            if(objectsEqual) {
304                Boolean thisSymbolOnSubtotal = getSymbolOnSubtotal();
305                Boolean thatSymbolOnSubtotal = that.getSymbolOnSubtotal();
306                
307                if(thisSymbolOnSubtotal == null) {
308                    objectsEqual = objectsEqual && (thatSymbolOnSubtotal == null);
309                } else {
310                    objectsEqual = objectsEqual && thisSymbolOnSubtotal.equals(thatSymbolOnSubtotal);
311                }
312            }
313            
314            if(objectsEqual) {
315                Boolean thisSymbolOnTotal = getSymbolOnTotal();
316                Boolean thatSymbolOnTotal = that.getSymbolOnTotal();
317                
318                if(thisSymbolOnTotal == null) {
319                    objectsEqual = objectsEqual && (thatSymbolOnTotal == null);
320                } else {
321                    objectsEqual = objectsEqual && thisSymbolOnTotal.equals(thatSymbolOnTotal);
322                }
323            }
324            
325            if(objectsEqual) {
326                String thisGroupingSeparator = getGroupingSeparator();
327                String thatGroupingSeparator = that.getGroupingSeparator();
328                
329                if(thisGroupingSeparator == null) {
330                    objectsEqual = objectsEqual && (thatGroupingSeparator == null);
331                } else {
332                    objectsEqual = objectsEqual && thisGroupingSeparator.equals(thatGroupingSeparator);
333                }
334            }
335            
336            if(objectsEqual) {
337                Integer thisGroupingSize = getGroupingSize();
338                Integer thatGroupingSize = that.getGroupingSize();
339                
340                if(thisGroupingSize == null) {
341                    objectsEqual = objectsEqual && (thatGroupingSize == null);
342                } else {
343                    objectsEqual = objectsEqual && thisGroupingSize.equals(thatGroupingSize);
344                }
345            }
346            
347            if(objectsEqual) {
348                String thisFractionSeparator = getFractionSeparator();
349                String thatFractionSeparator = that.getFractionSeparator();
350                
351                if(thisFractionSeparator == null) {
352                    objectsEqual = objectsEqual && (thatFractionSeparator == null);
353                } else {
354                    objectsEqual = objectsEqual && thisFractionSeparator.equals(thatFractionSeparator);
355                }
356            }
357            
358            if(objectsEqual) {
359                Integer thisDefaultFractionDigits = getDefaultFractionDigits();
360                Integer thatDefaultFractionDigits = that.getDefaultFractionDigits();
361                
362                if(thisDefaultFractionDigits == null) {
363                    objectsEqual = objectsEqual && (thatDefaultFractionDigits == null);
364                } else {
365                    objectsEqual = objectsEqual && thisDefaultFractionDigits.equals(thatDefaultFractionDigits);
366                }
367            }
368            
369            if(objectsEqual) {
370                Integer thisPriceUnitFractionDigits = getPriceUnitFractionDigits();
371                Integer thatPriceUnitFractionDigits = that.getPriceUnitFractionDigits();
372                
373                if(thisPriceUnitFractionDigits == null) {
374                    objectsEqual = objectsEqual && (thatPriceUnitFractionDigits == null);
375                } else {
376                    objectsEqual = objectsEqual && thisPriceUnitFractionDigits.equals(thatPriceUnitFractionDigits);
377                }
378            }
379            
380            if(objectsEqual) {
381                Integer thisPriceLineFractionDigits = getPriceLineFractionDigits();
382                Integer thatPriceLineFractionDigits = that.getPriceLineFractionDigits();
383                
384                if(thisPriceLineFractionDigits == null) {
385                    objectsEqual = objectsEqual && (thatPriceLineFractionDigits == null);
386                } else {
387                    objectsEqual = objectsEqual && thisPriceLineFractionDigits.equals(thatPriceLineFractionDigits);
388                }
389            }
390            
391            if(objectsEqual) {
392                Integer thisCostUnitFractionDigits = getCostUnitFractionDigits();
393                Integer thatCostUnitFractionDigits = that.getCostUnitFractionDigits();
394                
395                if(thisCostUnitFractionDigits == null) {
396                    objectsEqual = objectsEqual && (thatCostUnitFractionDigits == null);
397                } else {
398                    objectsEqual = objectsEqual && thisCostUnitFractionDigits.equals(thatCostUnitFractionDigits);
399                }
400            }
401            
402            if(objectsEqual) {
403                Integer thisCostLineFractionDigits = getCostLineFractionDigits();
404                Integer thatCostLineFractionDigits = that.getCostLineFractionDigits();
405                
406                if(thisCostLineFractionDigits == null) {
407                    objectsEqual = objectsEqual && (thatCostLineFractionDigits == null);
408                } else {
409                    objectsEqual = objectsEqual && thisCostLineFractionDigits.equals(thatCostLineFractionDigits);
410                }
411            }
412            
413            if(objectsEqual) {
414                String thisMinusSign = getMinusSign();
415                String thatMinusSign = that.getMinusSign();
416                
417                if(thisMinusSign == null) {
418                    objectsEqual = objectsEqual && (thatMinusSign == null);
419                } else {
420                    objectsEqual = objectsEqual && thisMinusSign.equals(thatMinusSign);
421                }
422            }
423            
424            if(objectsEqual) {
425                Boolean thisIsDefault = getIsDefault();
426                Boolean thatIsDefault = that.getIsDefault();
427                
428                if(thisIsDefault == null) {
429                    objectsEqual = objectsEqual && (thatIsDefault == null);
430                } else {
431                    objectsEqual = objectsEqual && thisIsDefault.equals(thatIsDefault);
432                }
433            }
434            
435            if(objectsEqual) {
436                Integer thisSortOrder = getSortOrder();
437                Integer thatSortOrder = that.getSortOrder();
438                
439                if(thisSortOrder == null) {
440                    objectsEqual = objectsEqual && (thatSortOrder == null);
441                } else {
442                    objectsEqual = objectsEqual && thisSortOrder.equals(thatSortOrder);
443                }
444            }
445            
446            return objectsEqual;
447        } else {
448            return false;
449        }
450    }
451    
452    @Override
453    public boolean hasBeenModified() {
454        return currencyIsoNameHasBeenModified || symbolHasBeenModified || symbolPositionPKHasBeenModified || symbolOnListStartHasBeenModified || symbolOnListMemberHasBeenModified || symbolOnSubtotalHasBeenModified || symbolOnTotalHasBeenModified || groupingSeparatorHasBeenModified || groupingSizeHasBeenModified || fractionSeparatorHasBeenModified || defaultFractionDigitsHasBeenModified || priceUnitFractionDigitsHasBeenModified || priceLineFractionDigitsHasBeenModified || costUnitFractionDigitsHasBeenModified || costLineFractionDigitsHasBeenModified || minusSignHasBeenModified || isDefaultHasBeenModified || sortOrderHasBeenModified;
455    }
456    
457    @Override
458    public void clearHasBeenModified() {
459        currencyIsoNameHasBeenModified = false;
460        symbolHasBeenModified = false;
461        symbolPositionPKHasBeenModified = false;
462        symbolOnListStartHasBeenModified = false;
463        symbolOnListMemberHasBeenModified = false;
464        symbolOnSubtotalHasBeenModified = false;
465        symbolOnTotalHasBeenModified = false;
466        groupingSeparatorHasBeenModified = false;
467        groupingSizeHasBeenModified = false;
468        fractionSeparatorHasBeenModified = false;
469        defaultFractionDigitsHasBeenModified = false;
470        priceUnitFractionDigitsHasBeenModified = false;
471        priceLineFractionDigitsHasBeenModified = false;
472        costUnitFractionDigitsHasBeenModified = false;
473        costLineFractionDigitsHasBeenModified = false;
474        minusSignHasBeenModified = false;
475        isDefaultHasBeenModified = false;
476        sortOrderHasBeenModified = false;
477    }
478    
479    public String getCurrencyIsoName() {
480        return currencyIsoName;
481    }
482    
483    public void setCurrencyIsoName(String currencyIsoName)
484            throws PersistenceNotNullException {
485        checkForNull(currencyIsoName);
486        
487        boolean update = true;
488        
489        if(this.currencyIsoName != null) {
490            if(this.currencyIsoName.equals(currencyIsoName)) {
491                update = false;
492            }
493        } else if(currencyIsoName == null) {
494            update = false;
495        }
496        
497        if(update) {
498            this.currencyIsoName = currencyIsoName;
499            currencyIsoNameHasBeenModified = true;
500            clearHashAndString();
501        }
502    }
503    
504    public boolean getCurrencyIsoNameHasBeenModified() {
505        return currencyIsoNameHasBeenModified;
506    }
507    
508    public String getSymbol() {
509        return symbol;
510    }
511    
512    public void setSymbol(String symbol) {
513        boolean update = true;
514        
515        if(this.symbol != null) {
516            if(this.symbol.equals(symbol)) {
517                update = false;
518            }
519        } else if(symbol == null) {
520            update = false;
521        }
522        
523        if(update) {
524            this.symbol = symbol;
525            symbolHasBeenModified = true;
526            clearHashAndString();
527        }
528    }
529    
530    public boolean getSymbolHasBeenModified() {
531        return symbolHasBeenModified;
532    }
533    
534    public SymbolPositionPK getSymbolPositionPK() {
535        return symbolPositionPK;
536    }
537    
538    public void setSymbolPositionPK(SymbolPositionPK symbolPositionPK)
539            throws PersistenceNotNullException {
540        checkForNull(symbolPositionPK);
541        
542        boolean update = true;
543        
544        if(this.symbolPositionPK != null) {
545            if(this.symbolPositionPK.equals(symbolPositionPK)) {
546                update = false;
547            }
548        } else if(symbolPositionPK == null) {
549            update = false;
550        }
551        
552        if(update) {
553            this.symbolPositionPK = symbolPositionPK;
554            symbolPositionPKHasBeenModified = true;
555            clearHashAndString();
556        }
557    }
558    
559    public boolean getSymbolPositionPKHasBeenModified() {
560        return symbolPositionPKHasBeenModified;
561    }
562    
563    public Boolean getSymbolOnListStart() {
564        return symbolOnListStart;
565    }
566    
567    public void setSymbolOnListStart(Boolean symbolOnListStart) {
568        boolean update = true;
569        
570        if(this.symbolOnListStart != null) {
571            if(this.symbolOnListStart.equals(symbolOnListStart)) {
572                update = false;
573            }
574        } else if(symbolOnListStart == null) {
575            update = false;
576        }
577        
578        if(update) {
579            this.symbolOnListStart = symbolOnListStart;
580            symbolOnListStartHasBeenModified = true;
581            clearHashAndString();
582        }
583    }
584    
585    public boolean getSymbolOnListStartHasBeenModified() {
586        return symbolOnListStartHasBeenModified;
587    }
588    
589    public Boolean getSymbolOnListMember() {
590        return symbolOnListMember;
591    }
592    
593    public void setSymbolOnListMember(Boolean symbolOnListMember) {
594        boolean update = true;
595        
596        if(this.symbolOnListMember != null) {
597            if(this.symbolOnListMember.equals(symbolOnListMember)) {
598                update = false;
599            }
600        } else if(symbolOnListMember == null) {
601            update = false;
602        }
603        
604        if(update) {
605            this.symbolOnListMember = symbolOnListMember;
606            symbolOnListMemberHasBeenModified = true;
607            clearHashAndString();
608        }
609    }
610    
611    public boolean getSymbolOnListMemberHasBeenModified() {
612        return symbolOnListMemberHasBeenModified;
613    }
614    
615    public Boolean getSymbolOnSubtotal() {
616        return symbolOnSubtotal;
617    }
618    
619    public void setSymbolOnSubtotal(Boolean symbolOnSubtotal) {
620        boolean update = true;
621        
622        if(this.symbolOnSubtotal != null) {
623            if(this.symbolOnSubtotal.equals(symbolOnSubtotal)) {
624                update = false;
625            }
626        } else if(symbolOnSubtotal == null) {
627            update = false;
628        }
629        
630        if(update) {
631            this.symbolOnSubtotal = symbolOnSubtotal;
632            symbolOnSubtotalHasBeenModified = true;
633            clearHashAndString();
634        }
635    }
636    
637    public boolean getSymbolOnSubtotalHasBeenModified() {
638        return symbolOnSubtotalHasBeenModified;
639    }
640    
641    public Boolean getSymbolOnTotal() {
642        return symbolOnTotal;
643    }
644    
645    public void setSymbolOnTotal(Boolean symbolOnTotal) {
646        boolean update = true;
647        
648        if(this.symbolOnTotal != null) {
649            if(this.symbolOnTotal.equals(symbolOnTotal)) {
650                update = false;
651            }
652        } else if(symbolOnTotal == null) {
653            update = false;
654        }
655        
656        if(update) {
657            this.symbolOnTotal = symbolOnTotal;
658            symbolOnTotalHasBeenModified = true;
659            clearHashAndString();
660        }
661    }
662    
663    public boolean getSymbolOnTotalHasBeenModified() {
664        return symbolOnTotalHasBeenModified;
665    }
666    
667    public String getGroupingSeparator() {
668        return groupingSeparator;
669    }
670    
671    public void setGroupingSeparator(String groupingSeparator)
672            throws PersistenceNotNullException {
673        checkForNull(groupingSeparator);
674        
675        boolean update = true;
676        
677        if(this.groupingSeparator != null) {
678            if(this.groupingSeparator.equals(groupingSeparator)) {
679                update = false;
680            }
681        } else if(groupingSeparator == null) {
682            update = false;
683        }
684        
685        if(update) {
686            this.groupingSeparator = groupingSeparator;
687            groupingSeparatorHasBeenModified = true;
688            clearHashAndString();
689        }
690    }
691    
692    public boolean getGroupingSeparatorHasBeenModified() {
693        return groupingSeparatorHasBeenModified;
694    }
695    
696    public Integer getGroupingSize() {
697        return groupingSize;
698    }
699    
700    public void setGroupingSize(Integer groupingSize)
701            throws PersistenceNotNullException {
702        checkForNull(groupingSize);
703        
704        boolean update = true;
705        
706        if(this.groupingSize != null) {
707            if(this.groupingSize.equals(groupingSize)) {
708                update = false;
709            }
710        } else if(groupingSize == null) {
711            update = false;
712        }
713        
714        if(update) {
715            this.groupingSize = groupingSize;
716            groupingSizeHasBeenModified = true;
717            clearHashAndString();
718        }
719    }
720    
721    public boolean getGroupingSizeHasBeenModified() {
722        return groupingSizeHasBeenModified;
723    }
724    
725    public String getFractionSeparator() {
726        return fractionSeparator;
727    }
728    
729    public void setFractionSeparator(String fractionSeparator) {
730        boolean update = true;
731        
732        if(this.fractionSeparator != null) {
733            if(this.fractionSeparator.equals(fractionSeparator)) {
734                update = false;
735            }
736        } else if(fractionSeparator == null) {
737            update = false;
738        }
739        
740        if(update) {
741            this.fractionSeparator = fractionSeparator;
742            fractionSeparatorHasBeenModified = true;
743            clearHashAndString();
744        }
745    }
746    
747    public boolean getFractionSeparatorHasBeenModified() {
748        return fractionSeparatorHasBeenModified;
749    }
750    
751    public Integer getDefaultFractionDigits() {
752        return defaultFractionDigits;
753    }
754    
755    public void setDefaultFractionDigits(Integer defaultFractionDigits) {
756        boolean update = true;
757        
758        if(this.defaultFractionDigits != null) {
759            if(this.defaultFractionDigits.equals(defaultFractionDigits)) {
760                update = false;
761            }
762        } else if(defaultFractionDigits == null) {
763            update = false;
764        }
765        
766        if(update) {
767            this.defaultFractionDigits = defaultFractionDigits;
768            defaultFractionDigitsHasBeenModified = true;
769            clearHashAndString();
770        }
771    }
772    
773    public boolean getDefaultFractionDigitsHasBeenModified() {
774        return defaultFractionDigitsHasBeenModified;
775    }
776    
777    public Integer getPriceUnitFractionDigits() {
778        return priceUnitFractionDigits;
779    }
780    
781    public void setPriceUnitFractionDigits(Integer priceUnitFractionDigits) {
782        boolean update = true;
783        
784        if(this.priceUnitFractionDigits != null) {
785            if(this.priceUnitFractionDigits.equals(priceUnitFractionDigits)) {
786                update = false;
787            }
788        } else if(priceUnitFractionDigits == null) {
789            update = false;
790        }
791        
792        if(update) {
793            this.priceUnitFractionDigits = priceUnitFractionDigits;
794            priceUnitFractionDigitsHasBeenModified = true;
795            clearHashAndString();
796        }
797    }
798    
799    public boolean getPriceUnitFractionDigitsHasBeenModified() {
800        return priceUnitFractionDigitsHasBeenModified;
801    }
802    
803    public Integer getPriceLineFractionDigits() {
804        return priceLineFractionDigits;
805    }
806    
807    public void setPriceLineFractionDigits(Integer priceLineFractionDigits) {
808        boolean update = true;
809        
810        if(this.priceLineFractionDigits != null) {
811            if(this.priceLineFractionDigits.equals(priceLineFractionDigits)) {
812                update = false;
813            }
814        } else if(priceLineFractionDigits == null) {
815            update = false;
816        }
817        
818        if(update) {
819            this.priceLineFractionDigits = priceLineFractionDigits;
820            priceLineFractionDigitsHasBeenModified = true;
821            clearHashAndString();
822        }
823    }
824    
825    public boolean getPriceLineFractionDigitsHasBeenModified() {
826        return priceLineFractionDigitsHasBeenModified;
827    }
828    
829    public Integer getCostUnitFractionDigits() {
830        return costUnitFractionDigits;
831    }
832    
833    public void setCostUnitFractionDigits(Integer costUnitFractionDigits) {
834        boolean update = true;
835        
836        if(this.costUnitFractionDigits != null) {
837            if(this.costUnitFractionDigits.equals(costUnitFractionDigits)) {
838                update = false;
839            }
840        } else if(costUnitFractionDigits == null) {
841            update = false;
842        }
843        
844        if(update) {
845            this.costUnitFractionDigits = costUnitFractionDigits;
846            costUnitFractionDigitsHasBeenModified = true;
847            clearHashAndString();
848        }
849    }
850    
851    public boolean getCostUnitFractionDigitsHasBeenModified() {
852        return costUnitFractionDigitsHasBeenModified;
853    }
854    
855    public Integer getCostLineFractionDigits() {
856        return costLineFractionDigits;
857    }
858    
859    public void setCostLineFractionDigits(Integer costLineFractionDigits) {
860        boolean update = true;
861        
862        if(this.costLineFractionDigits != null) {
863            if(this.costLineFractionDigits.equals(costLineFractionDigits)) {
864                update = false;
865            }
866        } else if(costLineFractionDigits == null) {
867            update = false;
868        }
869        
870        if(update) {
871            this.costLineFractionDigits = costLineFractionDigits;
872            costLineFractionDigitsHasBeenModified = true;
873            clearHashAndString();
874        }
875    }
876    
877    public boolean getCostLineFractionDigitsHasBeenModified() {
878        return costLineFractionDigitsHasBeenModified;
879    }
880    
881    public String getMinusSign() {
882        return minusSign;
883    }
884    
885    public void setMinusSign(String minusSign)
886            throws PersistenceNotNullException {
887        checkForNull(minusSign);
888        
889        boolean update = true;
890        
891        if(this.minusSign != null) {
892            if(this.minusSign.equals(minusSign)) {
893                update = false;
894            }
895        } else if(minusSign == null) {
896            update = false;
897        }
898        
899        if(update) {
900            this.minusSign = minusSign;
901            minusSignHasBeenModified = true;
902            clearHashAndString();
903        }
904    }
905    
906    public boolean getMinusSignHasBeenModified() {
907        return minusSignHasBeenModified;
908    }
909    
910    public Boolean getIsDefault() {
911        return isDefault;
912    }
913    
914    public void setIsDefault(Boolean isDefault)
915            throws PersistenceNotNullException {
916        checkForNull(isDefault);
917        
918        boolean update = true;
919        
920        if(this.isDefault != null) {
921            if(this.isDefault.equals(isDefault)) {
922                update = false;
923            }
924        } else if(isDefault == null) {
925            update = false;
926        }
927        
928        if(update) {
929            this.isDefault = isDefault;
930            isDefaultHasBeenModified = true;
931            clearHashAndString();
932        }
933    }
934    
935    public boolean getIsDefaultHasBeenModified() {
936        return isDefaultHasBeenModified;
937    }
938    
939    public Integer getSortOrder() {
940        return sortOrder;
941    }
942    
943    public void setSortOrder(Integer sortOrder)
944            throws PersistenceNotNullException {
945        checkForNull(sortOrder);
946        
947        boolean update = true;
948        
949        if(this.sortOrder != null) {
950            if(this.sortOrder.equals(sortOrder)) {
951                update = false;
952            }
953        } else if(sortOrder == null) {
954            update = false;
955        }
956        
957        if(update) {
958            this.sortOrder = sortOrder;
959            sortOrderHasBeenModified = true;
960            clearHashAndString();
961        }
962    }
963    
964    public boolean getSortOrderHasBeenModified() {
965        return sortOrderHasBeenModified;
966    }
967    
968}