Module org.seasar.doma.core
Class UnifiedInsertStarting<ENTITY>
java.lang.Object
org.seasar.doma.jdbc.criteria.statement.UnifiedInsertStarting<ENTITY>
- Type Parameters:
ENTITY- the type of the entity
Represents an INSERT statement starting point.
-
Constructor Summary
ConstructorsConstructorDescriptionUnifiedInsertStarting(Config config, EntityMetamodel<ENTITY> entityMetamodel, InsertSettings settings) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionInserts the entities in batch.Inserts the entities in a multi-row insert.select(Function<InsertSelectDeclaration, SubSelectContext<?>> block) Specifies the select clause.Inserts the entity.values(Consumer<ValuesDeclaration> block) Specifies the values clause.
-
Constructor Details
-
UnifiedInsertStarting
public UnifiedInsertStarting(Config config, EntityMetamodel<ENTITY> entityMetamodel, InsertSettings settings) Creates an instance.- Parameters:
config- the configurationentityMetamodel- the entity metamodelsettings- the settings
-
-
Method Details
-
single
Inserts the entity.- Parameters:
entity- the entity- Returns:
- the insert statement
-
batch
Inserts the entities in batch.- Parameters:
entities- the entities- Returns:
- the insert statement
-
multi
Inserts the entities in a multi-row insert.- Parameters:
entities- the entities- Returns:
- the insert statement
-
values
Specifies the values clause.- Parameters:
block- the block that provides the values declaration- Returns:
- the insert statement
-
select
Specifies the select clause.- Parameters:
block- the block that provides the select declaration- Returns:
- the insert statement
-