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 * DateTimeFormatDetailValue.java
021 */
022
023package com.echothree.model.data.party.server.value;
024
025import com.echothree.model.data.party.common.pk.DateTimeFormatDetailPK;
026
027import com.echothree.model.data.party.server.factory.DateTimeFormatDetailFactory;
028
029import com.echothree.model.data.party.common.pk.DateTimeFormatPK;
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 DateTimeFormatDetailValue
039        extends BaseValue<DateTimeFormatDetailPK>
040        implements Cloneable, Serializable {
041    
042    private DateTimeFormatPK dateTimeFormatPK;
043    private boolean dateTimeFormatPKHasBeenModified = false;
044    private String dateTimeFormatName;
045    private boolean dateTimeFormatNameHasBeenModified = false;
046    private String javaShortDateFormat;
047    private boolean javaShortDateFormatHasBeenModified = false;
048    private String javaAbbrevDateFormat;
049    private boolean javaAbbrevDateFormatHasBeenModified = false;
050    private String javaAbbrevDateFormatWeekday;
051    private boolean javaAbbrevDateFormatWeekdayHasBeenModified = false;
052    private String javaLongDateFormat;
053    private boolean javaLongDateFormatHasBeenModified = false;
054    private String javaLongDateFormatWeekday;
055    private boolean javaLongDateFormatWeekdayHasBeenModified = false;
056    private String javaTimeFormat;
057    private boolean javaTimeFormatHasBeenModified = false;
058    private String javaTimeFormatSeconds;
059    private boolean javaTimeFormatSecondsHasBeenModified = false;
060    private String unixShortDateFormat;
061    private boolean unixShortDateFormatHasBeenModified = false;
062    private String unixAbbrevDateFormat;
063    private boolean unixAbbrevDateFormatHasBeenModified = false;
064    private String unixAbbrevDateFormatWeekday;
065    private boolean unixAbbrevDateFormatWeekdayHasBeenModified = false;
066    private String unixLongDateFormat;
067    private boolean unixLongDateFormatHasBeenModified = false;
068    private String unixLongDateFormatWeekday;
069    private boolean unixLongDateFormatWeekdayHasBeenModified = false;
070    private String unixTimeFormat;
071    private boolean unixTimeFormatHasBeenModified = false;
072    private String unixTimeFormatSeconds;
073    private boolean unixTimeFormatSecondsHasBeenModified = false;
074    private String shortDateSeparator;
075    private boolean shortDateSeparatorHasBeenModified = false;
076    private String timeSeparator;
077    private boolean timeSeparatorHasBeenModified = false;
078    private Boolean isDefault;
079    private boolean isDefaultHasBeenModified = false;
080    private Integer sortOrder;
081    private boolean sortOrderHasBeenModified = false;
082    private Long fromTime;
083    private boolean fromTimeHasBeenModified = false;
084    private Long thruTime;
085    private boolean thruTimeHasBeenModified = false;
086    
087    private transient Integer _hashCode = null;
088    private transient String _stringValue = null;
089    
090    private void constructFields(DateTimeFormatPK dateTimeFormatPK, String dateTimeFormatName, String javaShortDateFormat, String javaAbbrevDateFormat, String javaAbbrevDateFormatWeekday, String javaLongDateFormat, String javaLongDateFormatWeekday, String javaTimeFormat, String javaTimeFormatSeconds, String unixShortDateFormat, String unixAbbrevDateFormat, String unixAbbrevDateFormatWeekday, String unixLongDateFormat, String unixLongDateFormatWeekday, String unixTimeFormat, String unixTimeFormatSeconds, String shortDateSeparator, String timeSeparator, Boolean isDefault, Integer sortOrder, Long fromTime, Long thruTime)
091            throws PersistenceNotNullException {
092        checkForNull(dateTimeFormatPK);
093        this.dateTimeFormatPK = dateTimeFormatPK;
094        checkForNull(dateTimeFormatName);
095        this.dateTimeFormatName = dateTimeFormatName;
096        checkForNull(javaShortDateFormat);
097        this.javaShortDateFormat = javaShortDateFormat;
098        checkForNull(javaAbbrevDateFormat);
099        this.javaAbbrevDateFormat = javaAbbrevDateFormat;
100        checkForNull(javaAbbrevDateFormatWeekday);
101        this.javaAbbrevDateFormatWeekday = javaAbbrevDateFormatWeekday;
102        checkForNull(javaLongDateFormat);
103        this.javaLongDateFormat = javaLongDateFormat;
104        checkForNull(javaLongDateFormatWeekday);
105        this.javaLongDateFormatWeekday = javaLongDateFormatWeekday;
106        checkForNull(javaTimeFormat);
107        this.javaTimeFormat = javaTimeFormat;
108        checkForNull(javaTimeFormatSeconds);
109        this.javaTimeFormatSeconds = javaTimeFormatSeconds;
110        checkForNull(unixShortDateFormat);
111        this.unixShortDateFormat = unixShortDateFormat;
112        checkForNull(unixAbbrevDateFormat);
113        this.unixAbbrevDateFormat = unixAbbrevDateFormat;
114        checkForNull(unixAbbrevDateFormatWeekday);
115        this.unixAbbrevDateFormatWeekday = unixAbbrevDateFormatWeekday;
116        checkForNull(unixLongDateFormat);
117        this.unixLongDateFormat = unixLongDateFormat;
118        checkForNull(unixLongDateFormatWeekday);
119        this.unixLongDateFormatWeekday = unixLongDateFormatWeekday;
120        checkForNull(unixTimeFormat);
121        this.unixTimeFormat = unixTimeFormat;
122        checkForNull(unixTimeFormatSeconds);
123        this.unixTimeFormatSeconds = unixTimeFormatSeconds;
124        checkForNull(shortDateSeparator);
125        this.shortDateSeparator = shortDateSeparator;
126        checkForNull(timeSeparator);
127        this.timeSeparator = timeSeparator;
128        checkForNull(isDefault);
129        this.isDefault = isDefault;
130        checkForNull(sortOrder);
131        this.sortOrder = sortOrder;
132        checkForNull(fromTime);
133        this.fromTime = fromTime;
134        checkForNull(thruTime);
135        this.thruTime = thruTime;
136    }
137    
138    /** Creates a new instance of DateTimeFormatDetailValue */
139    public DateTimeFormatDetailValue(DateTimeFormatDetailPK dateTimeFormatDetailPK, DateTimeFormatPK dateTimeFormatPK, String dateTimeFormatName, String javaShortDateFormat, String javaAbbrevDateFormat, String javaAbbrevDateFormatWeekday, String javaLongDateFormat, String javaLongDateFormatWeekday, String javaTimeFormat, String javaTimeFormatSeconds, String unixShortDateFormat, String unixAbbrevDateFormat, String unixAbbrevDateFormatWeekday, String unixLongDateFormat, String unixLongDateFormatWeekday, String unixTimeFormat, String unixTimeFormatSeconds, String shortDateSeparator, String timeSeparator, Boolean isDefault, Integer sortOrder, Long fromTime, Long thruTime)
140            throws PersistenceNotNullException {
141        super(dateTimeFormatDetailPK);
142        constructFields(dateTimeFormatPK, dateTimeFormatName, javaShortDateFormat, javaAbbrevDateFormat, javaAbbrevDateFormatWeekday, javaLongDateFormat, javaLongDateFormatWeekday, javaTimeFormat, javaTimeFormatSeconds, unixShortDateFormat, unixAbbrevDateFormat, unixAbbrevDateFormatWeekday, unixLongDateFormat, unixLongDateFormatWeekday, unixTimeFormat, unixTimeFormatSeconds, shortDateSeparator, timeSeparator, isDefault, sortOrder, fromTime, thruTime);
143    }
144    
145    /** Creates a new instance of DateTimeFormatDetailValue */
146    public DateTimeFormatDetailValue(DateTimeFormatPK dateTimeFormatPK, String dateTimeFormatName, String javaShortDateFormat, String javaAbbrevDateFormat, String javaAbbrevDateFormatWeekday, String javaLongDateFormat, String javaLongDateFormatWeekday, String javaTimeFormat, String javaTimeFormatSeconds, String unixShortDateFormat, String unixAbbrevDateFormat, String unixAbbrevDateFormatWeekday, String unixLongDateFormat, String unixLongDateFormatWeekday, String unixTimeFormat, String unixTimeFormatSeconds, String shortDateSeparator, String timeSeparator, Boolean isDefault, Integer sortOrder, Long fromTime, Long thruTime)
147            throws PersistenceNotNullException {
148        super();
149        constructFields(dateTimeFormatPK, dateTimeFormatName, javaShortDateFormat, javaAbbrevDateFormat, javaAbbrevDateFormatWeekday, javaLongDateFormat, javaLongDateFormatWeekday, javaTimeFormat, javaTimeFormatSeconds, unixShortDateFormat, unixAbbrevDateFormat, unixAbbrevDateFormatWeekday, unixLongDateFormat, unixLongDateFormatWeekday, unixTimeFormat, unixTimeFormatSeconds, shortDateSeparator, timeSeparator, isDefault, sortOrder, fromTime, thruTime);
150    }
151    
152   @Override
153   public DateTimeFormatDetailFactory getBaseFactoryInstance() {
154        return DateTimeFormatDetailFactory.getInstance();
155    }
156    
157    @Override
158    public DateTimeFormatDetailValue clone() {
159        Object result;
160        
161        try {
162            result = super.clone();
163        } catch (CloneNotSupportedException cnse) {
164            // This shouldn't happen, fail when it does.
165            throw new PersistenceCloneException(cnse);
166        }
167        
168        return (DateTimeFormatDetailValue)result;
169    }
170    
171   @Override
172    public DateTimeFormatDetailPK getPrimaryKey() {
173        if(_primaryKey == null) {
174            _primaryKey = new DateTimeFormatDetailPK(entityId);
175        }
176        
177        return _primaryKey;
178    }
179    
180    private void clearHashAndString() {
181        _hashCode = null;
182        _stringValue = null;
183    }
184    
185    @Override
186    public int hashCode() {
187        if(_hashCode == null) {
188            int hashCode = 17;
189            
190            hashCode = 37 * hashCode + ((entityId != null) ? entityId.hashCode() : 0);
191            
192            hashCode = 37 * hashCode + ((dateTimeFormatPK != null) ? dateTimeFormatPK.hashCode() : 0);
193            hashCode = 37 * hashCode + ((dateTimeFormatName != null) ? dateTimeFormatName.hashCode() : 0);
194            hashCode = 37 * hashCode + ((javaShortDateFormat != null) ? javaShortDateFormat.hashCode() : 0);
195            hashCode = 37 * hashCode + ((javaAbbrevDateFormat != null) ? javaAbbrevDateFormat.hashCode() : 0);
196            hashCode = 37 * hashCode + ((javaAbbrevDateFormatWeekday != null) ? javaAbbrevDateFormatWeekday.hashCode() : 0);
197            hashCode = 37 * hashCode + ((javaLongDateFormat != null) ? javaLongDateFormat.hashCode() : 0);
198            hashCode = 37 * hashCode + ((javaLongDateFormatWeekday != null) ? javaLongDateFormatWeekday.hashCode() : 0);
199            hashCode = 37 * hashCode + ((javaTimeFormat != null) ? javaTimeFormat.hashCode() : 0);
200            hashCode = 37 * hashCode + ((javaTimeFormatSeconds != null) ? javaTimeFormatSeconds.hashCode() : 0);
201            hashCode = 37 * hashCode + ((unixShortDateFormat != null) ? unixShortDateFormat.hashCode() : 0);
202            hashCode = 37 * hashCode + ((unixAbbrevDateFormat != null) ? unixAbbrevDateFormat.hashCode() : 0);
203            hashCode = 37 * hashCode + ((unixAbbrevDateFormatWeekday != null) ? unixAbbrevDateFormatWeekday.hashCode() : 0);
204            hashCode = 37 * hashCode + ((unixLongDateFormat != null) ? unixLongDateFormat.hashCode() : 0);
205            hashCode = 37 * hashCode + ((unixLongDateFormatWeekday != null) ? unixLongDateFormatWeekday.hashCode() : 0);
206            hashCode = 37 * hashCode + ((unixTimeFormat != null) ? unixTimeFormat.hashCode() : 0);
207            hashCode = 37 * hashCode + ((unixTimeFormatSeconds != null) ? unixTimeFormatSeconds.hashCode() : 0);
208            hashCode = 37 * hashCode + ((shortDateSeparator != null) ? shortDateSeparator.hashCode() : 0);
209            hashCode = 37 * hashCode + ((timeSeparator != null) ? timeSeparator.hashCode() : 0);
210            hashCode = 37 * hashCode + ((isDefault != null) ? isDefault.hashCode() : 0);
211            hashCode = 37 * hashCode + ((sortOrder != null) ? sortOrder.hashCode() : 0);
212            hashCode = 37 * hashCode + ((fromTime != null) ? fromTime.hashCode() : 0);
213            hashCode = 37 * hashCode + ((thruTime != null) ? thruTime.hashCode() : 0);
214            
215            _hashCode = hashCode;
216        }
217        
218        return _hashCode;
219    }
220    
221    @Override
222    public String toString() {
223        if(_stringValue == null) {
224            StringBuilder stringValue = new StringBuilder("{");
225            
226            stringValue.append("entityId=").append(getEntityId());
227            
228            stringValue.append(", dateTimeFormatPK=").append(getDateTimeFormatPK());
229            stringValue.append(", dateTimeFormatName=").append(getDateTimeFormatName());
230            stringValue.append(", javaShortDateFormat=").append(getJavaShortDateFormat());
231            stringValue.append(", javaAbbrevDateFormat=").append(getJavaAbbrevDateFormat());
232            stringValue.append(", javaAbbrevDateFormatWeekday=").append(getJavaAbbrevDateFormatWeekday());
233            stringValue.append(", javaLongDateFormat=").append(getJavaLongDateFormat());
234            stringValue.append(", javaLongDateFormatWeekday=").append(getJavaLongDateFormatWeekday());
235            stringValue.append(", javaTimeFormat=").append(getJavaTimeFormat());
236            stringValue.append(", javaTimeFormatSeconds=").append(getJavaTimeFormatSeconds());
237            stringValue.append(", unixShortDateFormat=").append(getUnixShortDateFormat());
238            stringValue.append(", unixAbbrevDateFormat=").append(getUnixAbbrevDateFormat());
239            stringValue.append(", unixAbbrevDateFormatWeekday=").append(getUnixAbbrevDateFormatWeekday());
240            stringValue.append(", unixLongDateFormat=").append(getUnixLongDateFormat());
241            stringValue.append(", unixLongDateFormatWeekday=").append(getUnixLongDateFormatWeekday());
242            stringValue.append(", unixTimeFormat=").append(getUnixTimeFormat());
243            stringValue.append(", unixTimeFormatSeconds=").append(getUnixTimeFormatSeconds());
244            stringValue.append(", shortDateSeparator=").append(getShortDateSeparator());
245            stringValue.append(", timeSeparator=").append(getTimeSeparator());
246            stringValue.append(", isDefault=").append(getIsDefault());
247            stringValue.append(", sortOrder=").append(getSortOrder());
248            stringValue.append(", fromTime=").append(getFromTime());
249            stringValue.append(", thruTime=").append(getThruTime());
250            
251            stringValue.append('}');
252            
253            _stringValue = stringValue.toString();
254        }
255        return _stringValue;
256    }
257    
258    @Override
259    public boolean equals(Object other) {
260        if(this == other)
261            return true;
262        
263        if(!hasIdentity())
264            return false;
265        
266        if(other instanceof  DateTimeFormatDetailValue) {
267            DateTimeFormatDetailValue that = (DateTimeFormatDetailValue)other;
268            
269            if(!that.hasIdentity())
270                return false;
271            
272            Long thisEntityId = getEntityId();
273            Long thatEntityId = that.getEntityId();
274            
275            boolean objectsEqual = thisEntityId.equals(thatEntityId);
276            if(objectsEqual)
277                objectsEqual = objectsEqual && isIdentical(that);
278            
279            return objectsEqual;
280        } else {
281            return false;
282        }
283    }
284    
285    public boolean isIdentical(Object other) {
286        if(other instanceof DateTimeFormatDetailValue) {
287            DateTimeFormatDetailValue that = (DateTimeFormatDetailValue)other;
288            boolean objectsEqual = true;
289            
290            
291            if(objectsEqual) {
292                DateTimeFormatPK thisDateTimeFormatPK = getDateTimeFormatPK();
293                DateTimeFormatPK thatDateTimeFormatPK = that.getDateTimeFormatPK();
294                
295                if(thisDateTimeFormatPK == null) {
296                    objectsEqual = objectsEqual && (thatDateTimeFormatPK == null);
297                } else {
298                    objectsEqual = objectsEqual && thisDateTimeFormatPK.equals(thatDateTimeFormatPK);
299                }
300            }
301            
302            if(objectsEqual) {
303                String thisDateTimeFormatName = getDateTimeFormatName();
304                String thatDateTimeFormatName = that.getDateTimeFormatName();
305                
306                if(thisDateTimeFormatName == null) {
307                    objectsEqual = objectsEqual && (thatDateTimeFormatName == null);
308                } else {
309                    objectsEqual = objectsEqual && thisDateTimeFormatName.equals(thatDateTimeFormatName);
310                }
311            }
312            
313            if(objectsEqual) {
314                String thisJavaShortDateFormat = getJavaShortDateFormat();
315                String thatJavaShortDateFormat = that.getJavaShortDateFormat();
316                
317                if(thisJavaShortDateFormat == null) {
318                    objectsEqual = objectsEqual && (thatJavaShortDateFormat == null);
319                } else {
320                    objectsEqual = objectsEqual && thisJavaShortDateFormat.equals(thatJavaShortDateFormat);
321                }
322            }
323            
324            if(objectsEqual) {
325                String thisJavaAbbrevDateFormat = getJavaAbbrevDateFormat();
326                String thatJavaAbbrevDateFormat = that.getJavaAbbrevDateFormat();
327                
328                if(thisJavaAbbrevDateFormat == null) {
329                    objectsEqual = objectsEqual && (thatJavaAbbrevDateFormat == null);
330                } else {
331                    objectsEqual = objectsEqual && thisJavaAbbrevDateFormat.equals(thatJavaAbbrevDateFormat);
332                }
333            }
334            
335            if(objectsEqual) {
336                String thisJavaAbbrevDateFormatWeekday = getJavaAbbrevDateFormatWeekday();
337                String thatJavaAbbrevDateFormatWeekday = that.getJavaAbbrevDateFormatWeekday();
338                
339                if(thisJavaAbbrevDateFormatWeekday == null) {
340                    objectsEqual = objectsEqual && (thatJavaAbbrevDateFormatWeekday == null);
341                } else {
342                    objectsEqual = objectsEqual && thisJavaAbbrevDateFormatWeekday.equals(thatJavaAbbrevDateFormatWeekday);
343                }
344            }
345            
346            if(objectsEqual) {
347                String thisJavaLongDateFormat = getJavaLongDateFormat();
348                String thatJavaLongDateFormat = that.getJavaLongDateFormat();
349                
350                if(thisJavaLongDateFormat == null) {
351                    objectsEqual = objectsEqual && (thatJavaLongDateFormat == null);
352                } else {
353                    objectsEqual = objectsEqual && thisJavaLongDateFormat.equals(thatJavaLongDateFormat);
354                }
355            }
356            
357            if(objectsEqual) {
358                String thisJavaLongDateFormatWeekday = getJavaLongDateFormatWeekday();
359                String thatJavaLongDateFormatWeekday = that.getJavaLongDateFormatWeekday();
360                
361                if(thisJavaLongDateFormatWeekday == null) {
362                    objectsEqual = objectsEqual && (thatJavaLongDateFormatWeekday == null);
363                } else {
364                    objectsEqual = objectsEqual && thisJavaLongDateFormatWeekday.equals(thatJavaLongDateFormatWeekday);
365                }
366            }
367            
368            if(objectsEqual) {
369                String thisJavaTimeFormat = getJavaTimeFormat();
370                String thatJavaTimeFormat = that.getJavaTimeFormat();
371                
372                if(thisJavaTimeFormat == null) {
373                    objectsEqual = objectsEqual && (thatJavaTimeFormat == null);
374                } else {
375                    objectsEqual = objectsEqual && thisJavaTimeFormat.equals(thatJavaTimeFormat);
376                }
377            }
378            
379            if(objectsEqual) {
380                String thisJavaTimeFormatSeconds = getJavaTimeFormatSeconds();
381                String thatJavaTimeFormatSeconds = that.getJavaTimeFormatSeconds();
382                
383                if(thisJavaTimeFormatSeconds == null) {
384                    objectsEqual = objectsEqual && (thatJavaTimeFormatSeconds == null);
385                } else {
386                    objectsEqual = objectsEqual && thisJavaTimeFormatSeconds.equals(thatJavaTimeFormatSeconds);
387                }
388            }
389            
390            if(objectsEqual) {
391                String thisUnixShortDateFormat = getUnixShortDateFormat();
392                String thatUnixShortDateFormat = that.getUnixShortDateFormat();
393                
394                if(thisUnixShortDateFormat == null) {
395                    objectsEqual = objectsEqual && (thatUnixShortDateFormat == null);
396                } else {
397                    objectsEqual = objectsEqual && thisUnixShortDateFormat.equals(thatUnixShortDateFormat);
398                }
399            }
400            
401            if(objectsEqual) {
402                String thisUnixAbbrevDateFormat = getUnixAbbrevDateFormat();
403                String thatUnixAbbrevDateFormat = that.getUnixAbbrevDateFormat();
404                
405                if(thisUnixAbbrevDateFormat == null) {
406                    objectsEqual = objectsEqual && (thatUnixAbbrevDateFormat == null);
407                } else {
408                    objectsEqual = objectsEqual && thisUnixAbbrevDateFormat.equals(thatUnixAbbrevDateFormat);
409                }
410            }
411            
412            if(objectsEqual) {
413                String thisUnixAbbrevDateFormatWeekday = getUnixAbbrevDateFormatWeekday();
414                String thatUnixAbbrevDateFormatWeekday = that.getUnixAbbrevDateFormatWeekday();
415                
416                if(thisUnixAbbrevDateFormatWeekday == null) {
417                    objectsEqual = objectsEqual && (thatUnixAbbrevDateFormatWeekday == null);
418                } else {
419                    objectsEqual = objectsEqual && thisUnixAbbrevDateFormatWeekday.equals(thatUnixAbbrevDateFormatWeekday);
420                }
421            }
422            
423            if(objectsEqual) {
424                String thisUnixLongDateFormat = getUnixLongDateFormat();
425                String thatUnixLongDateFormat = that.getUnixLongDateFormat();
426                
427                if(thisUnixLongDateFormat == null) {
428                    objectsEqual = objectsEqual && (thatUnixLongDateFormat == null);
429                } else {
430                    objectsEqual = objectsEqual && thisUnixLongDateFormat.equals(thatUnixLongDateFormat);
431                }
432            }
433            
434            if(objectsEqual) {
435                String thisUnixLongDateFormatWeekday = getUnixLongDateFormatWeekday();
436                String thatUnixLongDateFormatWeekday = that.getUnixLongDateFormatWeekday();
437                
438                if(thisUnixLongDateFormatWeekday == null) {
439                    objectsEqual = objectsEqual && (thatUnixLongDateFormatWeekday == null);
440                } else {
441                    objectsEqual = objectsEqual && thisUnixLongDateFormatWeekday.equals(thatUnixLongDateFormatWeekday);
442                }
443            }
444            
445            if(objectsEqual) {
446                String thisUnixTimeFormat = getUnixTimeFormat();
447                String thatUnixTimeFormat = that.getUnixTimeFormat();
448                
449                if(thisUnixTimeFormat == null) {
450                    objectsEqual = objectsEqual && (thatUnixTimeFormat == null);
451                } else {
452                    objectsEqual = objectsEqual && thisUnixTimeFormat.equals(thatUnixTimeFormat);
453                }
454            }
455            
456            if(objectsEqual) {
457                String thisUnixTimeFormatSeconds = getUnixTimeFormatSeconds();
458                String thatUnixTimeFormatSeconds = that.getUnixTimeFormatSeconds();
459                
460                if(thisUnixTimeFormatSeconds == null) {
461                    objectsEqual = objectsEqual && (thatUnixTimeFormatSeconds == null);
462                } else {
463                    objectsEqual = objectsEqual && thisUnixTimeFormatSeconds.equals(thatUnixTimeFormatSeconds);
464                }
465            }
466            
467            if(objectsEqual) {
468                String thisShortDateSeparator = getShortDateSeparator();
469                String thatShortDateSeparator = that.getShortDateSeparator();
470                
471                if(thisShortDateSeparator == null) {
472                    objectsEqual = objectsEqual && (thatShortDateSeparator == null);
473                } else {
474                    objectsEqual = objectsEqual && thisShortDateSeparator.equals(thatShortDateSeparator);
475                }
476            }
477            
478            if(objectsEqual) {
479                String thisTimeSeparator = getTimeSeparator();
480                String thatTimeSeparator = that.getTimeSeparator();
481                
482                if(thisTimeSeparator == null) {
483                    objectsEqual = objectsEqual && (thatTimeSeparator == null);
484                } else {
485                    objectsEqual = objectsEqual && thisTimeSeparator.equals(thatTimeSeparator);
486                }
487            }
488            
489            if(objectsEqual) {
490                Boolean thisIsDefault = getIsDefault();
491                Boolean thatIsDefault = that.getIsDefault();
492                
493                if(thisIsDefault == null) {
494                    objectsEqual = objectsEqual && (thatIsDefault == null);
495                } else {
496                    objectsEqual = objectsEqual && thisIsDefault.equals(thatIsDefault);
497                }
498            }
499            
500            if(objectsEqual) {
501                Integer thisSortOrder = getSortOrder();
502                Integer thatSortOrder = that.getSortOrder();
503                
504                if(thisSortOrder == null) {
505                    objectsEqual = objectsEqual && (thatSortOrder == null);
506                } else {
507                    objectsEqual = objectsEqual && thisSortOrder.equals(thatSortOrder);
508                }
509            }
510            
511            if(objectsEqual) {
512                Long thisFromTime = getFromTime();
513                Long thatFromTime = that.getFromTime();
514                
515                if(thisFromTime == null) {
516                    objectsEqual = objectsEqual && (thatFromTime == null);
517                } else {
518                    objectsEqual = objectsEqual && thisFromTime.equals(thatFromTime);
519                }
520            }
521            
522            if(objectsEqual) {
523                Long thisThruTime = getThruTime();
524                Long thatThruTime = that.getThruTime();
525                
526                if(thisThruTime == null) {
527                    objectsEqual = objectsEqual && (thatThruTime == null);
528                } else {
529                    objectsEqual = objectsEqual && thisThruTime.equals(thatThruTime);
530                }
531            }
532            
533            return objectsEqual;
534        } else {
535            return false;
536        }
537    }
538    
539    @Override
540    public boolean hasBeenModified() {
541        return dateTimeFormatPKHasBeenModified || dateTimeFormatNameHasBeenModified || javaShortDateFormatHasBeenModified || javaAbbrevDateFormatHasBeenModified || javaAbbrevDateFormatWeekdayHasBeenModified || javaLongDateFormatHasBeenModified || javaLongDateFormatWeekdayHasBeenModified || javaTimeFormatHasBeenModified || javaTimeFormatSecondsHasBeenModified || unixShortDateFormatHasBeenModified || unixAbbrevDateFormatHasBeenModified || unixAbbrevDateFormatWeekdayHasBeenModified || unixLongDateFormatHasBeenModified || unixLongDateFormatWeekdayHasBeenModified || unixTimeFormatHasBeenModified || unixTimeFormatSecondsHasBeenModified || shortDateSeparatorHasBeenModified || timeSeparatorHasBeenModified || isDefaultHasBeenModified || sortOrderHasBeenModified || fromTimeHasBeenModified || thruTimeHasBeenModified;
542    }
543    
544    @Override
545    public void clearHasBeenModified() {
546        dateTimeFormatPKHasBeenModified = false;
547        dateTimeFormatNameHasBeenModified = false;
548        javaShortDateFormatHasBeenModified = false;
549        javaAbbrevDateFormatHasBeenModified = false;
550        javaAbbrevDateFormatWeekdayHasBeenModified = false;
551        javaLongDateFormatHasBeenModified = false;
552        javaLongDateFormatWeekdayHasBeenModified = false;
553        javaTimeFormatHasBeenModified = false;
554        javaTimeFormatSecondsHasBeenModified = false;
555        unixShortDateFormatHasBeenModified = false;
556        unixAbbrevDateFormatHasBeenModified = false;
557        unixAbbrevDateFormatWeekdayHasBeenModified = false;
558        unixLongDateFormatHasBeenModified = false;
559        unixLongDateFormatWeekdayHasBeenModified = false;
560        unixTimeFormatHasBeenModified = false;
561        unixTimeFormatSecondsHasBeenModified = false;
562        shortDateSeparatorHasBeenModified = false;
563        timeSeparatorHasBeenModified = false;
564        isDefaultHasBeenModified = false;
565        sortOrderHasBeenModified = false;
566        fromTimeHasBeenModified = false;
567        thruTimeHasBeenModified = false;
568    }
569    
570    public DateTimeFormatPK getDateTimeFormatPK() {
571        return dateTimeFormatPK;
572    }
573    
574    public void setDateTimeFormatPK(DateTimeFormatPK dateTimeFormatPK)
575            throws PersistenceNotNullException {
576        checkForNull(dateTimeFormatPK);
577        
578        boolean update = true;
579        
580        if(this.dateTimeFormatPK != null) {
581            if(this.dateTimeFormatPK.equals(dateTimeFormatPK)) {
582                update = false;
583            }
584        } else if(dateTimeFormatPK == null) {
585            update = false;
586        }
587        
588        if(update) {
589            this.dateTimeFormatPK = dateTimeFormatPK;
590            dateTimeFormatPKHasBeenModified = true;
591            clearHashAndString();
592        }
593    }
594    
595    public boolean getDateTimeFormatPKHasBeenModified() {
596        return dateTimeFormatPKHasBeenModified;
597    }
598    
599    public String getDateTimeFormatName() {
600        return dateTimeFormatName;
601    }
602    
603    public void setDateTimeFormatName(String dateTimeFormatName)
604            throws PersistenceNotNullException {
605        checkForNull(dateTimeFormatName);
606        
607        boolean update = true;
608        
609        if(this.dateTimeFormatName != null) {
610            if(this.dateTimeFormatName.equals(dateTimeFormatName)) {
611                update = false;
612            }
613        } else if(dateTimeFormatName == null) {
614            update = false;
615        }
616        
617        if(update) {
618            this.dateTimeFormatName = dateTimeFormatName;
619            dateTimeFormatNameHasBeenModified = true;
620            clearHashAndString();
621        }
622    }
623    
624    public boolean getDateTimeFormatNameHasBeenModified() {
625        return dateTimeFormatNameHasBeenModified;
626    }
627    
628    public String getJavaShortDateFormat() {
629        return javaShortDateFormat;
630    }
631    
632    public void setJavaShortDateFormat(String javaShortDateFormat)
633            throws PersistenceNotNullException {
634        checkForNull(javaShortDateFormat);
635        
636        boolean update = true;
637        
638        if(this.javaShortDateFormat != null) {
639            if(this.javaShortDateFormat.equals(javaShortDateFormat)) {
640                update = false;
641            }
642        } else if(javaShortDateFormat == null) {
643            update = false;
644        }
645        
646        if(update) {
647            this.javaShortDateFormat = javaShortDateFormat;
648            javaShortDateFormatHasBeenModified = true;
649            clearHashAndString();
650        }
651    }
652    
653    public boolean getJavaShortDateFormatHasBeenModified() {
654        return javaShortDateFormatHasBeenModified;
655    }
656    
657    public String getJavaAbbrevDateFormat() {
658        return javaAbbrevDateFormat;
659    }
660    
661    public void setJavaAbbrevDateFormat(String javaAbbrevDateFormat)
662            throws PersistenceNotNullException {
663        checkForNull(javaAbbrevDateFormat);
664        
665        boolean update = true;
666        
667        if(this.javaAbbrevDateFormat != null) {
668            if(this.javaAbbrevDateFormat.equals(javaAbbrevDateFormat)) {
669                update = false;
670            }
671        } else if(javaAbbrevDateFormat == null) {
672            update = false;
673        }
674        
675        if(update) {
676            this.javaAbbrevDateFormat = javaAbbrevDateFormat;
677            javaAbbrevDateFormatHasBeenModified = true;
678            clearHashAndString();
679        }
680    }
681    
682    public boolean getJavaAbbrevDateFormatHasBeenModified() {
683        return javaAbbrevDateFormatHasBeenModified;
684    }
685    
686    public String getJavaAbbrevDateFormatWeekday() {
687        return javaAbbrevDateFormatWeekday;
688    }
689    
690    public void setJavaAbbrevDateFormatWeekday(String javaAbbrevDateFormatWeekday)
691            throws PersistenceNotNullException {
692        checkForNull(javaAbbrevDateFormatWeekday);
693        
694        boolean update = true;
695        
696        if(this.javaAbbrevDateFormatWeekday != null) {
697            if(this.javaAbbrevDateFormatWeekday.equals(javaAbbrevDateFormatWeekday)) {
698                update = false;
699            }
700        } else if(javaAbbrevDateFormatWeekday == null) {
701            update = false;
702        }
703        
704        if(update) {
705            this.javaAbbrevDateFormatWeekday = javaAbbrevDateFormatWeekday;
706            javaAbbrevDateFormatWeekdayHasBeenModified = true;
707            clearHashAndString();
708        }
709    }
710    
711    public boolean getJavaAbbrevDateFormatWeekdayHasBeenModified() {
712        return javaAbbrevDateFormatWeekdayHasBeenModified;
713    }
714    
715    public String getJavaLongDateFormat() {
716        return javaLongDateFormat;
717    }
718    
719    public void setJavaLongDateFormat(String javaLongDateFormat)
720            throws PersistenceNotNullException {
721        checkForNull(javaLongDateFormat);
722        
723        boolean update = true;
724        
725        if(this.javaLongDateFormat != null) {
726            if(this.javaLongDateFormat.equals(javaLongDateFormat)) {
727                update = false;
728            }
729        } else if(javaLongDateFormat == null) {
730            update = false;
731        }
732        
733        if(update) {
734            this.javaLongDateFormat = javaLongDateFormat;
735            javaLongDateFormatHasBeenModified = true;
736            clearHashAndString();
737        }
738    }
739    
740    public boolean getJavaLongDateFormatHasBeenModified() {
741        return javaLongDateFormatHasBeenModified;
742    }
743    
744    public String getJavaLongDateFormatWeekday() {
745        return javaLongDateFormatWeekday;
746    }
747    
748    public void setJavaLongDateFormatWeekday(String javaLongDateFormatWeekday)
749            throws PersistenceNotNullException {
750        checkForNull(javaLongDateFormatWeekday);
751        
752        boolean update = true;
753        
754        if(this.javaLongDateFormatWeekday != null) {
755            if(this.javaLongDateFormatWeekday.equals(javaLongDateFormatWeekday)) {
756                update = false;
757            }
758        } else if(javaLongDateFormatWeekday == null) {
759            update = false;
760        }
761        
762        if(update) {
763            this.javaLongDateFormatWeekday = javaLongDateFormatWeekday;
764            javaLongDateFormatWeekdayHasBeenModified = true;
765            clearHashAndString();
766        }
767    }
768    
769    public boolean getJavaLongDateFormatWeekdayHasBeenModified() {
770        return javaLongDateFormatWeekdayHasBeenModified;
771    }
772    
773    public String getJavaTimeFormat() {
774        return javaTimeFormat;
775    }
776    
777    public void setJavaTimeFormat(String javaTimeFormat)
778            throws PersistenceNotNullException {
779        checkForNull(javaTimeFormat);
780        
781        boolean update = true;
782        
783        if(this.javaTimeFormat != null) {
784            if(this.javaTimeFormat.equals(javaTimeFormat)) {
785                update = false;
786            }
787        } else if(javaTimeFormat == null) {
788            update = false;
789        }
790        
791        if(update) {
792            this.javaTimeFormat = javaTimeFormat;
793            javaTimeFormatHasBeenModified = true;
794            clearHashAndString();
795        }
796    }
797    
798    public boolean getJavaTimeFormatHasBeenModified() {
799        return javaTimeFormatHasBeenModified;
800    }
801    
802    public String getJavaTimeFormatSeconds() {
803        return javaTimeFormatSeconds;
804    }
805    
806    public void setJavaTimeFormatSeconds(String javaTimeFormatSeconds)
807            throws PersistenceNotNullException {
808        checkForNull(javaTimeFormatSeconds);
809        
810        boolean update = true;
811        
812        if(this.javaTimeFormatSeconds != null) {
813            if(this.javaTimeFormatSeconds.equals(javaTimeFormatSeconds)) {
814                update = false;
815            }
816        } else if(javaTimeFormatSeconds == null) {
817            update = false;
818        }
819        
820        if(update) {
821            this.javaTimeFormatSeconds = javaTimeFormatSeconds;
822            javaTimeFormatSecondsHasBeenModified = true;
823            clearHashAndString();
824        }
825    }
826    
827    public boolean getJavaTimeFormatSecondsHasBeenModified() {
828        return javaTimeFormatSecondsHasBeenModified;
829    }
830    
831    public String getUnixShortDateFormat() {
832        return unixShortDateFormat;
833    }
834    
835    public void setUnixShortDateFormat(String unixShortDateFormat)
836            throws PersistenceNotNullException {
837        checkForNull(unixShortDateFormat);
838        
839        boolean update = true;
840        
841        if(this.unixShortDateFormat != null) {
842            if(this.unixShortDateFormat.equals(unixShortDateFormat)) {
843                update = false;
844            }
845        } else if(unixShortDateFormat == null) {
846            update = false;
847        }
848        
849        if(update) {
850            this.unixShortDateFormat = unixShortDateFormat;
851            unixShortDateFormatHasBeenModified = true;
852            clearHashAndString();
853        }
854    }
855    
856    public boolean getUnixShortDateFormatHasBeenModified() {
857        return unixShortDateFormatHasBeenModified;
858    }
859    
860    public String getUnixAbbrevDateFormat() {
861        return unixAbbrevDateFormat;
862    }
863    
864    public void setUnixAbbrevDateFormat(String unixAbbrevDateFormat)
865            throws PersistenceNotNullException {
866        checkForNull(unixAbbrevDateFormat);
867        
868        boolean update = true;
869        
870        if(this.unixAbbrevDateFormat != null) {
871            if(this.unixAbbrevDateFormat.equals(unixAbbrevDateFormat)) {
872                update = false;
873            }
874        } else if(unixAbbrevDateFormat == null) {
875            update = false;
876        }
877        
878        if(update) {
879            this.unixAbbrevDateFormat = unixAbbrevDateFormat;
880            unixAbbrevDateFormatHasBeenModified = true;
881            clearHashAndString();
882        }
883    }
884    
885    public boolean getUnixAbbrevDateFormatHasBeenModified() {
886        return unixAbbrevDateFormatHasBeenModified;
887    }
888    
889    public String getUnixAbbrevDateFormatWeekday() {
890        return unixAbbrevDateFormatWeekday;
891    }
892    
893    public void setUnixAbbrevDateFormatWeekday(String unixAbbrevDateFormatWeekday)
894            throws PersistenceNotNullException {
895        checkForNull(unixAbbrevDateFormatWeekday);
896        
897        boolean update = true;
898        
899        if(this.unixAbbrevDateFormatWeekday != null) {
900            if(this.unixAbbrevDateFormatWeekday.equals(unixAbbrevDateFormatWeekday)) {
901                update = false;
902            }
903        } else if(unixAbbrevDateFormatWeekday == null) {
904            update = false;
905        }
906        
907        if(update) {
908            this.unixAbbrevDateFormatWeekday = unixAbbrevDateFormatWeekday;
909            unixAbbrevDateFormatWeekdayHasBeenModified = true;
910            clearHashAndString();
911        }
912    }
913    
914    public boolean getUnixAbbrevDateFormatWeekdayHasBeenModified() {
915        return unixAbbrevDateFormatWeekdayHasBeenModified;
916    }
917    
918    public String getUnixLongDateFormat() {
919        return unixLongDateFormat;
920    }
921    
922    public void setUnixLongDateFormat(String unixLongDateFormat)
923            throws PersistenceNotNullException {
924        checkForNull(unixLongDateFormat);
925        
926        boolean update = true;
927        
928        if(this.unixLongDateFormat != null) {
929            if(this.unixLongDateFormat.equals(unixLongDateFormat)) {
930                update = false;
931            }
932        } else if(unixLongDateFormat == null) {
933            update = false;
934        }
935        
936        if(update) {
937            this.unixLongDateFormat = unixLongDateFormat;
938            unixLongDateFormatHasBeenModified = true;
939            clearHashAndString();
940        }
941    }
942    
943    public boolean getUnixLongDateFormatHasBeenModified() {
944        return unixLongDateFormatHasBeenModified;
945    }
946    
947    public String getUnixLongDateFormatWeekday() {
948        return unixLongDateFormatWeekday;
949    }
950    
951    public void setUnixLongDateFormatWeekday(String unixLongDateFormatWeekday)
952            throws PersistenceNotNullException {
953        checkForNull(unixLongDateFormatWeekday);
954        
955        boolean update = true;
956        
957        if(this.unixLongDateFormatWeekday != null) {
958            if(this.unixLongDateFormatWeekday.equals(unixLongDateFormatWeekday)) {
959                update = false;
960            }
961        } else if(unixLongDateFormatWeekday == null) {
962            update = false;
963        }
964        
965        if(update) {
966            this.unixLongDateFormatWeekday = unixLongDateFormatWeekday;
967            unixLongDateFormatWeekdayHasBeenModified = true;
968            clearHashAndString();
969        }
970    }
971    
972    public boolean getUnixLongDateFormatWeekdayHasBeenModified() {
973        return unixLongDateFormatWeekdayHasBeenModified;
974    }
975    
976    public String getUnixTimeFormat() {
977        return unixTimeFormat;
978    }
979    
980    public void setUnixTimeFormat(String unixTimeFormat)
981            throws PersistenceNotNullException {
982        checkForNull(unixTimeFormat);
983        
984        boolean update = true;
985        
986        if(this.unixTimeFormat != null) {
987            if(this.unixTimeFormat.equals(unixTimeFormat)) {
988                update = false;
989            }
990        } else if(unixTimeFormat == null) {
991            update = false;
992        }
993        
994        if(update) {
995            this.unixTimeFormat = unixTimeFormat;
996            unixTimeFormatHasBeenModified = true;
997            clearHashAndString();
998        }
999    }
1000    
1001    public boolean getUnixTimeFormatHasBeenModified() {
1002        return unixTimeFormatHasBeenModified;
1003    }
1004    
1005    public String getUnixTimeFormatSeconds() {
1006        return unixTimeFormatSeconds;
1007    }
1008    
1009    public void setUnixTimeFormatSeconds(String unixTimeFormatSeconds)
1010            throws PersistenceNotNullException {
1011        checkForNull(unixTimeFormatSeconds);
1012        
1013        boolean update = true;
1014        
1015        if(this.unixTimeFormatSeconds != null) {
1016            if(this.unixTimeFormatSeconds.equals(unixTimeFormatSeconds)) {
1017                update = false;
1018            }
1019        } else if(unixTimeFormatSeconds == null) {
1020            update = false;
1021        }
1022        
1023        if(update) {
1024            this.unixTimeFormatSeconds = unixTimeFormatSeconds;
1025            unixTimeFormatSecondsHasBeenModified = true;
1026            clearHashAndString();
1027        }
1028    }
1029    
1030    public boolean getUnixTimeFormatSecondsHasBeenModified() {
1031        return unixTimeFormatSecondsHasBeenModified;
1032    }
1033    
1034    public String getShortDateSeparator() {
1035        return shortDateSeparator;
1036    }
1037    
1038    public void setShortDateSeparator(String shortDateSeparator)
1039            throws PersistenceNotNullException {
1040        checkForNull(shortDateSeparator);
1041        
1042        boolean update = true;
1043        
1044        if(this.shortDateSeparator != null) {
1045            if(this.shortDateSeparator.equals(shortDateSeparator)) {
1046                update = false;
1047            }
1048        } else if(shortDateSeparator == null) {
1049            update = false;
1050        }
1051        
1052        if(update) {
1053            this.shortDateSeparator = shortDateSeparator;
1054            shortDateSeparatorHasBeenModified = true;
1055            clearHashAndString();
1056        }
1057    }
1058    
1059    public boolean getShortDateSeparatorHasBeenModified() {
1060        return shortDateSeparatorHasBeenModified;
1061    }
1062    
1063    public String getTimeSeparator() {
1064        return timeSeparator;
1065    }
1066    
1067    public void setTimeSeparator(String timeSeparator)
1068            throws PersistenceNotNullException {
1069        checkForNull(timeSeparator);
1070        
1071        boolean update = true;
1072        
1073        if(this.timeSeparator != null) {
1074            if(this.timeSeparator.equals(timeSeparator)) {
1075                update = false;
1076            }
1077        } else if(timeSeparator == null) {
1078            update = false;
1079        }
1080        
1081        if(update) {
1082            this.timeSeparator = timeSeparator;
1083            timeSeparatorHasBeenModified = true;
1084            clearHashAndString();
1085        }
1086    }
1087    
1088    public boolean getTimeSeparatorHasBeenModified() {
1089        return timeSeparatorHasBeenModified;
1090    }
1091    
1092    public Boolean getIsDefault() {
1093        return isDefault;
1094    }
1095    
1096    public void setIsDefault(Boolean isDefault)
1097            throws PersistenceNotNullException {
1098        checkForNull(isDefault);
1099        
1100        boolean update = true;
1101        
1102        if(this.isDefault != null) {
1103            if(this.isDefault.equals(isDefault)) {
1104                update = false;
1105            }
1106        } else if(isDefault == null) {
1107            update = false;
1108        }
1109        
1110        if(update) {
1111            this.isDefault = isDefault;
1112            isDefaultHasBeenModified = true;
1113            clearHashAndString();
1114        }
1115    }
1116    
1117    public boolean getIsDefaultHasBeenModified() {
1118        return isDefaultHasBeenModified;
1119    }
1120    
1121    public Integer getSortOrder() {
1122        return sortOrder;
1123    }
1124    
1125    public void setSortOrder(Integer sortOrder)
1126            throws PersistenceNotNullException {
1127        checkForNull(sortOrder);
1128        
1129        boolean update = true;
1130        
1131        if(this.sortOrder != null) {
1132            if(this.sortOrder.equals(sortOrder)) {
1133                update = false;
1134            }
1135        } else if(sortOrder == null) {
1136            update = false;
1137        }
1138        
1139        if(update) {
1140            this.sortOrder = sortOrder;
1141            sortOrderHasBeenModified = true;
1142            clearHashAndString();
1143        }
1144    }
1145    
1146    public boolean getSortOrderHasBeenModified() {
1147        return sortOrderHasBeenModified;
1148    }
1149    
1150    public Long getFromTime() {
1151        return fromTime;
1152    }
1153    
1154    public void setFromTime(Long fromTime)
1155            throws PersistenceNotNullException {
1156        checkForNull(fromTime);
1157        
1158        boolean update = true;
1159        
1160        if(this.fromTime != null) {
1161            if(this.fromTime.equals(fromTime)) {
1162                update = false;
1163            }
1164        } else if(fromTime == null) {
1165            update = false;
1166        }
1167        
1168        if(update) {
1169            this.fromTime = fromTime;
1170            fromTimeHasBeenModified = true;
1171            clearHashAndString();
1172        }
1173    }
1174    
1175    public boolean getFromTimeHasBeenModified() {
1176        return fromTimeHasBeenModified;
1177    }
1178    
1179    public Long getThruTime() {
1180        return thruTime;
1181    }
1182    
1183    public void setThruTime(Long thruTime)
1184            throws PersistenceNotNullException {
1185        checkForNull(thruTime);
1186        
1187        boolean update = true;
1188        
1189        if(this.thruTime != null) {
1190            if(this.thruTime.equals(thruTime)) {
1191                update = false;
1192            }
1193        } else if(thruTime == null) {
1194            update = false;
1195        }
1196        
1197        if(update) {
1198            this.thruTime = thruTime;
1199            thruTimeHasBeenModified = true;
1200            clearHashAndString();
1201        }
1202    }
1203    
1204    public boolean getThruTimeHasBeenModified() {
1205        return thruTimeHasBeenModified;
1206    }
1207    
1208}