Module org.seasar.doma.core
Class UnifiedDeleteStarting<ENTITY>
java.lang.Object
org.seasar.doma.jdbc.criteria.statement.UnifiedDeleteStarting<ENTITY>
- Type Parameters:
ENTITY- the type of the entity
Represents a DELETE statement starting point.
-
Constructor Summary
ConstructorsConstructorDescriptionUnifiedDeleteStarting(Config config, EntityMetamodel<ENTITY> entityMetamodel, DeleteSettings settings) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionall()Deletes all the entities.Deletes the entities in batch.Deletes the entity.where(Consumer<WhereDeclaration> block) Specifies the where clause.
-
Constructor Details
-
UnifiedDeleteStarting
public UnifiedDeleteStarting(Config config, EntityMetamodel<ENTITY> entityMetamodel, DeleteSettings settings) Creates an instance.- Parameters:
config- the configurationentityMetamodel- the entity metamodelsettings- the settings
-
-
Method Details
-
single
Deletes the entity.- Parameters:
entity- the entity- Returns:
- the delete statement
-
batch
Deletes the entities in batch.- Parameters:
entities- the entities- Returns:
- the delete statement
-
where
Specifies the where clause.- Parameters:
block- the block that provides the where declaration- Returns:
- the delete statement
-
all
Deletes all the entities.- Returns:
- the delete statement
-