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