Christophe Rousson ha scritto:
>  
> Working on DataCache to pass MemoryDataStoreTest.
> 
> I've come to a question :
> 
> Query.ALL is a generic query, et .getTypeName() yields a null.
> A DataStore may repesent many FeatureTypes.
> What behavior should then have DataStore.getView(Query.ALL) ? Should it 
> create an heterogeneous set of features with every feature in every 
> schema ? or throw a SchemaException ?

Imho, you should throw an exception stating the typename is not 
specified (an IOExceptions hould be fine?).

Query.ALL works if you're hitting a FeatureSource, where the type
name is known.

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to