Home » Modeling » EMF » [CDO] How to remove a resource from the repository
|
Re: [CDO] How to remove a resource from the repository [message #420239 is a reply to message #420185] |
Tue, 24 June 2008 05:42 |
|
Hi André,
Comments below...
André Dietisheim schrieb:
> Hi Eike,
>
> I created several unit-test where I manipulate objects in a resource.
> I now try to cleanup after my test and I therefore try to remove the
> resource, but I couldn't find any method yet. Any hints?
We are doing most of the repository related tests either with hsqldb
that makes it easy to throw away the whole db or with Hibernate that has
an option to recreate the whole db.
That said, the resource management capabilities of CDO are still very
limited. In fact they are currently limited to the functionality that
EMF requires: create new resources and load well-known resources. If you
file an enhancement request for the ability to delete resources you can
track the progress.
>
> Cheers
> André
>
> ps.
> I noticed strange NIO errors when trying to reuse a
> sessionConfiguration (I use TCPConnector). I ended in creating a new
> sessionConfiguration each time I want to open a new session. That's
> none of a problem, I'm just guessing if I'm right. Am I?
You're right, a CDOSessionConfiguration can only create a single
CDOSession instance. Subsequent calls to openSession() will return the
same instance. You need to create a new configuration to open a new session.
Btw. the way to open session will change fundamentally at the very
beginning of the 2.0.0 stream due to https://bugs.eclipse.org/235042 .
And yes, this is an issue of insufficient documentation ;-( Now, that
Simon is working on many of the new features, I hope that I'll have the
necessary time to complete the docs soon.
Cheers
/Eike
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] How to remove a resource from the repository [message #420264 is a reply to message #420239] |
Tue, 24 June 2008 16:43 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Eike,
In 2.4 we added support for delete to Resource and URIConverter...
Eike Stepper wrote:
> Hi André,
>
> Comments below...
>
>
>
> André Dietisheim schrieb:
>> Hi Eike,
>>
>> I created several unit-test where I manipulate objects in a resource.
>> I now try to cleanup after my test and I therefore try to remove the
>> resource, but I couldn't find any method yet. Any hints?
> We are doing most of the repository related tests either with hsqldb
> that makes it easy to throw away the whole db or with Hibernate that
> has an option to recreate the whole db.
>
> That said, the resource management capabilities of CDO are still very
> limited. In fact they are currently limited to the functionality that
> EMF requires: create new resources and load well-known resources. If
> you file an enhancement request for the ability to delete resources
> you can track the progress.
>
>>
>> Cheers
>> André
>>
>> ps.
>> I noticed strange NIO errors when trying to reuse a
>> sessionConfiguration (I use TCPConnector). I ended in creating a new
>> sessionConfiguration each time I want to open a new session. That's
>> none of a problem, I'm just guessing if I'm right. Am I?
> You're right, a CDOSessionConfiguration can only create a single
> CDOSession instance. Subsequent calls to openSession() will return the
> same instance. You need to create a new configuration to open a new
> session.
>
> Btw. the way to open session will change fundamentally at the very
> beginning of the 2.0.0 stream due to https://bugs.eclipse.org/235042 .
>
> And yes, this is an issue of insufficient documentation ;-( Now, that
> Simon is working on many of the new features, I hope that I'll have
> the necessary time to complete the docs soon.
>
> Cheers
> /Eike
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: [CDO] How to remove a resource from the repository [message #420269 is a reply to message #420264] |
Tue, 24 June 2008 17:02 |
|
Ed Merks schrieb:
> Eike,
>
> In 2.4 we added support for delete to Resource and URIConverter...
Good to know, but too late for CDO 1.0 ;-(
Maybe I can add deletion support in 1.0.1 via a static helper.
Btw. resource deletion was a feature of CDO pre 0.8.
IIrc. it was not a trivial story because of possible xrefs into the
resource to be deleted.
But with a Bugzilla, André, we can see how to get it again ;-)
Cheers
/Eike
>
>
> Eike Stepper wrote:
>> Hi André,
>>
>> Comments below...
>>
>>
>>
>> André Dietisheim schrieb:
>>> Hi Eike,
>>>
>>> I created several unit-test where I manipulate objects in a
>>> resource. I now try to cleanup after my test and I therefore try to
>>> remove the resource, but I couldn't find any method yet. Any hints?
>> We are doing most of the repository related tests either with hsqldb
>> that makes it easy to throw away the whole db or with Hibernate that
>> has an option to recreate the whole db.
>>
>> That said, the resource management capabilities of CDO are still very
>> limited. In fact they are currently limited to the functionality that
>> EMF requires: create new resources and load well-known resources. If
>> you file an enhancement request for the ability to delete resources
>> you can track the progress.
>>
>>>
>>> Cheers
>>> André
>>>
>>> ps.
>>> I noticed strange NIO errors when trying to reuse a
>>> sessionConfiguration (I use TCPConnector). I ended in creating a new
>>> sessionConfiguration each time I want to open a new session. That's
>>> none of a problem, I'm just guessing if I'm right. Am I?
>> You're right, a CDOSessionConfiguration can only create a single
>> CDOSession instance. Subsequent calls to openSession() will return
>> the same instance. You need to create a new configuration to open a
>> new session.
>>
>> Btw. the way to open session will change fundamentally at the very
>> beginning of the 2.0.0 stream due to https://bugs.eclipse.org/235042 .
>>
>> And yes, this is an issue of insufficient documentation ;-( Now, that
>> Simon is working on many of the new features, I hope that I'll have
>> the necessary time to complete the docs soon.
>>
>> Cheers
>> /Eike
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] How to remove a resource from the repository [message #420272 is a reply to message #420269] |
Tue, 24 June 2008 17:22 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Eike,
You're not supposed to change APIs in maintenance stream. I'd leave
this for CDO 1.1. There's nothing stopping you from having additional
releases (assume you do the proper reviews and all). An API addition
does imply you've created a 1.1 not a 1.0.1...
Eike Stepper wrote:
> Ed Merks schrieb:
>> Eike,
>>
>> In 2.4 we added support for delete to Resource and URIConverter...
> Good to know, but too late for CDO 1.0 ;-(
> Maybe I can add deletion support in 1.0.1 via a static helper.
>
> Btw. resource deletion was a feature of CDO pre 0.8.
> IIrc. it was not a trivial story because of possible xrefs into the
> resource to be deleted.
> But with a Bugzilla, André, we can see how to get it again ;-)
>
> Cheers
> /Eike
>
>
>
>>
>>
>> Eike Stepper wrote:
>>> Hi André,
>>>
>>> Comments below...
>>>
>>>
>>>
>>> André Dietisheim schrieb:
>>>> Hi Eike,
>>>>
>>>> I created several unit-test where I manipulate objects in a
>>>> resource. I now try to cleanup after my test and I therefore try to
>>>> remove the resource, but I couldn't find any method yet. Any hints?
>>> We are doing most of the repository related tests either with hsqldb
>>> that makes it easy to throw away the whole db or with Hibernate that
>>> has an option to recreate the whole db.
>>>
>>> That said, the resource management capabilities of CDO are still
>>> very limited. In fact they are currently limited to the
>>> functionality that EMF requires: create new resources and load
>>> well-known resources. If you file an enhancement request for the
>>> ability to delete resources you can track the progress.
>>>
>>>>
>>>> Cheers
>>>> André
>>>>
>>>> ps.
>>>> I noticed strange NIO errors when trying to reuse a
>>>> sessionConfiguration (I use TCPConnector). I ended in creating a
>>>> new sessionConfiguration each time I want to open a new session.
>>>> That's none of a problem, I'm just guessing if I'm right. Am I?
>>> You're right, a CDOSessionConfiguration can only create a single
>>> CDOSession instance. Subsequent calls to openSession() will return
>>> the same instance. You need to create a new configuration to open a
>>> new session.
>>>
>>> Btw. the way to open session will change fundamentally at the very
>>> beginning of the 2.0.0 stream due to https://bugs.eclipse.org/235042 .
>>>
>>> And yes, this is an issue of insufficient documentation ;-( Now,
>>> that Simon is working on many of the new features, I hope that I'll
>>> have the necessary time to complete the docs soon.
>>>
>>> Cheers
>>> /Eike
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: [CDO] How to remove a resource from the repository [message #420273 is a reply to message #420272] |
Tue, 24 June 2008 17:29 |
|
Ed Merks schrieb:
> Eike,
>
> You're not supposed to change APIs in maintenance stream. I'd leave
> this for CDO 1.1. There's nothing stopping you from having additional
> releases (assume you do the proper reviews and all). An API addition
> does imply you've created a 1.1 not a 1.0.1...
Is it considered an API change if I add a new final utility class with a
static method to delete resources?
>
>
> Eike Stepper wrote:
>> Ed Merks schrieb:
>>> Eike,
>>>
>>> In 2.4 we added support for delete to Resource and URIConverter...
>> Good to know, but too late for CDO 1.0 ;-(
>> Maybe I can add deletion support in 1.0.1 via a static helper.
>>
>> Btw. resource deletion was a feature of CDO pre 0.8.
>> IIrc. it was not a trivial story because of possible xrefs into the
>> resource to be deleted.
>> But with a Bugzilla, André, we can see how to get it again ;-)
>>
>> Cheers
>> /Eike
>>
>>
>>
>>>
>>>
>>> Eike Stepper wrote:
>>>> Hi André,
>>>>
>>>> Comments below...
>>>>
>>>>
>>>>
>>>> André Dietisheim schrieb:
>>>>> Hi Eike,
>>>>>
>>>>> I created several unit-test where I manipulate objects in a
>>>>> resource. I now try to cleanup after my test and I therefore try
>>>>> to remove the resource, but I couldn't find any method yet. Any
>>>>> hints?
>>>> We are doing most of the repository related tests either with
>>>> hsqldb that makes it easy to throw away the whole db or with
>>>> Hibernate that has an option to recreate the whole db.
>>>>
>>>> That said, the resource management capabilities of CDO are still
>>>> very limited. In fact they are currently limited to the
>>>> functionality that EMF requires: create new resources and load
>>>> well-known resources. If you file an enhancement request for the
>>>> ability to delete resources you can track the progress.
>>>>
>>>>>
>>>>> Cheers
>>>>> André
>>>>>
>>>>> ps.
>>>>> I noticed strange NIO errors when trying to reuse a
>>>>> sessionConfiguration (I use TCPConnector). I ended in creating a
>>>>> new sessionConfiguration each time I want to open a new session.
>>>>> That's none of a problem, I'm just guessing if I'm right. Am I?
>>>> You're right, a CDOSessionConfiguration can only create a single
>>>> CDOSession instance. Subsequent calls to openSession() will return
>>>> the same instance. You need to create a new configuration to open a
>>>> new session.
>>>>
>>>> Btw. the way to open session will change fundamentally at the very
>>>> beginning of the 2.0.0 stream due to https://bugs.eclipse.org/235042 .
>>>>
>>>> And yes, this is an issue of insufficient documentation ;-( Now,
>>>> that Simon is working on many of the new features, I hope that I'll
>>>> have the necessary time to complete the docs soon.
>>>>
>>>> Cheers
>>>> /Eike
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] How to remove a resource from the repository [message #420276 is a reply to message #420273] |
Tue, 24 June 2008 18:09 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Yes its a new class :-) so you have more API.
The assumption in maintence is that I can develop against your 1.0.1
release compile, release and to anybody which 1.0.x of your bundle
installed.
Now that you have matured to a 1.0 release I'd also advice you to take a
look at (if you have not already):
- http://wiki.eclipse.org/Evolving_Java-based_APIs
- http://wiki.eclipse.org/Evolving_Java-based_APIs_2
Do you use the API Tooling to ensure not to break compatility it would
immediately warn you about such mistakes there are so many cases you
miss believe my I know it from JFace?
Tom
Eike Stepper schrieb:
> Ed Merks schrieb:
>> Eike,
>>
>> You're not supposed to change APIs in maintenance stream. I'd leave
>> this for CDO 1.1. There's nothing stopping you from having additional
>> releases (assume you do the proper reviews and all). An API addition
>> does imply you've created a 1.1 not a 1.0.1...
> Is it considered an API change if I add a new final utility class with a
> static method to delete resources?
>
>>
>>
>> Eike Stepper wrote:
>>> Ed Merks schrieb:
>>>> Eike,
>>>>
>>>> In 2.4 we added support for delete to Resource and URIConverter...
>>> Good to know, but too late for CDO 1.0 ;-(
>>> Maybe I can add deletion support in 1.0.1 via a static helper.
>>>
>>> Btw. resource deletion was a feature of CDO pre 0.8.
>>> IIrc. it was not a trivial story because of possible xrefs into the
>>> resource to be deleted.
>>> But with a Bugzilla, André, we can see how to get it again ;-)
>>>
>>> Cheers
>>> /Eike
>>>
>>>
>>>
>>>>
>>>>
>>>> Eike Stepper wrote:
>>>>> Hi André,
>>>>>
>>>>> Comments below...
>>>>>
>>>>>
>>>>>
>>>>> André Dietisheim schrieb:
>>>>>> Hi Eike,
>>>>>>
>>>>>> I created several unit-test where I manipulate objects in a
>>>>>> resource. I now try to cleanup after my test and I therefore try
>>>>>> to remove the resource, but I couldn't find any method yet. Any
>>>>>> hints?
>>>>> We are doing most of the repository related tests either with
>>>>> hsqldb that makes it easy to throw away the whole db or with
>>>>> Hibernate that has an option to recreate the whole db.
>>>>>
>>>>> That said, the resource management capabilities of CDO are still
>>>>> very limited. In fact they are currently limited to the
>>>>> functionality that EMF requires: create new resources and load
>>>>> well-known resources. If you file an enhancement request for the
>>>>> ability to delete resources you can track the progress.
>>>>>
>>>>>>
>>>>>> Cheers
>>>>>> André
>>>>>>
>>>>>> ps.
>>>>>> I noticed strange NIO errors when trying to reuse a
>>>>>> sessionConfiguration (I use TCPConnector). I ended in creating a
>>>>>> new sessionConfiguration each time I want to open a new session.
>>>>>> That's none of a problem, I'm just guessing if I'm right. Am I?
>>>>> You're right, a CDOSessionConfiguration can only create a single
>>>>> CDOSession instance. Subsequent calls to openSession() will return
>>>>> the same instance. You need to create a new configuration to open a
>>>>> new session.
>>>>>
>>>>> Btw. the way to open session will change fundamentally at the very
>>>>> beginning of the 2.0.0 stream due to https://bugs.eclipse.org/235042 .
>>>>>
>>>>> And yes, this is an issue of insufficient documentation ;-( Now,
>>>>> that Simon is working on many of the new features, I hope that I'll
>>>>> have the necessary time to complete the docs soon.
>>>>>
>>>>> Cheers
>>>>> /Eike
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Re: [CDO] How to remove a resource from the repository [message #420277 is a reply to message #420276] |
Tue, 24 June 2008 18:16 |
|
Hi Tom,
Yes, after initial struggling with the API Tooling I just able today to
set it up for the new HEAD workspace ;-)
Did you know that API usage checking is not performed if no baseline is set?
Cheers
/Eike
Tom Schindl schrieb:
> Yes its a new class :-) so you have more API.
>
> The assumption in maintence is that I can develop against your 1.0.1
> release compile, release and to anybody which 1.0.x of your bundle
> installed.
>
> Now that you have matured to a 1.0 release I'd also advice you to take
> a look at (if you have not already):
> - http://wiki.eclipse.org/Evolving_Java-based_APIs
> - http://wiki.eclipse.org/Evolving_Java-based_APIs_2
>
> Do you use the API Tooling to ensure not to break compatility it would
> immediately warn you about such mistakes there are so many cases you
> miss believe my I know it from JFace?
>
> Tom
>
> Eike Stepper schrieb:
>> Ed Merks schrieb:
>>> Eike,
>>>
>>> You're not supposed to change APIs in maintenance stream. I'd leave
>>> this for CDO 1.1. There's nothing stopping you from having
>>> additional releases (assume you do the proper reviews and all). An
>>> API addition does imply you've created a 1.1 not a 1.0.1...
>> Is it considered an API change if I add a new final utility class
>> with a static method to delete resources?
>>
>>>
>>>
>>> Eike Stepper wrote:
>>>> Ed Merks schrieb:
>>>>> Eike,
>>>>>
>>>>> In 2.4 we added support for delete to Resource and URIConverter...
>>>> Good to know, but too late for CDO 1.0 ;-(
>>>> Maybe I can add deletion support in 1.0.1 via a static helper.
>>>>
>>>> Btw. resource deletion was a feature of CDO pre 0.8.
>>>> IIrc. it was not a trivial story because of possible xrefs into the
>>>> resource to be deleted.
>>>> But with a Bugzilla, André, we can see how to get it again ;-)
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>>
>>>>
>>>>>
>>>>>
>>>>> Eike Stepper wrote:
>>>>>> Hi André,
>>>>>>
>>>>>> Comments below...
>>>>>>
>>>>>>
>>>>>>
>>>>>> André Dietisheim schrieb:
>>>>>>> Hi Eike,
>>>>>>>
>>>>>>> I created several unit-test where I manipulate objects in a
>>>>>>> resource. I now try to cleanup after my test and I therefore try
>>>>>>> to remove the resource, but I couldn't find any method yet. Any
>>>>>>> hints?
>>>>>> We are doing most of the repository related tests either with
>>>>>> hsqldb that makes it easy to throw away the whole db or with
>>>>>> Hibernate that has an option to recreate the whole db.
>>>>>>
>>>>>> That said, the resource management capabilities of CDO are still
>>>>>> very limited. In fact they are currently limited to the
>>>>>> functionality that EMF requires: create new resources and load
>>>>>> well-known resources. If you file an enhancement request for the
>>>>>> ability to delete resources you can track the progress.
>>>>>>
>>>>>>>
>>>>>>> Cheers
>>>>>>> André
>>>>>>>
>>>>>>> ps.
>>>>>>> I noticed strange NIO errors when trying to reuse a
>>>>>>> sessionConfiguration (I use TCPConnector). I ended in creating a
>>>>>>> new sessionConfiguration each time I want to open a new session.
>>>>>>> That's none of a problem, I'm just guessing if I'm right. Am I?
>>>>>> You're right, a CDOSessionConfiguration can only create a single
>>>>>> CDOSession instance. Subsequent calls to openSession() will
>>>>>> return the same instance. You need to create a new configuration
>>>>>> to open a new session.
>>>>>>
>>>>>> Btw. the way to open session will change fundamentally at the
>>>>>> very beginning of the 2.0.0 stream due to
>>>>>> https://bugs.eclipse.org/235042 .
>>>>>>
>>>>>> And yes, this is an issue of insufficient documentation ;-( Now,
>>>>>> that Simon is working on many of the new features, I hope that
>>>>>> I'll have the necessary time to complete the docs soon.
>>>>>>
>>>>>> Cheers
>>>>>> /Eike
>
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] How to remove a resource from the repository [message #420279 is a reply to message #420277] |
Tue, 24 June 2008 18:34 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
well i assumed it what should it check against if there's no base-line
:-). Maybe the warning if you don't have a base-line for the project
could be more informative.
Tom
Eike Stepper schrieb:
> Hi Tom,
>
> Yes, after initial struggling with the API Tooling I just able today to
> set it up for the new HEAD workspace ;-)
> Did you know that API usage checking is not performed if no baseline is
> set?
>
> Cheers
> /Eike
>
>
> Tom Schindl schrieb:
>> Yes its a new class :-) so you have more API.
>>
>> The assumption in maintence is that I can develop against your 1.0.1
>> release compile, release and to anybody which 1.0.x of your bundle
>> installed.
>>
>> Now that you have matured to a 1.0 release I'd also advice you to take
>> a look at (if you have not already):
>> - http://wiki.eclipse.org/Evolving_Java-based_APIs
>> - http://wiki.eclipse.org/Evolving_Java-based_APIs_2
>>
>> Do you use the API Tooling to ensure not to break compatility it would
>> immediately warn you about such mistakes there are so many cases you
>> miss believe my I know it from JFace?
>>
>> Tom
>>
>> Eike Stepper schrieb:
>>> Ed Merks schrieb:
>>>> Eike,
>>>>
>>>> You're not supposed to change APIs in maintenance stream. I'd leave
>>>> this for CDO 1.1. There's nothing stopping you from having
>>>> additional releases (assume you do the proper reviews and all). An
>>>> API addition does imply you've created a 1.1 not a 1.0.1...
>>> Is it considered an API change if I add a new final utility class
>>> with a static method to delete resources?
>>>
>>>>
>>>>
>>>> Eike Stepper wrote:
>>>>> Ed Merks schrieb:
>>>>>> Eike,
>>>>>>
>>>>>> In 2.4 we added support for delete to Resource and URIConverter...
>>>>> Good to know, but too late for CDO 1.0 ;-(
>>>>> Maybe I can add deletion support in 1.0.1 via a static helper.
>>>>>
>>>>> Btw. resource deletion was a feature of CDO pre 0.8.
>>>>> IIrc. it was not a trivial story because of possible xrefs into the
>>>>> resource to be deleted.
>>>>> But with a Bugzilla, André, we can see how to get it again ;-)
>>>>>
>>>>> Cheers
>>>>> /Eike
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>> Eike Stepper wrote:
>>>>>>> Hi André,
>>>>>>>
>>>>>>> Comments below...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> André Dietisheim schrieb:
>>>>>>>> Hi Eike,
>>>>>>>>
>>>>>>>> I created several unit-test where I manipulate objects in a
>>>>>>>> resource. I now try to cleanup after my test and I therefore try
>>>>>>>> to remove the resource, but I couldn't find any method yet. Any
>>>>>>>> hints?
>>>>>>> We are doing most of the repository related tests either with
>>>>>>> hsqldb that makes it easy to throw away the whole db or with
>>>>>>> Hibernate that has an option to recreate the whole db.
>>>>>>>
>>>>>>> That said, the resource management capabilities of CDO are still
>>>>>>> very limited. In fact they are currently limited to the
>>>>>>> functionality that EMF requires: create new resources and load
>>>>>>> well-known resources. If you file an enhancement request for the
>>>>>>> ability to delete resources you can track the progress.
>>>>>>>
>>>>>>>>
>>>>>>>> Cheers
>>>>>>>> André
>>>>>>>>
>>>>>>>> ps.
>>>>>>>> I noticed strange NIO errors when trying to reuse a
>>>>>>>> sessionConfiguration (I use TCPConnector). I ended in creating a
>>>>>>>> new sessionConfiguration each time I want to open a new session.
>>>>>>>> That's none of a problem, I'm just guessing if I'm right. Am I?
>>>>>>> You're right, a CDOSessionConfiguration can only create a single
>>>>>>> CDOSession instance. Subsequent calls to openSession() will
>>>>>>> return the same instance. You need to create a new configuration
>>>>>>> to open a new session.
>>>>>>>
>>>>>>> Btw. the way to open session will change fundamentally at the
>>>>>>> very beginning of the 2.0.0 stream due to
>>>>>>> https://bugs.eclipse.org/235042 .
>>>>>>>
>>>>>>> And yes, this is an issue of insufficient documentation ;-( Now,
>>>>>>> that Simon is working on many of the new features, I hope that
>>>>>>> I'll have the necessary time to complete the docs soon.
>>>>>>>
>>>>>>> Cheers
>>>>>>> /Eike
>>
>>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Re: [CDO] How to remove a resource from the repository [message #420280 is a reply to message #420279] |
Tue, 24 June 2008 18:45 |
|
no, I mean the API *usage*, which should be baseline agnositic Imho.
If I declare an interface @noimplement and I implement it nevertheless,
it should show a problem, with baseline or without.
Cheers
/Eike
Tom Schindl schrieb:
> well i assumed it what should it check against if there's no base-line
> :-). Maybe the warning if you don't have a base-line for the project
> could be more informative.
>
> Tom
>
> Eike Stepper schrieb:
>> Hi Tom,
>>
>> Yes, after initial struggling with the API Tooling I just able today
>> to set it up for the new HEAD workspace ;-)
>> Did you know that API usage checking is not performed if no baseline
>> is set?
>>
>> Cheers
>> /Eike
>>
>>
>> Tom Schindl schrieb:
>>> Yes its a new class :-) so you have more API.
>>>
>>> The assumption in maintence is that I can develop against your 1.0.1
>>> release compile, release and to anybody which 1.0.x of your bundle
>>> installed.
>>>
>>> Now that you have matured to a 1.0 release I'd also advice you to
>>> take a look at (if you have not already):
>>> - http://wiki.eclipse.org/Evolving_Java-based_APIs
>>> - http://wiki.eclipse.org/Evolving_Java-based_APIs_2
>>>
>>> Do you use the API Tooling to ensure not to break compatility it
>>> would immediately warn you about such mistakes there are so many
>>> cases you miss believe my I know it from JFace?
>>>
>>> Tom
>>>
>>> Eike Stepper schrieb:
>>>> Ed Merks schrieb:
>>>>> Eike,
>>>>>
>>>>> You're not supposed to change APIs in maintenance stream. I'd
>>>>> leave this for CDO 1.1. There's nothing stopping you from having
>>>>> additional releases (assume you do the proper reviews and all).
>>>>> An API addition does imply you've created a 1.1 not a 1.0.1...
>>>> Is it considered an API change if I add a new final utility class
>>>> with a static method to delete resources?
>>>>
>>>>>
>>>>>
>>>>> Eike Stepper wrote:
>>>>>> Ed Merks schrieb:
>>>>>>> Eike,
>>>>>>>
>>>>>>> In 2.4 we added support for delete to Resource and URIConverter...
>>>>>> Good to know, but too late for CDO 1.0 ;-(
>>>>>> Maybe I can add deletion support in 1.0.1 via a static helper.
>>>>>>
>>>>>> Btw. resource deletion was a feature of CDO pre 0.8.
>>>>>> IIrc. it was not a trivial story because of possible xrefs into
>>>>>> the resource to be deleted.
>>>>>> But with a Bugzilla, André, we can see how to get it again ;-)
>>>>>>
>>>>>> Cheers
>>>>>> /Eike
>>>>>>
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Eike Stepper wrote:
>>>>>>>> Hi André,
>>>>>>>>
>>>>>>>> Comments below...
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> André Dietisheim schrieb:
>>>>>>>>> Hi Eike,
>>>>>>>>>
>>>>>>>>> I created several unit-test where I manipulate objects in a
>>>>>>>>> resource. I now try to cleanup after my test and I therefore
>>>>>>>>> try to remove the resource, but I couldn't find any method
>>>>>>>>> yet. Any hints?
>>>>>>>> We are doing most of the repository related tests either with
>>>>>>>> hsqldb that makes it easy to throw away the whole db or with
>>>>>>>> Hibernate that has an option to recreate the whole db.
>>>>>>>>
>>>>>>>> That said, the resource management capabilities of CDO are
>>>>>>>> still very limited. In fact they are currently limited to the
>>>>>>>> functionality that EMF requires: create new resources and load
>>>>>>>> well-known resources. If you file an enhancement request for
>>>>>>>> the ability to delete resources you can track the progress.
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Cheers
>>>>>>>>> André
>>>>>>>>>
>>>>>>>>> ps.
>>>>>>>>> I noticed strange NIO errors when trying to reuse a
>>>>>>>>> sessionConfiguration (I use TCPConnector). I ended in creating
>>>>>>>>> a new sessionConfiguration each time I want to open a new
>>>>>>>>> session. That's none of a problem, I'm just guessing if I'm
>>>>>>>>> right. Am I?
>>>>>>>> You're right, a CDOSessionConfiguration can only create a
>>>>>>>> single CDOSession instance. Subsequent calls to openSession()
>>>>>>>> will return the same instance. You need to create a new
>>>>>>>> configuration to open a new session.
>>>>>>>>
>>>>>>>> Btw. the way to open session will change fundamentally at the
>>>>>>>> very beginning of the 2.0.0 stream due to
>>>>>>>> https://bugs.eclipse.org/235042 .
>>>>>>>>
>>>>>>>> And yes, this is an issue of insufficient documentation ;-(
>>>>>>>> Now, that Simon is working on many of the new features, I hope
>>>>>>>> that I'll have the necessary time to complete the docs soon.
>>>>>>>>
>>>>>>>> Cheers
>>>>>>>> /Eike
>>>
>>>
>
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] How to remove a resource from the repository [message #420281 is a reply to message #420280] |
Tue, 24 June 2008 18:56 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
A that one, now I understand. You must enable this in PDE! Does that not
work for you?
Tom
Eike Stepper schrieb:
> no, I mean the API *usage*, which should be baseline agnositic Imho.
> If I declare an interface @noimplement and I implement it nevertheless,
> it should show a problem, with baseline or without.
>
> Cheers
> /Eike
>
>
> Tom Schindl schrieb:
>> well i assumed it what should it check against if there's no base-line
>> :-). Maybe the warning if you don't have a base-line for the project
>> could be more informative.
>>
>> Tom
>>
>> Eike Stepper schrieb:
>>> Hi Tom,
>>>
>>> Yes, after initial struggling with the API Tooling I just able today
>>> to set it up for the new HEAD workspace ;-)
>>> Did you know that API usage checking is not performed if no baseline
>>> is set?
>>>
>>> Cheers
>>> /Eike
>>>
>>>
>>> Tom Schindl schrieb:
>>>> Yes its a new class :-) so you have more API.
>>>>
>>>> The assumption in maintence is that I can develop against your 1.0.1
>>>> release compile, release and to anybody which 1.0.x of your bundle
>>>> installed.
>>>>
>>>> Now that you have matured to a 1.0 release I'd also advice you to
>>>> take a look at (if you have not already):
>>>> - http://wiki.eclipse.org/Evolving_Java-based_APIs
>>>> - http://wiki.eclipse.org/Evolving_Java-based_APIs_2
>>>>
>>>> Do you use the API Tooling to ensure not to break compatility it
>>>> would immediately warn you about such mistakes there are so many
>>>> cases you miss believe my I know it from JFace?
>>>>
>>>> Tom
>>>>
>>>> Eike Stepper schrieb:
>>>>> Ed Merks schrieb:
>>>>>> Eike,
>>>>>>
>>>>>> You're not supposed to change APIs in maintenance stream. I'd
>>>>>> leave this for CDO 1.1. There's nothing stopping you from having
>>>>>> additional releases (assume you do the proper reviews and all).
>>>>>> An API addition does imply you've created a 1.1 not a 1.0.1...
>>>>> Is it considered an API change if I add a new final utility class
>>>>> with a static method to delete resources?
>>>>>
>>>>>>
>>>>>>
>>>>>> Eike Stepper wrote:
>>>>>>> Ed Merks schrieb:
>>>>>>>> Eike,
>>>>>>>>
>>>>>>>> In 2.4 we added support for delete to Resource and URIConverter...
>>>>>>> Good to know, but too late for CDO 1.0 ;-(
>>>>>>> Maybe I can add deletion support in 1.0.1 via a static helper.
>>>>>>>
>>>>>>> Btw. resource deletion was a feature of CDO pre 0.8.
>>>>>>> IIrc. it was not a trivial story because of possible xrefs into
>>>>>>> the resource to be deleted.
>>>>>>> But with a Bugzilla, André, we can see how to get it again ;-)
>>>>>>>
>>>>>>> Cheers
>>>>>>> /Eike
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Eike Stepper wrote:
>>>>>>>>> Hi André,
>>>>>>>>>
>>>>>>>>> Comments below...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> André Dietisheim schrieb:
>>>>>>>>>> Hi Eike,
>>>>>>>>>>
>>>>>>>>>> I created several unit-test where I manipulate objects in a
>>>>>>>>>> resource. I now try to cleanup after my test and I therefore
>>>>>>>>>> try to remove the resource, but I couldn't find any method
>>>>>>>>>> yet. Any hints?
>>>>>>>>> We are doing most of the repository related tests either with
>>>>>>>>> hsqldb that makes it easy to throw away the whole db or with
>>>>>>>>> Hibernate that has an option to recreate the whole db.
>>>>>>>>>
>>>>>>>>> That said, the resource management capabilities of CDO are
>>>>>>>>> still very limited. In fact they are currently limited to the
>>>>>>>>> functionality that EMF requires: create new resources and load
>>>>>>>>> well-known resources. If you file an enhancement request for
>>>>>>>>> the ability to delete resources you can track the progress.
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Cheers
>>>>>>>>>> André
>>>>>>>>>>
>>>>>>>>>> ps.
>>>>>>>>>> I noticed strange NIO errors when trying to reuse a
>>>>>>>>>> sessionConfiguration (I use TCPConnector). I ended in creating
>>>>>>>>>> a new sessionConfiguration each time I want to open a new
>>>>>>>>>> session. That's none of a problem, I'm just guessing if I'm
>>>>>>>>>> right. Am I?
>>>>>>>>> You're right, a CDOSessionConfiguration can only create a
>>>>>>>>> single CDOSession instance. Subsequent calls to openSession()
>>>>>>>>> will return the same instance. You need to create a new
>>>>>>>>> configuration to open a new session.
>>>>>>>>>
>>>>>>>>> Btw. the way to open session will change fundamentally at the
>>>>>>>>> very beginning of the 2.0.0 stream due to
>>>>>>>>> https://bugs.eclipse.org/235042 .
>>>>>>>>>
>>>>>>>>> And yes, this is an issue of insufficient documentation ;-(
>>>>>>>>> Now, that Simon is working on many of the new features, I hope
>>>>>>>>> that I'll have the necessary time to complete the docs soon.
>>>>>>>>>
>>>>>>>>> Cheers
>>>>>>>>> /Eike
>>>>
>>>>
>>
>>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Re: [CDO] How to remove a resource from the repository [message #420290 is a reply to message #420281] |
Wed, 25 June 2008 03:33 |
|
This is a multi-part message in MIME format.
--------------040804040601080501040303
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Hi Tom,
As I said, this seems to be working only with an API baseline set.
I found this piece of code near the beginning of
BaseApiAnalyzer.analyzeComponent():
| *if*(baseline == *null*) {
//check default baseline
checkDefaultBaselineSet();
updateMonitor(localMonitor, 6);
*return*;
}|
Cheers
/Eike
Tom Schindl schrieb:
> A that one, now I understand. You must enable this in PDE! Does that
> not work for you?
>
> Tom
>
> Eike Stepper schrieb:
>> no, I mean the API *usage*, which should be baseline agnositic Imho.
>> If I declare an interface @noimplement and I implement it
>> nevertheless, it should show a problem, with baseline or without.
>>
>> Cheers
>> /Eike
>>
>>
>> Tom Schindl schrieb:
>>> well i assumed it what should it check against if there's no
>>> base-line :-). Maybe the warning if you don't have a base-line for
>>> the project could be more informative.
>>>
>>> Tom
>>>
>>> Eike Stepper schrieb:
>>>> Hi Tom,
>>>>
>>>> Yes, after initial struggling with the API Tooling I just able
>>>> today to set it up for the new HEAD workspace ;-)
>>>> Did you know that API usage checking is not performed if no
>>>> baseline is set?
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>>
>>>> Tom Schindl schrieb:
>>>>> Yes its a new class :-) so you have more API.
>>>>>
>>>>> The assumption in maintence is that I can develop against your
>>>>> 1.0.1 release compile, release and to anybody which 1.0.x of your
>>>>> bundle installed.
>>>>>
>>>>> Now that you have matured to a 1.0 release I'd also advice you to
>>>>> take a look at (if you have not already):
>>>>> - http://wiki.eclipse.org/Evolving_Java-based_APIs
>>>>> - http://wiki.eclipse.org/Evolving_Java-based_APIs_2
>>>>>
>>>>> Do you use the API Tooling to ensure not to break compatility it
>>>>> would immediately warn you about such mistakes there are so many
>>>>> cases you miss believe my I know it from JFace?
>>>>>
>>>>> Tom
>>>>>
>>>>> Eike Stepper schrieb:
>>>>>> Ed Merks schrieb:
>>>>>>> Eike,
>>>>>>>
>>>>>>> You're not supposed to change APIs in maintenance stream. I'd
>>>>>>> leave this for CDO 1.1. There's nothing stopping you from
>>>>>>> having additional releases (assume you do the proper reviews and
>>>>>>> all). An API addition does imply you've created a 1.1 not a
>>>>>>> 1.0.1...
>>>>>> Is it considered an API change if I add a new final utility class
>>>>>> with a static method to delete resources?
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Eike Stepper wrote:
>>>>>>>> Ed Merks schrieb:
>>>>>>>>> Eike,
>>>>>>>>>
>>>>>>>>> In 2.4 we added support for delete to Resource and
>>>>>>>>> URIConverter...
>>>>>>>> Good to know, but too late for CDO 1.0 ;-(
>>>>>>>> Maybe I can add deletion support in 1.0.1 via a static helper.
>>>>>>>>
>>>>>>>> Btw. resource deletion was a feature of CDO pre 0.8.
>>>>>>>> IIrc. it was not a trivial story because of possible xrefs into
>>>>>>>> the resource to be deleted.
>>>>>>>> But with a Bugzilla, Andr
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Goto Forum:
Current Time: Wed Apr 24 23:56:38 GMT 2024
Powered by FUDForum. Page generated in 0.03803 seconds
|