Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » event » [javadoc | source]
org.hibernate.event
public class: PreInsertEvent [javadoc | source]
java.lang.Object
   org.hibernate.event.AbstractEvent
      org.hibernate.event.AbstractPreDatabaseOperationEvent
         org.hibernate.event.PreInsertEvent

All Implemented Interfaces:
    Serializable

Represents a pre-insert event, which occurs just prior to performing the insert of an entity into the database.
Constructor:
 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.
Method from org.hibernate.event.PreInsertEvent Summary:
getState
Methods from org.hibernate.event.AbstractPreDatabaseOperationEvent:
getEntity,   getId,   getPersister,   getSource
Methods from org.hibernate.event.AbstractEvent:
getSession
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.event.PreInsertEvent Detail:
 public Object[] getState() 
    Getter for property 'state'. These are the values to be inserted.