Module org.seasar.doma.core
Class EntityqlInsertIntermediate<ENTITY>
java.lang.Object
org.seasar.doma.jdbc.criteria.statement.AbstractStatement<EntityqlInsertIntermediate<ENTITY>,Result<ENTITY>>
org.seasar.doma.jdbc.criteria.statement.EntityqlInsertIntermediate<ENTITY>
public class EntityqlInsertIntermediate<ENTITY>
extends AbstractStatement<EntityqlInsertIntermediate<ENTITY>,Result<ENTITY>>
-
Field Summary
Fields inherited from class org.seasar.doma.jdbc.criteria.statement.AbstractStatement
config, EXECUTE_METHOD, EXECUTE_METHOD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionEntityqlInsertIntermediate(Config config, EntityMetamodel<ENTITY> entityMetamodel, ENTITY entity, InsertSettings settings, DuplicateKeyType duplicateKeyType) -
Method Summary
Modifier and TypeMethodDescriptionexecute()Executes the SQL statement.keys(PropertyMetamodel<?>... keys) Specify the keys used for duplicate checking UPSERT statement.returning(PropertyMetamodel<?>... properties) Methods inherited from class org.seasar.doma.jdbc.criteria.statement.AbstractStatement
asSql, createCommenter, peek
-
Constructor Details
-
EntityqlInsertIntermediate
public EntityqlInsertIntermediate(Config config, EntityMetamodel<ENTITY> entityMetamodel, ENTITY entity, 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
-
returning
-
execute
Executes the SQL statement.- Specified by:
executein interfaceStatement<ENTITY>- Overrides:
executein classAbstractStatement<EntityqlInsertIntermediate<ENTITY>,Result<ENTITY>> - Returns:
- the result
- Throws:
UniqueConstraintException- if an unique constraint is violatedJdbcException- if a JDBC related error occurs
-
createCommand
- Specified by:
createCommandin classAbstractStatement<EntityqlInsertIntermediate<ENTITY>,Result<ENTITY>>
-