Hi Jody,

I found out what i am doing wrong. I was thinking that i need to refresh
somehow 
PostgisDataStore when i made changes in database, but now i see that it is
refreshed 
automatically.

Thank you.


Jody Garnett-2 wrote:
> 
> Hi:
> 
> I am a bit confused by your question; the PostGISDataStore does not
> "load" the contents in the database.
> 
> The FeatureWriter directly adds stuff to the database (assuming you
> commit) it should be visible right away. Every time you read from the
> database we contact it and ask for a result set which you step through
> one row at a time as you use the FeatureIterator :-)
> 
> The only thing I can think of is that PostGISDataStore does hold on to
> table headers and (there was talk of an outstanding bug not respecting
> table schema changing).
> 
> What application are you using to demonstrate the content of the database?
> - if visual a simple redraw should do it
> - if the table model (from tutorials) you will need send the query again
> 
> Jody
> 
> On Tue, Oct 27, 2009 at 7:18 PM, iceDice <[email protected]> wrote:
>>
>> Hello,
>>
>> I need to update PostgisDataStore when something is changed in database.
>> I have following issue:
>> I load data from database in PostgisDataStore at application start. After
>> that i
>> use FeatureWriter to change data in database. What i need to do is to
>> reload
>> (refresh) PostgisDataStore content to demonstrate current situation in
>> database?
>> How can i do that, is there any method on PostgisDataStore to refresh
>> (reload)
>> content from database?
>>
>> Hope someone can help me about this.
>>
>> Thanks.
>> --
>> View this message in context:
>> http://n2.nabble.com/RefreshPostgisDatastore-tp3897544p3897544.html
>> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Geotools-gt2-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/RefreshPostgisDatastore-tp3897544p3910403.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to