Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Some stages were submitted. I'm not sure where they should go. Maybe SessionStage and CommitStage could go under
package org.apache.commons.pipeline.stage.contrib.hibernate;
and GroupStage and UngroupStage could go into
package org.apache.commons.pipeline.stage.contrib;
I've looked over the code but haven't run these yet. These are here so people can work with them and comment on improvements and how to add them to the pipeline codebase.
Mark Southern wrote:
> I've had a chance to use Commons Pipeline recently and I'm a fan . I wondered if I might contribute back a few Stages that I've written? The first two have dependencies on commons-collections and the last two on Hibernate. Maybe they could go into a user-contrib project?
>
> GroupStage: Add single objects to an ArrayList. Emits at a predetermined size.
> UngroupStage: Emit single objects by iterating over an Iterable, Iterator, Array or single object.
> SessionStage: Ensures that each Thread operating on a Stage gets its own Hibernate session.
> CommitStage: Calls Session.save on each Hibernate object and commits with a predefined frequency.
>
> Best regards,
> ~Mark.