Module org.seasar.doma.core
Class EntityqlBatchInsertIntermediate<ENTITY>
java.lang.Object
org.seasar.doma.jdbc.criteria.statement.AbstractStatement<EntityqlBatchInsertIntermediate<ENTITY>,BatchResult<ENTITY>>
org.seasar.doma.jdbc.criteria.statement.EntityqlBatchInsertIntermediate<ENTITY>
- All Implemented Interfaces:
Buildable<Statement<BatchResult<ENTITY>>>,Statement<BatchResult<ENTITY>>
public class EntityqlBatchInsertIntermediate<ENTITY>
extends AbstractStatement<EntityqlBatchInsertIntermediate<ENTITY>,BatchResult<ENTITY>>
-
Field Summary
Fields inherited from class org.seasar.doma.jdbc.criteria.statement.AbstractStatement
config, EXECUTE_METHOD, EXECUTE_METHOD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionEntityqlBatchInsertIntermediate(Config config, EntityMetamodel<ENTITY> entityMetamodel, List<ENTITY> entities, InsertSettings settings, DuplicateKeyType duplicateKeyType) -
Method Summary
Modifier and TypeMethodDescriptionSql<?>asSql()Returns the built SQL.protected Command<BatchResult<ENTITY>>execute()Executes the SQL statement.keys(PropertyMetamodel<?>... keys) Specify the keys used for duplicate checking UPSERT statement.Methods inherited from class org.seasar.doma.jdbc.criteria.statement.AbstractStatement
createCommenter, peek
-
Constructor Details
-
EntityqlBatchInsertIntermediate
public EntityqlBatchInsertIntermediate(Config config, EntityMetamodel<ENTITY> entityMetamodel, List<ENTITY> entities, InsertSettings settings, DuplicateKeyType duplicateKeyType)
-
-
Method Details
-
keys
Specify the keys used for duplicate checking UPSERT statement. if no keys are specified, theIdproperty are used for duplicate checking.- Parameters:
keys- keys the keys used for duplicate checking- Returns:
- selecting set statement builder
-
execute
Executes the SQL statement.- Specified by:
executein interfaceStatement<ENTITY>- Overrides:
executein classAbstractStatement<EntityqlBatchInsertIntermediate<ENTITY>,BatchResult<ENTITY>> - Returns:
- the result
- Throws:
UniqueConstraintException- if an unique constraint is violatedJdbcException- if a JDBC related error occurs
-
createCommand
- Specified by:
createCommandin classAbstractStatement<EntityqlBatchInsertIntermediate<ENTITY>,BatchResult<ENTITY>>
-
asSql
Description copied from interface:BuildableReturns the built SQL.- Specified by:
asSqlin interfaceBuildable<ENTITY>- Overrides:
asSqlin classAbstractStatement<EntityqlBatchInsertIntermediate<ENTITY>,BatchResult<ENTITY>> - Returns:
- the built sql
-