Top Description Fields Constructors Methods
org.hibernate.event

public Class PreInsertEvent

extends AbstractPreDatabaseOperationEvent
Class Inheritance
Imports
java.io.Serializable, org.hibernate.persister.entity.EntityPersister

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

Field Summary

Modifier and TypeField and Description
private Object[]

Constructor Summary

AccessConstructor and Description
public
PreInsertEvent(Object
The entity to be inserted.
entity
,
Serializable
The id to use in the insertion.
id
,
Object[]
The state to be inserted.
state
,
EntityPersister
The entity's persister.
persister
,
EventSource
The session from which the event originated.
source
)

Constructs an event containing the pertinent information.

Method Summary

Modifier and TypeMethod and Description
public Object[]

Returns:

Value for property 'state'.
getState
()

Getter for property 'state'.

Inherited from org.hibernate.event.AbstractPreDatabaseOperationEvent:
getEntitygetIdgetPersistergetSource

Field Detail

stateback to summary
private Object[] state

Constructor Detail

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

Constructs an event containing the pertinent information.

Parameters
entity:Object

The entity to be inserted.

id:Serializable

The id to use in the insertion.

state:Object[]

The state to be inserted.

persister:EntityPersister

The entity's persister.

source:EventSource

The session from which the event originated.

Method Detail

getStateback to summary
public Object[] getState()

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

Returns:Object[]

Value for property 'state'.