FileDocCategorySizeDatePackage
SaveOrUpdateEvent.javaAPI DocHibernate 3.2.51986Mon Aug 08 18:24:44 BST 2005org.hibernate.event

SaveOrUpdateEvent

public class SaveOrUpdateEvent extends AbstractEvent
An event class for saveOrUpdate()
author
Steve Ebersole

Fields Summary
private Object
object
private Serializable
requestedId
private String
entityName
private Object
entity
private org.hibernate.engine.EntityEntry
entry
private Serializable
resultId
Constructors Summary
public SaveOrUpdateEvent(String entityName, Object original, EventSource source)

		this(original, source);
		this.entityName = entityName;
	
public SaveOrUpdateEvent(String entityName, Object original, Serializable id, EventSource source)

		this(entityName, original, source);
		this.requestedId = id;
		if ( requestedId == null ) {
			throw new IllegalArgumentException(
					"attempt to create saveOrUpdate event with null identifier"
				);
		}
	
public SaveOrUpdateEvent(Object object, EventSource source)

		super(source);
		if ( object == null ) {
			throw new IllegalArgumentException(
					"attempt to create saveOrUpdate event with null entity"
				);
		}
		this.object = object;
	
Methods Summary
public java.lang.ObjectgetEntity()

		return entity;
	
public java.lang.StringgetEntityName()

		return entityName;
	
public org.hibernate.engine.EntityEntrygetEntry()

		return entry;
	
public java.lang.ObjectgetObject()

		return object;
	
public java.io.SerializablegetRequestedId()

		return requestedId;
	
public java.io.SerializablegetResultId()

		return resultId;
	
public voidsetEntity(java.lang.Object entity)

		this.entity = entity;
	
public voidsetEntityName(java.lang.String entityName)

		this.entityName = entityName;
	
public voidsetEntry(org.hibernate.engine.EntityEntry entry)

		this.entry = entry;
	
public voidsetObject(java.lang.Object object)

		this.object = object;
	
public voidsetRequestedId(java.io.Serializable requestedId)

		this.requestedId = requestedId;
	
public voidsetResultId(java.io.Serializable resultId)

		this.resultId = resultId;