Module org.seasar.doma.core
Package org.seasar.doma.jdbc.query
Class AutoMultiInsertQuery.AutoPostInsertContext<E>
java.lang.Object
org.seasar.doma.internal.jdbc.entity.AbstractEntityListenerContext<E>
org.seasar.doma.internal.jdbc.entity.AbstractPostInsertContext<E>
org.seasar.doma.jdbc.query.AutoMultiInsertQuery.AutoPostInsertContext<E>
- Type Parameters:
E- the entity type
- All Implemented Interfaces:
PostInsertContext<E>
- Enclosing class:
- AutoMultiInsertQuery<ENTITY>
protected static class AutoMultiInsertQuery.AutoPostInsertContext<E>
extends AbstractPostInsertContext<E>
A context class for post-insert entity processing.
This class extends AbstractPostInsertContext to add support for returning properties. It's used to pass information to entity listeners during the post-insert phase.
-
Field Summary
Fields inherited from class org.seasar.doma.internal.jdbc.entity.AbstractEntityListenerContext
config, entityType, method, newEntity -
Constructor Summary
ConstructorsConstructorDescriptionAutoPostInsertContext(EntityType<E> entityType, Method method, Config config, DuplicateKeyType duplicateKeyType, ReturningProperties returningProperties) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the properties to be returned from the INSERT statement.Methods inherited from class org.seasar.doma.internal.jdbc.entity.AbstractPostInsertContext
getDuplicateKeyTypeMethods inherited from class org.seasar.doma.internal.jdbc.entity.AbstractEntityListenerContext
getConfig, getEntityType, getMethod, getNewEntity, isPropertyDefinedInternal, setNewEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.seasar.doma.jdbc.entity.PostInsertContext
getConfig, getEntityType, getMethod, getNewEntity, setNewEntity
-
Constructor Details
-
AutoPostInsertContext
public AutoPostInsertContext(EntityType<E> entityType, Method method, Config config, DuplicateKeyType duplicateKeyType, ReturningProperties returningProperties) Constructs an instance.- Parameters:
entityType- the entity typemethod- the method that triggered this contextconfig- the configurationduplicateKeyType- the duplicate key handling strategyreturningProperties- the properties to be returned
-
-
Method Details
-
getReturningProperties
Returns the properties to be returned from the INSERT statement.- Returns:
- the returning properties
- See Also:
-