| View previous topic :: View next topic |
| Author |
Message |
listmember Guest
|
Posted: Sun Jul 24, 2005 8:08 pm Post subject: Requirements for Object Persistence |
|
|
I would like to know what extra is needed for Object
Persistence and why it hasn't been made part of Delphi?
Is it because experts have not agreed on how to do it,
or what?
|
|
| Back to top |
|
 |
Joanna Carter (TeamB) Guest
|
Posted: Sun Jul 24, 2005 8:22 pm Post subject: Re: Requirements for Object Persistence |
|
|
"listmember" <listmember (AT) letterboxes (DOT) org> a écrit dans le message de news:
[email]xn0e552j751ylr001 (AT) forums (DOT) borland.com[/email]...
| Quote: | I would like to know what extra is needed for Object
Persistence and why it hasn't been made part of Delphi?
Is it because experts have not agreed on how to do it,
or what?
|
Borland have now included Bold or ECO in their high-end versions, but these
are much more than persistence mechanisms.
However if you want to find out about some of us have built our own OPFs,
then wander over to the oodesign group and search for old messages, there
are plenty of good discussions on what you need to allow Delphi to support
an OPF.
Joanna
--
Joanna Carter (TeamB)
Consultant Software Engineer
TeamBUG support for UK-BUG
TeamMM support for ModelMaker
|
|
| Back to top |
|
 |
listmember Guest
|
Posted: Sun Jul 24, 2005 8:27 pm Post subject: Re: Requirements for Object Persistence |
|
|
Joanna Carter (TeamB) wrote:
| Quote: | "listmember" <listmember (AT) letterboxes (DOT) org> a icrit dans le message de
I would like to know what extra is needed for Object
Persistence and why it hasn't been made part of Delphi?
Is it because experts have not agreed on how to do it,
or what?
Borland have now included Bold or ECO in their high-end versions, but
these are much more than persistence mechanisms.
However if you want to find out about some of us have built our own
OPFs, then wander over to the oodesign group and search for old
messages, there are plenty of good discussions on what you need to
allow Delphi to support an OPF.
|
Hi Joanna,
I have seen a few attempts and all of them felt like workarounds,
bit like home-made dynamic arrays before Delphi supported them
natively.
So, my question is actually more about what is it that needs to be
added to *Delphi* itself to facilitate people's OPF attempts to
feel at home.
Cheers,
Adem
|
|
| Back to top |
|
 |
John Jacobson aka Captain Guest
|
Posted: Sun Jul 24, 2005 8:36 pm Post subject: Re: Requirements for Object Persistence |
|
|
listmember <listmember (AT) letterboxes (DOT) org> wrote in message
<xn0e552j751ylr001 (AT) forums (DOT) borland.com>
| Quote: | I would like to know what extra is needed for Object
Persistence and why it hasn't been made part of Delphi?
Is it because experts have not agreed on how to do it,
or what?
|
ECO.
--
Everything in this post is mere opinion.
It might be very well formed opinion based
on an uncanny grasp of the facts, but it
remains opinion nevertheless.
Here's where you'll find Absolute Truth:
http://blogs.slcdug.org/jjacobson/
Posted with Reader3000-BETA 0.9.4.1031
|
|
| Back to top |
|
 |
Bob Dawson Guest
|
Posted: Sun Jul 24, 2005 8:41 pm Post subject: Re: Requirements for Object Persistence |
|
|
"listmember" wrote
| Quote: |
I would like to know what extra is needed for Object
Persistence and why it hasn't been made part of Delphi?
Is it because experts have not agreed on how to do it,
or what?
|
In some ways you could say that an OPF is like a pattern: there are lots of
specific ways to build one, and each is going to have advantages and
disadvantages.
Bold and
|
|
| Back to top |
|
 |
Bob Dawson Guest
|
Posted: Sun Jul 24, 2005 8:48 pm Post subject: Re: Requirements for Object Persistence |
|
|
"listmember" wrote
| Quote: | my question is actually more about what is it that needs to be
added to *Delphi* itself to facilitate people's OPF attempts
to feel at home.
|
Not much. IMHO the three biggest design feature constraints in Delphi's OO
model from an OPF writer's point of view are
weaknesses in RTTI
lack of class vars and class constructors
differing lifetime semantics for interfaces and objects.
These are largely win32 issues. All are addressed in .NET, though some less
elegantly than others. And I believe some will be addressed in win32
eventually
bobD
|
|
| Back to top |
|
 |
