Allow databases to have a native pk mapping strategy ----------------------------------------------------
Key: GEOT-2252 URL: http://jira.codehaus.org/browse/GEOT-2252 Project: GeoTools Issue Type: Improvement Components: data jdbc-ng Affects Versions: 2.5.2 Reporter: Andrea Aime Assignee: Justin Deoliveira Fix For: 2.5.3 Some databases have a concept of a row identifier that can be used when no other primary key is available. On postgres we may have the objectid, or Oracle there is the rowid (even on some kind of views). So when no pk is found, allow the dialect to provide a last resort PK. The method could be: SQLDialect.getNativePK(String tableName, Connection cx) as the dialect might have to try and run some query to check if the native pk is available. -- 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