Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] databinding + eclipselink

I think we understand each other.

Example: You have an eclipse view, a text box is bound to an entity
that was obtained through a ReadAllQuery. The binding takes place
using the JFace Databinding library, which listens to POJO changes via
Property Listeners on your getters/setters.

So you refresh that entity -- it still has the same Memory Address as
long as it was obtained with the same EM -- the databinding library
knows about this change and updates the text box.

Are we talking about two different things?

./tch



On Mon, Feb 16, 2009 at 4:10 AM, Thomas Paradies
<thomas.paradies@xxxxxxxxx> wrote:
> Tim,
>
> may be I'm not clear enough or missing something:
>
> the refreshing of my objects from database will be done by a job at 1 minute intervals by executing a ReadAllQuery at my session (read-only, no cache checking). The resuling complex object graph is changing over the time - both in the size and the status. Due to these changes involving some but not all objects my UI elements should be notified and updated if the have focus at changed objects.
>
> To my mind the EclipseLink the change tracking could offer a starting point but it isn't obvious to me if and how it would act with read-only queries.
>
> Thomas
>
>
>
> ----- Original Message ----
> From: Tim Hollosy <hollosyt@xxxxxxxxx>
> To: EclipseLink User Discussions <eclipselink-users@xxxxxxxxxxx>
> Sent: Sunday, February 15, 2009 12:51:44 AM
> Subject: Re: [eclipselink-users] databinding + eclipselink
>
> Hi,
> Thomas you can absolutely use databinding with EclipseLink!
>
> I've used EclipseLink with JFace Databinding in an RCP application
> quite successfully.
>
> It works great with Tables and with regular fields -- you do have to
> implement Property Field Listeners on your entities to be compatible
> with JFace Databinding, but that's easy enough to do.
>
> Take a look at our RCP Example at my blog:
>
> http://www.weheartcode.com/2008/08/27/eclipselink-in-j2se-rcp-applications/
>
> It uses JFace databinding on tables and fields I believe.
>
> Let me know if you have any questions.
>
> Tim
>
>
>
> On Fri, Feb 13, 2009 at 9:18 AM, Thomas Paradies
> <thomas.paradies@xxxxxxxxx> wrote:
>> Hi,
>>
>> I'm building a monitoring application with the need for explicitly refresh a bunch of objects from a database at regular intervals. Is there a way to observe and propagate changes at/in the objects due to the refresh as eclipse databinding offers? Perhaps its possible to couple eclipselink and eclipse databinding seamlessly?
>>
>> Thomas
>>
>>
>>
>>
>>
>> _______________________________________________
>> eclipselink-users mailing list
>> eclipselink-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
>
>
>
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>


Back to the top