public class

PreInsertEvent

extends AbstractPreDatabaseOperationEvent
java.lang.Object
   ↳ org.hibernate.event.AbstractEvent
     ↳ org.hibernate.event.AbstractPreDatabaseOperationEvent
       ↳ org.hibernate.event.PreInsertEvent

Class Overview

Represents a pre-insert event, which occurs just prior to performing the insert of an entity into the database.

Summary

Public Constructors
PreInsertEvent(Object entity, Serializable id, Object[] state, EntityPersister persister, EventSource source)
Constructs an event containing the pertinent information.
Public Methods
Object[] getState()
Getter for property 'state'.
[Expand]
Inherited Methods
From class org.hibernate.event.AbstractPreDatabaseOperationEvent
From class org.hibernate.event.AbstractEvent
From class java.lang.Object

Public Constructors

public PreInsertEvent (Object entity, Serializable id, Object[] state, EntityPersister persister, EventSource source)

Constructs an event containing the pertinent information.

Parameters
entity The entity to be inserted.
id The id to use in the insertion.
state The state to be inserted.
persister The entity's persister.
source The session from which the event originated.

Public Methods

public Object[] getState ()

Getter for property 'state'. These are the values to be inserted.

Returns
  • Value for property 'state'.