Module is.codion.framework.db.core
Package is.codion.framework.db
Interface EntityConnection.Copy.Builder
- Enclosing interface:
- EntityConnection.Copy
public static interface EntityConnection.Copy.Builder
A builder for a
EntityConnection.Copy
operation.-
Method Summary
Modifier and TypeMethodDescriptionbatchSize
(int batchSize) build()
Specifies a condition to use when determining which entities of the given type to copy, if none is specified all entities are copied.entityTypes
(EntityType... entityTypes) void
execute()
Builds and executes this copy operationincludePrimaryKeys
(boolean includePrimaryKeys)
-
Method Details
-
entityTypes
- Parameters:
entityTypes
- the entity types to copy- Returns:
- this builder instance
-
batchSize
- Parameters:
batchSize
- the commit batch size- Returns:
- this buildr instance
- Throws:
IllegalArgumentException
- ifbatchSize
is not a positive integer
-
includePrimaryKeys
- Parameters:
includePrimaryKeys
- true if the primary key values should be included when copying- Returns:
- this builder instance
-
condition
Specifies a condition to use when determining which entities of the given type to copy, if none is specified all entities are copied.- Parameters:
condition
- the condition to use- Returns:
- this builder instance
-
execute
Builds and executes this copy operation- Throws:
DatabaseException
- in case of an exception
-
build
EntityConnection.Copy build()- Returns:
- a new
EntityConnection.Copy
instance
-