Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] How to remove a resource from the repository
[CDO] How to remove a resource from the repository [message #420185] Fri, 20 June 2008 13:42 Go to next message
Andre Dietisheim is currently offline Andre DietisheimFriend
Messages: 131
Registered: July 2009
Senior Member
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?

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?

Cheers
André
Re: [CDO] How to remove a resource from the repository [message #420239 is a reply to message #420185] Tue, 24 June 2008 05:42 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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


Re: [CDO] How to remove a resource from the repository [message #420264 is a reply to message #420239] Tue, 24 June 2008 16:43 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
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 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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


Re: [CDO] How to remove a resource from the repository [message #420272 is a reply to message #420269] Tue, 24 June 2008 17:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
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 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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


Re: [CDO] How to remove a resource from the repository [message #420276 is a reply to message #420273] Tue, 24 June 2008 18:09 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
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 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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
>
>


Re: [CDO] How to remove a resource from the repository [message #420279 is a reply to message #420277] Tue, 24 June 2008 18:34 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
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 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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
>>>
>>>
>
>


Re: [CDO] How to remove a resource from the repository [message #420281 is a reply to message #420280] Tue, 24 June 2008 18:56 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
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 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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


Previous Topic:Why doesn't DocumentRoot get a prefix?
Next Topic:Re: [CDO/Hibernate] Multiple issues
Goto Forum:
  


Current Time: Wed Apr 24 23:56:38 GMT 2024

Powered by FUDForum. Page generated in 0.03803 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top