Refine logic by which JDBCDataStore decides wheter a typeName is updatable or 
not
---------------------------------------------------------------------------------

                 Key: GEOT-2595
                 URL: http://jira.codehaus.org/browse/GEOT-2595
             Project: GeoTools
          Issue Type: Improvement
          Components: data jdbc-ng
    Affects Versions: 2.5.6
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 2.6-M1


At the moment the criteria is based on the availability of a primary key.
In facth things are more complicated.
In all databases the updatability is actually related to the user grants.
Moreover, in Oracle simple views are updatable and there are metadata columns 
that can be used to determine if the view is updatable or not.

I guess the datastore should delegeate to the dialect this decision passing a 
connection, schema and table name and let the dialect figure out the details on 
its own (investigation is needed on whether there is any generic way to 
evaluate user grants against a certain table)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to