Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] A lock that is not automatically released by a commit
[CDO] A lock that is not automatically released by a commit [message #431248] Sun, 05 July 2009 19:38 Go to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Hi.

Is it possible to obtain a lock (in my case write lock) that is not automatically released by a commit?
I want to lock an object for a series of commits, and don't always wan't to lock it again after
every commit.
Is it possible? If not, do you think it would be a good feature for future versions, or does it
simply don't make any sense?

Regards,
Kai
Re: [CDO] A lock that is not automatically released by a commit [message #431249 is a reply to message #431248] Sun, 05 July 2009 20:59 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.
--------------020605030006010101050206
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Kai,

There's:

| transaction.options().setAutoReleaseLocksEnabled(*false*);|


Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Kai Schlamp schrieb:
> Hi.
>
> Is it possible to obtain a lock (in my case write lock) that is not
> automatically released by a commit?
> I want to lock an object for a series of commits, and don't always
> wan't to lock it again after every commit.
> Is it possible? If not, do you think it would be a good feature for
> future versions, or does it simply don't make any sense?
>
> Regards,
> Kai

--------------020605030006010101050206
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Kai,<br>
<br>
There's: <br>
<br>
<title></title>
<style type="text/css">
<!--code { font-family: Courier New, Courier; font-size: 10pt; margin: 0px; }-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ======================================================== -->
<!-- = Java Sourcecode to HTML automatically converted code = --><!-- = Java2Html Converter 5.0 [2006-02-26] by Markus Gebhard markus@jave.de = -->
<!-- = Further information: http://www.java2html.de = -->
<div class="java" align="left">
<table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="0">
<tbody>
<tr>
<!-- start source code --> <td align="left" nowrap="nowrap"
valign="top"> <code><font color="#ffffff">&nbsp;&nbsp;&nbsp;&nbsp;</font ><font
color="#000000">transaction.options</font><font color="#000000">()</font><font
color="#000000">.setAutoReleaseLocksEnabled</font><font color="#000000">(</font><font
color="#7f0055"><b>false</b></font><font color="#000000">)</font><font
color="#000000">;</font></code> </td>
<!-- end source code --> </tr>
</tbody>
</table>
</div>
<!-- = END of automatically generated HTML code = -->
<!-- ======================================================== --><br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
Kai Schlamp schrieb:
<blockquote cite="mid:h2qvgh$4co$1@build.eclipse.org" type="cite">Hi.
<br>
<br>
Is it possible to obtain a lock (in my case write lock) that is not
automatically released by a commit?
<br>
I want to lock an object for a series of commits, and don't always
wan't to lock it again after every commit.
<br>
Is it possible? If not, do you think it would be a good feature for
future versions, or does it simply don't make any sense?
<br>
<br>
Regards,
<br>
Kai
<br>
</blockquote>
</body>
</html>

--------------020605030006010101050206--


Previous Topic:EAttribute.getDefaultValue returns Integer(0) when upperbound=-1 and eDataType is integer
Next Topic:Handling XMI Documents Serialized from a Different Version of Your Model.
Goto Forum:
  


Current Time: Thu Apr 18 17:08:37 GMT 2024

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

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

Back to the top