OK, thx.
So, something like that ? :
boolean result = false;
SimpleFeatureSource featureSrc = getFeatureSource("TABLE");
if (featureSrc != null) {
SimpleFeatureType ft = featureSrc.getSchema();
if (ft.getType("COLUMN") != null) {
result = true;
}
}
2013/10/7 Andrea Aime <andrea.a...@geo-solutions.it>
> On Mon, Oct 7, 2013 at 6:32 PM, Rudy Commenge <rudywi.de...@gmail.com>wrote:
>
>> Hi,
>>
>> How to check if a particular "TABLE.COLUMN" exists from JDBCDataStore ?
>>
>
> You first get the feature type with the same name as the table, and if
> that exists,
> check if it has an attribute named after the column
>
> Btw, this is a question for geotools-users, the devel mailing list is
> devoted to discussion
> about changes/evolution of the library itself (that is, for people working
> to evolve the
> library, not for users of it)
>
> Cheers
> Andrea
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39 339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users