1 23 package javax.persistence; 24 25 33 public class OptimisticLockException extends PersistenceException { 34 35 36 Object entity; 37 38 42 public OptimisticLockException() { 43 super(); 44 } 45 46 51 public OptimisticLockException(String message) { 52 super(message); 53 } 54 55 61 public OptimisticLockException(String message, Throwable cause) { 62 super(message, cause); 63 } 64 65 70 public OptimisticLockException(Throwable cause) { 71 super(cause); 72 } 73 74 79 public OptimisticLockException(Object entity) { 80 this.entity = entity; 81 } 82 83 90 public OptimisticLockException(String message, Throwable cause, Object entity) { 91 super(message, cause); 92 this.entity = entity; 93 } 94 95 99 public Object getEntity() { 100 return this.entity; 101 } 102 103 }; 104 105 | Popular Tags |