FileDocCategorySizeDatePackage
PersistEvent.javaAPI DocHibernate 3.2.5903Thu May 26 22:54:08 BST 2005org.hibernate.event

PersistEvent

public class PersistEvent extends AbstractEvent
An event class for persist()
author
Gavin King

Fields Summary
private Object
object
private String
entityName
Constructors Summary
public PersistEvent(String entityName, Object original, EventSource source)

		this(original, source);
		this.entityName = entityName;
	
public PersistEvent(Object object, EventSource source)

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

		return entityName;
	
public java.lang.ObjectgetObject()

		return object;
	
public voidsetEntityName(java.lang.String entityName)

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

		this.object = object;