Paolo Rizzi (JIRA) wrote:
Implement createSchema()
------------------------

         Key: GEOT-711
         URL: http://jira.codehaus.org/browse/GEOT-711
     Project: GeoTools
        Type: New Feature
Components: oraclespatial Versions: 2.2.M0 Reporter: Paolo Rizzi Assigned to: Sean Geoghegan

I'll probably need the createSchema() method for the OracleDataStore, so I'm 
probably going
to implement it. Then I could commit it. Obviously it won't be perfect at 
first, but better than nothing...
Still there's the problem of missing meta info in FeatureType to know which 
Attributes are PrimaryKeys.
For that I may use a little Java reflection so that you can specifiy an Object 
able to give that meta info,
but if that Object isn't specified, no primary keys will be created. I won't 
explain it further here, because
I have to think about it better, anyway I'll try to come up with a good 
solution.
Cool - the relationship between primary keys, attributes and FID generation is a bit murky. It could be that we should only change the createSchema function to work if both a FIDMapper (specifing primary keys and how to map between them and a FID) and a FeatureType are provided?

Note this is a situation where your meta classes are better then FeatureType.
In JDBC it is the difference between create schema and resultSetMetaData.
Jody


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to