On Mon, May 9, 2011 at 5:25 PM, Gabriel Roldán <[email protected]> wrote:
> 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?

Yep, sounds like a reasonable solution. Mind though, not all stores will
give you back a valid id. If you do transactions on shapefiles _I believe_
you won't get back a valid id (might be wrong, but I remember those
giving back ids like "new0", "new1" and so on).

> 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?

POST_INSERT event is fired by WFSV rollback operation, so please
don't remove it. As for the recent WPS build breakage due to changes in the
WFS SHAPE-ZIP it would be good if you could load all of the projects
in the release
when making code analysis, and do a build with -Prelease before committing.
Extension modules are less important, yet they still are in the build and the
release so we should take them into account when making changes.

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to