Mendix Runtime
Documentation for the Mendix Runtime Environment API
com.mendix.systemwideinterfaces.core.ICreateBatch Interface Reference
+ Inheritance diagram for com.mendix.systemwideinterfaces.core.ICreateBatch:

List of all members.

Public Member Functions

abstract void create () throws CoreException
ICreateBatch createBatchForAssociation (String associationName) throws CoreException
ICreateBatch createBatchForAssociation (String associationName, boolean isReversedSelfReference) throws CoreException

Detailed Description

Object for creating a batch of objects of the same type.
Only create rights will be checked, update rights not.
DataValidation is optional.
No events will be triggered.

Note: not thread safe


Member Function Documentation

abstract void com.mendix.systemwideinterfaces.core.ICreateBatch.create ( ) throws CoreException [pure virtual]

Create a new object in this batch

Exceptions:
CoreException
ICreateBatch com.mendix.systemwideinterfaces.core.ICreateBatch.createBatchForAssociation ( String  associationName) throws CoreException

Creates a CreateBatch for the given association.
The batch will be linked hierarchically to each other, meaning that all items created in the CreateBatch for an association will be added to that association of the current object of the parent CreateBatch.
autoCommit, batchSize and useDataValidation are based on the parent batch

Parameters:
associationName
Returns:
returns the created CreateBatch
Exceptions:
CoreException
ICreateBatch com.mendix.systemwideinterfaces.core.ICreateBatch.createBatchForAssociation ( String  associationName,
boolean  isReversedSelfReference 
) throws CoreException

Creates a Create Bathc for the given association.
The batch will be linked hierarchically to each other, meaning that all items created in the CreateBatch for an association will be added to that association of the current object of the parent CreateBatch.
autoCommit, batchSize and useDataValidation are based on the parent batch

Parameters:
associationName
isReversedSelfReferenceindicates whether this batch should be treated as a reversed self reference (child -> parent instead of the default parent -> child association).
Returns:
returns the created CreateBatch
Exceptions:
CoreException

The documentation for this interface was generated from the following file: