What is the sense of lock(entity,LockModeType.READ/WRITE) ??

Hi,
I think, I hope, for some it is a simple question.
e.g:
Why using lock(someEntity, LockModeType.WRITE) on versioned someEntity since every such entity is insured by implementation to met requirements of LockModetype.WRITE ? ( as it is written in JPA spec) .
Thx for answers.
T
Message was edited by:
taras_staz

By default a secure dimension is providing just access (READ).
Button R/W is providing the option to use that dimension also to control write access of users.
For example:
You will have Category secure dimension with RW.
You can have an user able to see data from Actual and to write data into Actual (input data) but he wil have just read access for Budget. That's means he will be able to see Budget data but he will not be able to input(change) data into Budget.
I hope this will help to understand when you have to use R/W button.
(When you want users to see data but you don't want to have some users changing data).
Regards
Sorin Radulescu
Edited by: Sorin Radulescu on Nov 19, 2010 9:50 AM

Similar Messages

  • Using LockModeType.READ/WRITE

    What circumstances make it useful to lock individual entity instances using LockModeType.READ/WRITE? I figured that setting isolation levels would have been enough, but I guess there's a need for further locking?
    When you access an entity, isn't it locked automatically unless you're using optimistic locking? I'm pretty lost on this issue...
    Could somebody please describe when would you lock individual entities?
    Thanks.

    Hi this is my understanding although I am not an expert.
    When you have READ_COMMITTED mode it means T1 can read a value T2 can modify the same value and then commit. If T1 reads it again it will get a new value or if it commits it will overwrite the previous changes. (Non-repeatable read). You wouldn't get a dirty read although you would get non-repeatable read.
    If transaction T1 calls lock(entity, LockModeType.READ) on a versioned object, the entity manager must ensure that neither of the following phenomena can occur:
    With LockMode you get extra features.
    # P1 (Dirty read): Transaction T1 modifies a row. Another transaction T2 then reads that row and obtains the modified value, before T1 has committed or rolled back. Transaction T2 eventually commits successfully; it does not matter whether T1 commits or rolls back and whether it does so before or after T2 commits.
    P2 (Non-repeatable read): Transaction T1 reads a row. Another transaction T2 then modifies or deletes that row, before T1 has committed. Both transactions eventually commit successfully.

  • What is the use for lock object and how to use the lock objects

    Hi Guru's,
    I am new to ABAP .Can you please clarify the that what is the use of lock object and how to use the loct object .what is use of the Deque & Enque  function modules .

    hi ,
    below are some minfo about lock objects :
      Lock Objects
    These types of objects are used for locking the access to database records in table. This mechanism is used to enforce data integrity that is two users cannot update the same data at the same time. With lock objects you can lock table-field or whole table.
    In a system where many users can access the same data, it becomes necessary to control the access to the data. In R/3 system this access control is built-in on database tables. Developers can also lock objects over table records.
    To lock an object you need to call standard functions, which are automatically generated while defining the lock object in ABAP/4 dictionary. This locking system is independent of the locking mechanism used by the R/3 system. This mechanism also defines LUW i.e. Logical Unit of Work. Whenever an object is locked, either by in built locking mechanism or by function modules, it creates corresponding entry in global system table i.e. table is locked. The system automatically releases the lock at the end of transaction. The LUW starts when a lock entry is created in the system table and ends when the lock is released.
    Creating Lock Objects
    Lock object is an aggregated dictionary object and can be defined by using the following steps:
    o From initial data dictionary screen, enter the name for the object, Click Lock object radiobutton and then click on Create. The system displays a dialog box for Maintain Lock Objects screen
    o Enter short text as usual and the name for primary table.
    -Save
    -Select Tables option
    From this screen you can:
    Select secondary tables, if any, linked by foreign key relationship.
    Fields for the lock objects. This option allows you to select fields for objects (R/3 system allows locking up to record level). Lock object argument are not selected by user but are imposed by the system and includes all the primary keys for the table.
    1) Exclusive lock: The locked data can only be displayed or edited by a single user. A request for another exclusive lock or for a shared lock is rejected.
    2) Shared lock: More than one user can access the locked data at the same time in display mode. A request for another shared lock is accepted, even if it comes from another user. An exclusive lock is rejected.
    3) Exclusive but not cumulative: Exclusive locks can be requested several times from the same transaction and are processed successively. In contrast, exclusive but not cumulative locks can be called only once from the same transaction. All other lock requests are rejected.
    Also, last but not the least, locking the object is logical (locking with any enqueue ) .so, you have to use the lock object while trying to access from second program .
    reward if helpful ,
    Regards,
    Ranjita

  • What is the shortcut to lock audio tracks? (like in FCP)

    what is the shortcut to lock audio tracks? (like in FCP)

    Hi basvanteylingen,
    That feature is coming in the next update.
    Thanks,
    Kevin

  • What is the best security lock for a 17" mac book pro?

    Hello Folks! Happy holidays!
    Quick question:
    What is the best security lock for a 17" mac book pro?
    Any models or brands ?
    Cheers!

    Most computers refer to the locking attachment in some relationship to the name "Kensington", and that might be a useful clue.
    Following that, be sure to avoid counterfeit products. A well-known computer vendor (not Apple), was approached by a large purchaser (several tens of thousands of laptops) who insisted on using a counterfeit locking product that had a larger than normal locking tab. The vendor modified the tooling to accept the counterfeit product and, wouldn't you know it, the genuine product would no longer secure the computer properly.

  • What is the best security lock for the new 21 inch imac?

    I want to know what is the best security lock for the new 21 inch imac?

    Most computers refer to the locking attachment in some relationship to the name "Kensington", and that might be a useful clue.
    Following that, be sure to avoid counterfeit products. A well-known computer vendor (not Apple), was approached by a large purchaser (several tens of thousands of laptops) who insisted on using a counterfeit locking product that had a larger than normal locking tab. The vendor modified the tooling to accept the counterfeit product and, wouldn't you know it, the genuine product would no longer secure the computer properly.

  • What is the difference between lock mode E and X.

    what is the difference between lock mode E and X.

    Hi
    The lock mode controls whether several users can access data records at the same time. The lock mode can be assigned separately for each table in the lock object. When the lock is set, the corresponding lock entry is stored in the lock table of the system for each table
    Lock modes:
    S (Shared):
        Several users (transactions) can access locked data at the same time in display mode. A request for another shared lock is accepted, even if it comes from another user. An exclusive lock set on an object that already has a shared lock will be rejected.
    E (Exclusive).
    An exclusive lock protects the locked object against all types of locks from other transactions. Only the same lock owner can reset the lock (accumulate).
    X (eXclusive non-cumulative):
      Exclusive locks can be requested several times from the same transaction and are processed successively. In contrast, exclusive but not cumulative locks can be called only once from the same transaction. Each further lock request will be rejected.
    O (Optimistic):
      Optimistic locks initially behave like shared locks and can be converted into exclusive locks.
    If it is helpful rewards points.
    Regards
    Pratap.M

  • Low latency mode: what's the sense?

    I've read it bypasses plug ins which causes latency. But if it is so what'is the sense of this function? If I understand well in this mode I don't know exactly which plug in will work and which no....
    I cannot accept a situation like this.
    Apart from anything else I did use low latency mode (because I listened some latency after having inserted a plug) and I checked all the plugs during playback and they all seem to work. So?
    I don't understand...

    Usually I use Low Latency mode in when mixing-mastering.
    I use UAD DSP plugins on the master... this is cause of many issue... the MAIN problem is that Logic is able to compensate Plugin Audio Latency (PDC)... but not Graphics .. (GPDC is not available... instead Logic 7... Logic 7 have GPDC!!! ... in Logic 8 graphical plugin delay compensation is a missing features)
    the resulting behavior is that All meters show anticipate by the sound...
    but this is not fixable.. or better.. Apple developers must included the Graphic delay compensation in order to get metering in sync with Audio... (I hope in the 8.1 version)
    Anyway.. i love UAD sound and I use them in any case..
    return back to your question, I use Low Latency mode when i need to record some missing details .. without get DSP latency!
    It is a helpful features (not so basical but helpfull).
    Logic Pro 7 is also a great DAW!
    G

  • What is the best way to create a read more/collapse text box on the homepage of a site?

    What is the best way to create a read more/collapse text box on the homepage of a site?

    I figured this out by using a lightbox. I set the trigger at the top of the box, hid all initially and added a close button. In the box that would have linked to the first thumbnail for the lightbox, I added a text box that said "read more"

  • What is the latest downloadable version for Adobe Reader 11.0.08 or 11.0.09?

    What is the latest downloadable version for Adobe Reader 11.0.08 or 11.0.09?  I saw the 11.0.09 download last Thursday 9/18/14 but no longer seeing it today 9/22/14, just the 11.0.08.  Also, after I have downloaded and expanded AdbeRdr11008_en_US.exe, I am getting AcroReader.msi that is posted date on 9/23/2012.  I need to customize the MSI file using the Adobe Customization Wizard XI for our corporate environment.  Can you direct me on where to download the latest MSI file for Adobe Reader?  Thanks.

    The latest MSI made available by Adobe is AdbeRdr11000_en_US.msi
    You can get the 11.0.09 EXE from http://ardownload.adobe.com/pub/adobe/reader/win/11.x/11.0.09/en_US/AdbeRdr11009_en_US.exe

  • When starting Final Cut Pro 7.0.3 I am all of a sudden getting a message that says "One or more of the scratch disks don't have read/ write access" and now the app won't operate - how do I fix this so I can use Final Cut Pro?

    When starting Final Cut Pro 7.0.3 I am all of a sudden getting a message that says "One or more of the scratch disks don't have read/ write access" and now the app won't operate - how do I fix this so I can use Final Cut Pro?

    Glad you found the answer.  But something seems wrong.  FCP should be able to assign the scratch disk to your startup drive.  It's not advisable, but it should be possible.  You might want to try and figure out what's going on before what ever's going on cause other problems.

  • What is the significance of LOCK INDICATOR in IT0006?

    Hi all,
    has anyone used lock indicator in IT0006? for what requirement is it used? what is its significance?
    what r the implications? does it used for any specific HR process? Where else do we find lock indicators in HR master data?
    thanks in advance...points will be duly awarded .

    The Lock indicator will make the record not available even though it will be stored in the database table.
    This is useful when you need to validate data before it is available in system.
    For e.g. In ESS you may allow Family / Dependent data to be entered by employee. Some companies need proof of relationship before they allow Family data to be stored in the system. In this scenario, the Family / Dependent record can be in Locked mode till the employee provides the relevant proof of relation. On getting the proof, HR can unlock the record to be available in the system.
    Hope this explanation helps you.
    Cheers!!!!!!
    Sanjay Sharma

  • What's the sense of "NOT" in the BEx-Analyzer selection-screen?

    Hi specialists,
    the selection-screen Queries in the BEx-Anlyzer presents the following selection-options:
    "="
    "<="
    ">"
    ">="
    "<"
    as well as their inverses:
    "not"
    "not ="
    "not <="
    "not >"
    "not >="
    "not <"
    "not []"
    "not *"
    While most of this options are redundant (because "not <=" is the same as ">") I absolutely cannot find any case where the above maked "not" makes any sense.
    In other words: Could somebody please gimme a hint what's the difference between "not" and "not =".

    Hi Stefan,
    I'm not sure weather we are talking about the same thing.
    When I use the the "more"-button (multselection-screen) of the selelection-screen, then I can comprehend your eplaination: The tab's are "and" connected - while the rows within a tab are "or" connected.
    But without the multiselection-dialog, there's still the option "not" in the drop-down list left to the value-field on the selection-screen. But I can't see any possibilty to filter the same variable multiple times here. So the example you mentioned doesn't fit here.
    Perhaps in some different way:
    If I choose "NOT" for the salesorg-variable, without providing a value followed by [enter]/check, then the "not" option is changed to "".
    If I choose "NOT" for the salesorg-variable, providing a value followed by [enter]/check, then the "not" option is changed to "=".
    In which case does the "not"-option "survive" the check without beeing corrected to any other option?
    (btw: I miss a possibilty for attaching images in the sdn-forum! - That would make some explainations much easier)

  • What's the Best Securirty Lock for Powerbook?

    I just got the new 17" PowerBook and am looking to buy the best security lock cable for it. I have read some posts before indicating some locks damaged their PowerBooks. I would appreciate your comments on your experiences and your recommendations. Thanks.

    George,
    There are a variety of locks out there so you can pretty much pick any one. Important to note is whether you want a combo lock or one with a key. For me I use a combo lock since it's one less key I have to carry on an already crowded key chain. Most locks come with plastic washers of various thicknesses. Do not discard these. Basically they are included because even though all lock slots are standard kensington, case designs vary. Some are thicker than others. The washers take up the slack in the lock so it mounts flush to the case. For the PB it provides a dual purpose as it keeps the metal lock from scratching the side of the PB case. I forgot to use mine the first time and I have a small half-circle scratch where the lock rubbed against the side of the PB case..'sigh', causing yet another blemish on my otherwise pristine PB. Oddly enough the only other blemish was also caused by my lock. I accidentally dropped it while standing over my PB and now there is this little pinhead sized gouge to the right of the trackpad near the SuperDrive slot.
    Jrsy

  • OK What About The PCI Buss Lock at 33?

    I read over at Anantech in the review of the k7n2-L that the PCI bus is not locked.
    From Anandtech:
    We still haven't been able to get confirmation from MSI as to whether the K7N2-L locks the PCI bus at 33MHz. There is an AGP lock at 66MHz for this board (as with all nForce2 boards). We'll immediately update you with more information as we receive it from MSI. 12/04/02 UPDATE: MSI sends word that the K7N2-L indeed does not have a PCI bus lock at 33MHz, meaning you will overclock your PCI bus to a certain level at a certain overclocked FSB speed.
    Now I have read here in a couple of threads that the PCI buss is lock at 33.
     So who is right???

    its locked guy at amd forums the wise one measured his on a pc gieger 33.4 regardless of fsb

Maybe you are looking for