Module org.seasar.doma.core
Class AbstractPreInsertContext<E>
java.lang.Object
org.seasar.doma.internal.jdbc.entity.AbstractEntityListenerContext<E>
org.seasar.doma.internal.jdbc.entity.AbstractPreInsertContext<E>
- All Implemented Interfaces:
PreInsertContext<E>
- Direct Known Subclasses:
AutoBatchInsertQuery.AutoBatchPreInsertContext,AutoInsertQuery.AutoPreInsertContext,AutoMultiInsertQuery.AutoPreInsertContext,SqlFileBatchInsertQuery.SqlFileBatchPreInsertContext,SqlFileInsertQuery.SqlFilePreInsertContext
public class AbstractPreInsertContext<E>
extends AbstractEntityListenerContext<E>
implements PreInsertContext<E>
-
Field Summary
Fields inherited from class org.seasar.doma.internal.jdbc.entity.AbstractEntityListenerContext
config, entityType, method, newEntity -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPreInsertContext(EntityType<E> entityType, Method method, Config config, DuplicateKeyType duplicateKeyType) -
Method Summary
Modifier and TypeMethodDescriptionReturns the duplicate key handling strategy for this insert operation.Methods 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, getReturningProperties, setNewEntity
-
Constructor Details
-
AbstractPreInsertContext
protected AbstractPreInsertContext(EntityType<E> entityType, Method method, Config config, DuplicateKeyType duplicateKeyType)
-
-
Method Details
-
getDuplicateKeyType
Description copied from interface:PreInsertContextReturns the duplicate key handling strategy for this insert operation.This method indicates how the insert operation should handle duplicate key violations, such as by updating the existing record, ignoring the error, or throwing an exception.
- Specified by:
getDuplicateKeyTypein interfacePreInsertContext<E>- Returns:
- the duplicate key handling strategy
- See Also:
-