Module org.seasar.doma.core
Package org.seasar.doma.jdbc.query
Class AutoMultiInsertQuery.AutoPreInsertContext<E>
java.lang.Object
org.seasar.doma.internal.jdbc.entity.AbstractEntityListenerContext<E>
org.seasar.doma.internal.jdbc.entity.AbstractPreInsertContext<E>
org.seasar.doma.jdbc.query.AutoMultiInsertQuery.AutoPreInsertContext<E>
- Type Parameters:
E- the entity type
- All Implemented Interfaces:
PreInsertContext<E>
- Enclosing class:
- AutoMultiInsertQuery<ENTITY>
protected static class AutoMultiInsertQuery.AutoPreInsertContext<E>
extends AbstractPreInsertContext<E>
A context class for pre-insert entity processing.
This class extends AbstractPreInsertContext to add support for returning properties. It's used to pass information to entity listeners during the pre-insert phase.
-
Field Summary
Fields inherited from class org.seasar.doma.internal.jdbc.entity.AbstractEntityListenerContext
config, entityType, method, newEntity -
Constructor Summary
ConstructorsConstructorDescriptionAutoPreInsertContext(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.AbstractPreInsertContext
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.PreInsertContext
getConfig, getEntityType, getMethod, getNewEntity, setNewEntity
-
Constructor Details
-
AutoPreInsertContext
public AutoPreInsertContext(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:
-