Hey all,

I'm looking for a bit of advise on how to get what I need out from the
insert transaction events, which is no more than a transaction
listener/plugin to know the actual inserted features or at least its
feature ids.

Right now it looks like there's no way for a transaction listener to get
a handle to the inserted feature ids nor de actual inserted features, as
InsertElementHandler doesn't provide neither, nor Transaction does for
the TransactionPlugins?

As for InsertElementHandler, it wouldn't even help if it issued a
POST_INSERT event as is, since the source feature collection wouldn't
have the newly generated fids.
May be the easiest way forward would be for the
TransactionPlugin.afterTransaction(TransactionType request, boolean
committed) method to also receive the TransactionResponseType response
so implementations can get to the InsertResultsType and grab the list of
inserted feature ids?

And in the process may be also remove the
TransactionEventType.POST_INSERT constant as it looks it's not used
anywhere and it's confusing for it to be there?

TIA,
Gabriel
-- 
Gabriel Roldan
[email protected]
Expert service straight from the developers


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to