001// -------------------------------------------------------------------------------- 002// Copyright 2002-2026 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 * DateTimeFormatDetail.java 021 */ 022 023package com.echothree.model.data.party.server.entity; 024 025import com.echothree.model.data.party.common.pk.DateTimeFormatDetailPK; 026 027import com.echothree.model.data.party.common.pk.DateTimeFormatPK; 028 029import com.echothree.model.data.party.server.entity.DateTimeFormat; 030 031import com.echothree.model.data.party.server.factory.DateTimeFormatFactory; 032 033import com.echothree.model.data.party.common.pk.DateTimeFormatDetailPK; 034 035import com.echothree.model.data.party.server.value.DateTimeFormatDetailValue; 036 037import com.echothree.model.data.party.server.factory.DateTimeFormatDetailFactory; 038 039import com.echothree.util.common.exception.PersistenceException; 040import com.echothree.util.common.exception.PersistenceDatabaseException; 041import com.echothree.util.common.exception.PersistenceNotNullException; 042import com.echothree.util.common.exception.PersistenceReadOnlyException; 043 044import com.echothree.util.common.persistence.BasePK; 045 046import com.echothree.util.common.persistence.type.ByteArray; 047 048import com.echothree.util.server.persistence.BaseEntity; 049import com.echothree.util.server.persistence.EntityPermission; 050import com.echothree.util.server.persistence.Session; 051import com.echothree.util.server.persistence.ThreadSession; 052 053import java.io.Serializable; 054 055import javax.annotation.Nonnull; 056import javax.annotation.Nullable; 057 058public class DateTimeFormatDetail 059 extends BaseEntity 060 implements Serializable { 061 062 private DateTimeFormatDetailPK _pk; 063 private DateTimeFormatDetailValue _value; 064 065 /** Creates a new instance of DateTimeFormatDetail */ 066 public DateTimeFormatDetail() 067 throws PersistenceException { 068 super(); 069 } 070 071 /** Creates a new instance of DateTimeFormatDetail */ 072 public DateTimeFormatDetail(DateTimeFormatDetailValue value, EntityPermission entityPermission) { 073 super(entityPermission); 074 075 _value = value; 076 _pk = value.getPrimaryKey(); 077 } 078 079 @Override 080 @Nonnull 081 public DateTimeFormatDetailFactory getBaseFactoryInstance() { 082 return DateTimeFormatDetailFactory.getInstance(); 083 } 084 085 @Override 086 public boolean hasBeenModified() { 087 return _value.hasBeenModified(); 088 } 089 090 @Override 091 public int hashCode() { 092 return _pk.hashCode(); 093 } 094 095 @Override 096 @Nonnull 097 public String toString() { 098 return _pk.toString(); 099 } 100 101 @Override 102 public boolean equals(Object other) { 103 if(this == other) 104 return true; 105 106 if(other instanceof DateTimeFormatDetail that) { 107 DateTimeFormatDetailValue thatValue = that.getDateTimeFormatDetailValue(); 108 return _value.equals(thatValue); 109 } else { 110 return false; 111 } 112 } 113 114 @Override 115 public void store() 116 throws PersistenceDatabaseException { 117 getBaseFactoryInstance().store(this); 118 } 119 120 @Override 121 public void remove() 122 throws PersistenceDatabaseException { 123 getBaseFactoryInstance().remove(this); 124 } 125 126 @Nonnull 127 public DateTimeFormatDetailValue getDateTimeFormatDetailValue() { 128 return _value; 129 } 130 131 public void setDateTimeFormatDetailValue(@Nonnull DateTimeFormatDetailValue value) 132 throws PersistenceReadOnlyException { 133 checkReadWrite(); 134 _value = value; 135 } 136 137 @Override 138 @Nonnull 139 public DateTimeFormatDetailPK getPrimaryKey() { 140 return _pk; 141 } 142 143 @Nonnull 144 public DateTimeFormatPK getDateTimeFormatPK() { 145 return _value.getDateTimeFormatPK(); 146 } 147 148 @Nonnull 149 public DateTimeFormat getDateTimeFormat(EntityPermission entityPermission) { 150 return DateTimeFormatFactory.getInstance().getEntityFromPK(entityPermission, getDateTimeFormatPK()); 151 } 152 153 @Nonnull 154 public DateTimeFormat getDateTimeFormat() { 155 return getDateTimeFormat(EntityPermission.READ_ONLY); 156 } 157 158 @Nonnull 159 public DateTimeFormat getDateTimeFormatForUpdate() { 160 return getDateTimeFormat(EntityPermission.READ_WRITE); 161 } 162 163 public void setDateTimeFormatPK(@Nonnull DateTimeFormatPK dateTimeFormatPK) 164 throws PersistenceNotNullException, PersistenceReadOnlyException { 165 checkReadWrite(); 166 _value.setDateTimeFormatPK(dateTimeFormatPK); 167 } 168 169 public void setDateTimeFormat(@Nonnull DateTimeFormat entity) { 170 setDateTimeFormatPK(entity == null ? null : entity.getPrimaryKey()); 171 } 172 173 public boolean getDateTimeFormatPKHasBeenModified() { 174 return _value.getDateTimeFormatPKHasBeenModified(); 175 } 176 177 @Nonnull 178 public String getDateTimeFormatName() { 179 return _value.getDateTimeFormatName(); 180 } 181 182 public void setDateTimeFormatName(@Nonnull String dateTimeFormatName) 183 throws PersistenceNotNullException, PersistenceReadOnlyException { 184 checkReadWrite(); 185 _value.setDateTimeFormatName(dateTimeFormatName); 186 } 187 188 public boolean getDateTimeFormatNameHasBeenModified() { 189 return _value.getDateTimeFormatNameHasBeenModified(); 190 } 191 192 @Nonnull 193 public String getJavaShortDateFormat() { 194 return _value.getJavaShortDateFormat(); 195 } 196 197 public void setJavaShortDateFormat(@Nonnull String javaShortDateFormat) 198 throws PersistenceNotNullException, PersistenceReadOnlyException { 199 checkReadWrite(); 200 _value.setJavaShortDateFormat(javaShortDateFormat); 201 } 202 203 public boolean getJavaShortDateFormatHasBeenModified() { 204 return _value.getJavaShortDateFormatHasBeenModified(); 205 } 206 207 @Nonnull 208 public String getJavaAbbrevDateFormat() { 209 return _value.getJavaAbbrevDateFormat(); 210 } 211 212 public void setJavaAbbrevDateFormat(@Nonnull String javaAbbrevDateFormat) 213 throws PersistenceNotNullException, PersistenceReadOnlyException { 214 checkReadWrite(); 215 _value.setJavaAbbrevDateFormat(javaAbbrevDateFormat); 216 } 217 218 public boolean getJavaAbbrevDateFormatHasBeenModified() { 219 return _value.getJavaAbbrevDateFormatHasBeenModified(); 220 } 221 222 @Nonnull 223 public String getJavaAbbrevDateFormatWeekday() { 224 return _value.getJavaAbbrevDateFormatWeekday(); 225 } 226 227 public void setJavaAbbrevDateFormatWeekday(@Nonnull String javaAbbrevDateFormatWeekday) 228 throws PersistenceNotNullException, PersistenceReadOnlyException { 229 checkReadWrite(); 230 _value.setJavaAbbrevDateFormatWeekday(javaAbbrevDateFormatWeekday); 231 } 232 233 public boolean getJavaAbbrevDateFormatWeekdayHasBeenModified() { 234 return _value.getJavaAbbrevDateFormatWeekdayHasBeenModified(); 235 } 236 237 @Nonnull 238 public String getJavaLongDateFormat() { 239 return _value.getJavaLongDateFormat(); 240 } 241 242 public void setJavaLongDateFormat(@Nonnull String javaLongDateFormat) 243 throws PersistenceNotNullException, PersistenceReadOnlyException { 244 checkReadWrite(); 245 _value.setJavaLongDateFormat(javaLongDateFormat); 246 } 247 248 public boolean getJavaLongDateFormatHasBeenModified() { 249 return _value.getJavaLongDateFormatHasBeenModified(); 250 } 251 252 @Nonnull 253 public String getJavaLongDateFormatWeekday() { 254 return _value.getJavaLongDateFormatWeekday(); 255 } 256 257 public void setJavaLongDateFormatWeekday(@Nonnull String javaLongDateFormatWeekday) 258 throws PersistenceNotNullException, PersistenceReadOnlyException { 259 checkReadWrite(); 260 _value.setJavaLongDateFormatWeekday(javaLongDateFormatWeekday); 261 } 262 263 public boolean getJavaLongDateFormatWeekdayHasBeenModified() { 264 return _value.getJavaLongDateFormatWeekdayHasBeenModified(); 265 } 266 267 @Nonnull 268 public String getJavaTimeFormat() { 269 return _value.getJavaTimeFormat(); 270 } 271 272 public void setJavaTimeFormat(@Nonnull String javaTimeFormat) 273 throws PersistenceNotNullException, PersistenceReadOnlyException { 274 checkReadWrite(); 275 _value.setJavaTimeFormat(javaTimeFormat); 276 } 277 278 public boolean getJavaTimeFormatHasBeenModified() { 279 return _value.getJavaTimeFormatHasBeenModified(); 280 } 281 282 @Nonnull 283 public String getJavaTimeFormatSeconds() { 284 return _value.getJavaTimeFormatSeconds(); 285 } 286 287 public void setJavaTimeFormatSeconds(@Nonnull String javaTimeFormatSeconds) 288 throws PersistenceNotNullException, PersistenceReadOnlyException { 289 checkReadWrite(); 290 _value.setJavaTimeFormatSeconds(javaTimeFormatSeconds); 291 } 292 293 public boolean getJavaTimeFormatSecondsHasBeenModified() { 294 return _value.getJavaTimeFormatSecondsHasBeenModified(); 295 } 296 297 @Nonnull 298 public String getUnixShortDateFormat() { 299 return _value.getUnixShortDateFormat(); 300 } 301 302 public void setUnixShortDateFormat(@Nonnull String unixShortDateFormat) 303 throws PersistenceNotNullException, PersistenceReadOnlyException { 304 checkReadWrite(); 305 _value.setUnixShortDateFormat(unixShortDateFormat); 306 } 307 308 public boolean getUnixShortDateFormatHasBeenModified() { 309 return _value.getUnixShortDateFormatHasBeenModified(); 310 } 311 312 @Nonnull 313 public String getUnixAbbrevDateFormat() { 314 return _value.getUnixAbbrevDateFormat(); 315 } 316 317 public void setUnixAbbrevDateFormat(@Nonnull String unixAbbrevDateFormat) 318 throws PersistenceNotNullException, PersistenceReadOnlyException { 319 checkReadWrite(); 320 _value.setUnixAbbrevDateFormat(unixAbbrevDateFormat); 321 } 322 323 public boolean getUnixAbbrevDateFormatHasBeenModified() { 324 return _value.getUnixAbbrevDateFormatHasBeenModified(); 325 } 326 327 @Nonnull 328 public String getUnixAbbrevDateFormatWeekday() { 329 return _value.getUnixAbbrevDateFormatWeekday(); 330 } 331 332 public void setUnixAbbrevDateFormatWeekday(@Nonnull String unixAbbrevDateFormatWeekday) 333 throws PersistenceNotNullException, PersistenceReadOnlyException { 334 checkReadWrite(); 335 _value.setUnixAbbrevDateFormatWeekday(unixAbbrevDateFormatWeekday); 336 } 337 338 public boolean getUnixAbbrevDateFormatWeekdayHasBeenModified() { 339 return _value.getUnixAbbrevDateFormatWeekdayHasBeenModified(); 340 } 341 342 @Nonnull 343 public String getUnixLongDateFormat() { 344 return _value.getUnixLongDateFormat(); 345 } 346 347 public void setUnixLongDateFormat(@Nonnull String unixLongDateFormat) 348 throws PersistenceNotNullException, PersistenceReadOnlyException { 349 checkReadWrite(); 350 _value.setUnixLongDateFormat(unixLongDateFormat); 351 } 352 353 public boolean getUnixLongDateFormatHasBeenModified() { 354 return _value.getUnixLongDateFormatHasBeenModified(); 355 } 356 357 @Nonnull 358 public String getUnixLongDateFormatWeekday() { 359 return _value.getUnixLongDateFormatWeekday(); 360 } 361 362 public void setUnixLongDateFormatWeekday(@Nonnull String unixLongDateFormatWeekday) 363 throws PersistenceNotNullException, PersistenceReadOnlyException { 364 checkReadWrite(); 365 _value.setUnixLongDateFormatWeekday(unixLongDateFormatWeekday); 366 } 367 368 public boolean getUnixLongDateFormatWeekdayHasBeenModified() { 369 return _value.getUnixLongDateFormatWeekdayHasBeenModified(); 370 } 371 372 @Nonnull 373 public String getUnixTimeFormat() { 374 return _value.getUnixTimeFormat(); 375 } 376 377 public void setUnixTimeFormat(@Nonnull String unixTimeFormat) 378 throws PersistenceNotNullException, PersistenceReadOnlyException { 379 checkReadWrite(); 380 _value.setUnixTimeFormat(unixTimeFormat); 381 } 382 383 public boolean getUnixTimeFormatHasBeenModified() { 384 return _value.getUnixTimeFormatHasBeenModified(); 385 } 386 387 @Nonnull 388 public String getUnixTimeFormatSeconds() { 389 return _value.getUnixTimeFormatSeconds(); 390 } 391 392 public void setUnixTimeFormatSeconds(@Nonnull String unixTimeFormatSeconds) 393 throws PersistenceNotNullException, PersistenceReadOnlyException { 394 checkReadWrite(); 395 _value.setUnixTimeFormatSeconds(unixTimeFormatSeconds); 396 } 397 398 public boolean getUnixTimeFormatSecondsHasBeenModified() { 399 return _value.getUnixTimeFormatSecondsHasBeenModified(); 400 } 401 402 @Nonnull 403 public String getShortDateSeparator() { 404 return _value.getShortDateSeparator(); 405 } 406 407 public void setShortDateSeparator(@Nonnull String shortDateSeparator) 408 throws PersistenceNotNullException, PersistenceReadOnlyException { 409 checkReadWrite(); 410 _value.setShortDateSeparator(shortDateSeparator); 411 } 412 413 public boolean getShortDateSeparatorHasBeenModified() { 414 return _value.getShortDateSeparatorHasBeenModified(); 415 } 416 417 @Nonnull 418 public String getTimeSeparator() { 419 return _value.getTimeSeparator(); 420 } 421 422 public void setTimeSeparator(@Nonnull String timeSeparator) 423 throws PersistenceNotNullException, PersistenceReadOnlyException { 424 checkReadWrite(); 425 _value.setTimeSeparator(timeSeparator); 426 } 427 428 public boolean getTimeSeparatorHasBeenModified() { 429 return _value.getTimeSeparatorHasBeenModified(); 430 } 431 432 @Nonnull 433 public Boolean getIsDefault() { 434 return _value.getIsDefault(); 435 } 436 437 public void setIsDefault(@Nonnull Boolean isDefault) 438 throws PersistenceNotNullException, PersistenceReadOnlyException { 439 checkReadWrite(); 440 _value.setIsDefault(isDefault); 441 } 442 443 public boolean getIsDefaultHasBeenModified() { 444 return _value.getIsDefaultHasBeenModified(); 445 } 446 447 @Nonnull 448 public Integer getSortOrder() { 449 return _value.getSortOrder(); 450 } 451 452 public void setSortOrder(@Nonnull Integer sortOrder) 453 throws PersistenceNotNullException, PersistenceReadOnlyException { 454 checkReadWrite(); 455 _value.setSortOrder(sortOrder); 456 } 457 458 public boolean getSortOrderHasBeenModified() { 459 return _value.getSortOrderHasBeenModified(); 460 } 461 462 @Nonnull 463 public Long getFromTime() { 464 return _value.getFromTime(); 465 } 466 467 public void setFromTime(@Nonnull Long fromTime) 468 throws PersistenceNotNullException, PersistenceReadOnlyException { 469 checkReadWrite(); 470 _value.setFromTime(fromTime); 471 } 472 473 public boolean getFromTimeHasBeenModified() { 474 return _value.getFromTimeHasBeenModified(); 475 } 476 477 @Nonnull 478 public Long getThruTime() { 479 return _value.getThruTime(); 480 } 481 482 public void setThruTime(@Nonnull Long thruTime) 483 throws PersistenceNotNullException, PersistenceReadOnlyException { 484 checkReadWrite(); 485 _value.setThruTime(thruTime); 486 } 487 488 public boolean getThruTimeHasBeenModified() { 489 return _value.getThruTimeHasBeenModified(); 490 } 491 492}