listmember Guest
|
Posted: Sun Jul 24, 2005 8:58 pm Post subject: Re: Requirements for Object Persistence |
|
|
John Jacobson aka Captain Jake wrote:
| Quote: | listmember <listmember (AT) letterboxes (DOT) org> wrote in message
[email]xn0e552j751ylr001 (AT) forums (DOT) borland.com[/email]
I would like to know what extra is needed for Object
Persistence and why it hasn't been made part of Delphi?
Is it because experts have not agreed on how to do it,
or what?
ECO.
|
ECO is not an integral *part* of Delphi.
|
|
| Back to top |
|
 |
Atle Smelvær Guest
|
Posted: Sun Jul 24, 2005 9:10 pm Post subject: Re: Requirements for Object Persistence |
|
|
Why don't you just use OmniXML or some of the other free persistence tools
out there. Then just publish all properties you want to be saved and use
TOmniXMLReader and TOmniXMLWriter to write and save objects.
I did some adjustments on the OmniXML code so it could handle object
references also. So it is now very mutch like the "serializable" feature in
..NET
-Atle
|
|
| Back to top |
|
 |
Peter Morris [Droopy eyes Guest
|
Posted: Sun Jul 24, 2005 9:19 pm Post subject: Re: Requirements for Object Persistence |
|
|
| Quote: | So, my question is actually more about what is it that needs to be
added to *Delphi* itself to facilitate people's OPF attempts to
feel at home.
|
Nothing, it has already been added in the form of Bold and ECO.
|
|
| Back to top |
|
 |
Peter Morris [Droopy eyes Guest
|
Posted: Sun Jul 24, 2005 9:20 pm Post subject: Re: Requirements for Object Persistence |
|
|
| Quote: | ECO is not an integral *part* of Delphi.
|
It is if you buy Architect. Are you saying that the DB stuff that comes
with Enterprise is not an integral *part* of Delphi either?
--
Pete
====
ECO Modeler, Audio compression components, DIB graphics controls,
FastStrings
http://www.droopyeyes.com
Read or write articles on just about anything
http://www.HowToDoThings.com
My blog
http://blogs.slcdug.org/petermorris/
|
|
| Back to top |
|
 |
listmember Guest
|
Posted: Sun Jul 24, 2005 9:46 pm Post subject: Re: Requirements for Object Persistence |
|
|
Peter Morris [Droopy eyes software] wrote:
| Quote: | ECO is not an integral part of Delphi.
It is if you buy Architect. Are you saying that the DB stuff that
comes with Enterprise is not an integral part of Delphi either?
|
TDataset stuff is.
Anyway, what I was wondering whether it was something to do
with the RTL --that you can only serialize published properties.
And, whether we should have a property modifier such as 'serialize',
much like 'stored' etc.
|
|
| Back to top |
|
 |
listmember Guest
|
Posted: Sun Jul 24, 2005 9:51 pm Post subject: Re: Requirements for Object Persistence |
|
|
Atle Smelvfr wrote:
| Quote: | Why don't you just use OmniXML or some of the other free persistence
tools out there. Then just publish all properties you want to be
saved and use TOmniXMLReader and TOmniXMLWriter to write and save
objects.
|
This is the thing that makes it feel like a tacky add-on. Why can
I only serialize published properties --why not the others too?
Why do *I* have to write extra code to be able to do that; if only
we could have a property modifier such as 'serializable' that came
into action when you're serializing the class.
| Quote: | I did some adjustments on the OmniXML code so it could handle object
references also. So it is now very mutch like the "serializable"
feature in .NET
|
In the past I have had so much fun trying to cover all sorts of
classes with it, it was painful. It wasn't OmniXML's fault, though.
|
|
| Back to top |
|
 |
Henry Guest
|
Posted: Sun Jul 24, 2005 11:11 pm Post subject: Re: Requirements for Object Persistence |
|
|
listmember wrote:
| Quote: | I would like to know what extra is needed for Object
Persistence and why it hasn't been made part of Delphi?
Is it because experts have not agreed on how to do it,
or what?
|
See earlier thread "OOP in database programming"
|
|
| Back to top |
|
 |
Lauchlan M Guest
|
Posted: Sun Jul 24, 2005 11:18 pm Post subject: Re: Requirements for Object Persistence |
|
|
| Quote: | I would like to know what extra is needed for Object
Persistence and why it hasn't been made part of Delphi?
Is it because experts have not agreed on how to do it,
or what?
ECO.
|
For Win32.
Lauchlan M
|
|
| Back to top |
|
 |
Dave Nottage [TeamB] Guest
|
Posted: Mon Jul 25, 2005 12:19 am Post subject: Re: Requirements for Object Persistence |
|
|
listmember wrote:
| Quote: | ECO.
ECO is not an integral part of Delphi.
|
What exactly do you expect to be integrated, and in what manner?
--
Dave Nottage [TeamB]
|
|
| Back to top |
|
 |
|