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

ReplicateEvent

public class ReplicateEvent extends AbstractEvent
Defines an event class for the replication of an entity.
author
Steve Ebersole

Fields Summary
private Object
object
private org.hibernate.ReplicationMode
replicationMode
private String
entityName
Constructors Summary
public ReplicateEvent(Object object, org.hibernate.ReplicationMode replicationMode, EventSource source)

		this(null, object, replicationMode, source);
	
public ReplicateEvent(String entityName, Object object, org.hibernate.ReplicationMode replicationMode, EventSource source)

		super(source);
		this.entityName = entityName;

		if ( object == null ) {
			throw new IllegalArgumentException(
					"attempt to create replication strategy with null entity"
			);
		}
		if ( replicationMode == null ) {
			throw new IllegalArgumentException(
					"attempt to create replication strategy with null replication mode"
			);
		}

		this.object = object;
		this.replicationMode = replicationMode;
	
Methods Summary
public java.lang.StringgetEntityName()

		return entityName;
	
public java.lang.ObjectgetObject()

		return object;
	
public org.hibernate.ReplicationModegetReplicationMode()

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

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

		this.object = object;
	
public voidsetReplicationMode(org.hibernate.ReplicationMode replicationMode)

		this.replicationMode = replicationMode;