Class DocumentFolderSqlCreator


public class DocumentFolderSqlCreator extends Object
Creates "entity folders".

Given an entity and its parent folder, creates a new folder by inserting a row into the table `nice_folder`. It does so in parallel if `nthreads` is greater than 1. Also the inserts are committed in batches of `txsize`.

The `submit` method submits workers in a thread pool that insert the rows in `nice_folder` according to the given entity. The method finish() must be called at last to shut down the pool (this object is not usable anymore after this).