Module org.seasar.doma.core
Class UnifiedUpdateStarting<ENTITY>
java.lang.Object
org.seasar.doma.jdbc.criteria.statement.UnifiedUpdateStarting<ENTITY>
- Type Parameters:
ENTITY- the type of the entity
Represents an UPDATE statement starting point.
-
Constructor Summary
ConstructorsConstructorDescriptionUnifiedUpdateStarting(Config config, EntityMetamodel<ENTITY> entityMetamodel, UpdateSettings settings) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionUpdates the entities in batch.set(Consumer<SetDeclaration> block) Specifies the set clause.Updates the entity.
-
Constructor Details
-
UnifiedUpdateStarting
public UnifiedUpdateStarting(Config config, EntityMetamodel<ENTITY> entityMetamodel, UpdateSettings settings) Creates an instance.- Parameters:
config- the configurationentityMetamodel- the entity metamodelsettings- the settings
-
-
Method Details
-
single
Updates the entity.- Parameters:
entity- the entity- Returns:
- the update statement
-
batch
Updates the entities in batch.- Parameters:
entities- the entities- Returns:
- the update statement
-
set
Specifies the set clause.- Parameters:
block- the block to declare the set clause- Returns:
- the update statement
-