Module org.seasar.doma.core
Package org.seasar.doma.jdbc.query
Class SqlFileInsertQuery.EntityHandler<E>
java.lang.Object
org.seasar.doma.jdbc.query.SqlFileInsertQuery.EntityHandler<E>
- Type Parameters:
E- the entity type
- Enclosing class:
- SqlFileInsertQuery
A handler for entity lifecycle callbacks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EThe entity being inserted.protected final EntityType<E>The entity type.protected final StringThe parameter name for the entity. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityHandler(String name, E entity, EntityType<E> entityType) Constructs a new instance with the specified entity information. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidExecutes post-insert entity lifecycle callbacks.protected voidExecutes pre-insert entity lifecycle callbacks.
-
Field Details
-
name
The parameter name for the entity. -
entity
The entity being inserted. -
entityType
The entity type.
-
-
Constructor Details
-
EntityHandler
Constructs a new instance with the specified entity information.- Parameters:
name- the parameter name for the entityentity- the entity being insertedentityType- the entity type
-
-
Method Details
-
preInsert
protected void preInsert()Executes pre-insert entity lifecycle callbacks.This method creates a pre-insert context and calls the entity type's preInsert method.
-
postInsert
protected void postInsert()Executes post-insert entity lifecycle callbacks.This method creates a post-insert context and calls the entity type's postInsert method.
-