Java Mailing List Archive

http://www.gg3721.com/

Home » the NHibernate development list »

[NHibernate-development] Revision 3219 IBatcherFactory injection

Fabio Maulo

2008-01-07


Author LoginPost Reply
Hi Karl.
Now who want can write the IBatcher for the Dialect he prefer without
scare for put he's hands in NH code base.

How start:
1) Implement IBatcher directly or inheriting from AbstractBatcher. We
have two existing examples: OracleDataClientBatchingBatcher and
SqlClientBatchingBatcher
2) Implement the IBatcherFactory. We have two example in the same
source file than above.
3) In the hibernate.cfg.xml or in the hibernate's cofiguration-section
of App.config add:
<property name="adonet.batch_size">10</property>
<property name="adonet.factory_class">YourNameSpace.YourBatcher,
YourDLL</property>

Unfortunately we don't have an example to test it (I think we don't).

Batchers can be posted to JIRA like improvement and than we can add it
to code-base like another EmbeddedBatcherFactory.

Sometime we can create a new entry-level task in JIRA.

Bye.
Fabio Maulo

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nhibernate-development mailing list
Nhibernate-development@(protected)
https://lists.sourceforge.net/lists/listinfo/nhibernate-development
©2008 gg3721.com - Jax Systems, LLC, U.S.A.