I am using the DataStore api trying to make a pleasant user experience
for creating featuretypes (and I'd like to remove and modify them at
some point in the future). As a result I have found a few shortcomings
so far.
1. DataStore does not have events that notify listeners that a schema
has changed. This causes problems because I am forced to more tightly
bind my code than I would like. An action that should know nothing
about the datastore viewer now has to tell the viewer to refresh, which
is "silly".
2. There is no way to query the DataStore as to whether the createSchema
method can be used. This is a requirement for a good user experience.
If a user goes to a bunch of work to create a new feature type then at
the commit stage it backfires and says "sorry you can't add feature
types to this datastore" they are going to be choked.
3. There is no way to remove FeatureTypes
4. There is no way to modify FeatureTypes.
For 3 and 4 GeoAPI has a reasonable approach but a few comments come to
mind with regards to its API
1. removeType takes a generic name rather than a FeatureType. I like
the stronger typing of a FeatureType to identify which type to remove.
2. modifyType take a FeatureType as a parameter and I assume that the
FeatureType that is being modified is located by matching the TypeName.
I would like the original FeatureType to be a parameter as well. This
allows the name of the FeatureType to be modified as well as the attributes.
Comments?
Jesse
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel