Module org.seasar.doma.core
Class EntityqlInsertStatement<ENTITY>
java.lang.Object
org.seasar.doma.jdbc.criteria.statement.AbstractStatement<EntityqlInsertStatement<ENTITY>,Result<ENTITY>>
org.seasar.doma.jdbc.criteria.statement.EntityqlInsertStatement<ENTITY>
public class EntityqlInsertStatement<ENTITY>
extends AbstractStatement<EntityqlInsertStatement<ENTITY>,Result<ENTITY>>
-
Field Summary
Fields inherited from class org.seasar.doma.jdbc.criteria.statement.AbstractStatement
config, EXECUTE_METHOD, EXECUTE_METHOD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionEntityqlInsertStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, ENTITY entity, InsertSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionexecute()Executes the SQL statement.Create statement that inserts or ignoreCreate statement that inserts or updatesreturning(PropertyMetamodel<?>... properties) Methods inherited from class org.seasar.doma.jdbc.criteria.statement.AbstractStatement
asSql, createCommenter, peek
-
Constructor Details
-
EntityqlInsertStatement
public EntityqlInsertStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, ENTITY entity, InsertSettings settings)
-
-
Method Details
-
onDuplicateKeyUpdate
Create statement that inserts or updates- Returns:
- statement
-
onDuplicateKeyIgnore
Create statement that inserts or ignore- Returns:
- statement
-
returning
-
execute
Executes the SQL statement.- Specified by:
executein interfaceStatement<ENTITY>- Overrides:
executein classAbstractStatement<EntityqlInsertStatement<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<EntityqlInsertStatement<ENTITY>,Result<ENTITY>>
-