Class SqlFileInsertQuery.EntityHandler<E>

java.lang.Object
org.seasar.doma.jdbc.query.SqlFileInsertQuery.EntityHandler<E>
Type Parameters:
E - the entity type
Enclosing class:
SqlFileInsertQuery

protected class SqlFileInsertQuery.EntityHandler<E> extends Object
A handler for entity lifecycle callbacks.
  • Field Details

    • name

      protected final String name
      The parameter name for the entity.
    • entity

      protected E entity
      The entity being inserted.
    • entityType

      protected final EntityType<E> entityType
      The entity type.
  • Constructor Details

    • EntityHandler

      protected EntityHandler(String name, E entity, EntityType<E> entityType)
      Constructs a new instance with the specified entity information.
      Parameters:
      name - the parameter name for the entity
      entity - the entity being inserted
      entityType - 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.