1 package org.hibernate.event; 3 4 import org.hibernate.LockMode; 5 6 11 public class LockEvent extends AbstractEvent { 12 13 private Object object; 14 private LockMode lockMode; 15 private String entityName; 16 17 public LockEvent(String entityName, Object original, LockMode lockMode, EventSource source) { 18 this(original, lockMode, source); 19 this.entityName = entityName; 20 } 21 22 public LockEvent(Object object, LockMode lockMode, EventSource source) { 23 super(source); 24 this.object = object; 25 this.lockMode = lockMode; 26 } 27 28 public Object getObject() { 29 return object; 30 } 31 32 public void setObject(Object object) { 33 this.object = object; 34 } 35 36 public LockMode getLockMode() { 37 return lockMode; 38 } 39 40 public void setLockMode(LockMode lockMode) { 41 this.lockMode = lockMode; 42 } 43 44 public String getEntityName() { 45 return entityName; 46 } 47 48 public void setEntityName(String entityName) { 49 this.entityName = entityName; 50 } 51 52 } 53 | Popular Tags |