> > 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?
...it may be a solution, but as you said all the FIDMapper stuff
is a little messed up, so I don't know...

Actually, if you look at the PostgisDataStore, you'll see that,
for a non existant table the PostgisFIDMapperFactory.buildNoPKMapper()
method gets called in the end. So inside this method you can build
and return a MultiColumnFIDMapper with the relevant PKs set.
This is what I did in my own SISPostgisDataStore. So you don't need
to explicitely pass the FIDMapper to the createSchema() method,
because it'll get it from the FIDMapperFactory, but it's all very
involved...

If you're asking yourself how can the SISPostgisFIDMapperFactory
know which are the PKs attributes, it's because it can ask that
to our MetaEngine. That is, the SISPostgisDataStore "knows" the
MetaEngine and it can use it wherever it needs it.
Anyway I'll have to think about all this matter very well!!!

> 
> Note this is a situation where your meta classes are better then 
> FeatureType.
> In JDBC it is the difference between create schema and 
> resultSetMetaData.
In fact we created the MetaEngine to supplement FeatureType with all
the information we needed but were missing. Is simply something to which
you can ask info by typename.

> Jody
                        Bye             Paolo




AVVERTENZE AI SENSI DEL D. LGS. 196/2003  
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i
file/s allegato/i, sono da considerarsi strettamente riservate. Il loro
utilizzo è consentito esclusivamente al destinatario del messaggio, per le
finalità indicate nel messaggio stesso. Qualora riceveste questo messaggio
senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia
via e-mail e di procedere alla distruzione del messaggio stesso,
cancellandolo dal Vostro sistema; costituisce comportamento contrario ai
principi dettati dal D. Lgs. 196/2003 il trattenere il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse.


-------------------------------------------------------
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