<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    That way I want to stay

    BlogJava 首頁 新隨筆 聯系 聚合 管理
      55 Posts :: 1 Stories :: 41 Comments :: 0 Trackbacks

    Propagation behavior:

    PROPAGATION_MANDATORY:
     Indicates that the method must run within a transaction. If no
     existing transaction is in progress, an exception will be thrown.


    PROPAGATION_NESTED:
     Indicates that the method should be run within a nested transaction
     if an existing transaction is in progress. The nested transaction
     can be committed and rolled back individually from the enclosing
     transaction. If no enclosing transaction exists, behaves like
    PROPAGATION_REQUIRED:
     Beware that vendor support for this propagation behavior is spotty at best.
     Consult the documentation for your resource  manager to determine if nested
     transactions are supported.
    PROPAGATION_NEVER:
     Indicates that the current method should not run within a transactional
     context. If there is an existing transaction in progress, an
     exception will be thrown.
    PROPAGATION_NOT_SUPPORTED:
     Indicates that the method should not run within a transaction. If an
     existing transaction is in progress, it will be suspended for the
     duration of the method. If using JTATransactionManager,
     access to TransactionManager is required.
    PROPAGATION_REQUIRED:
     Indicates that the current method must run within a transaction. If
     an existing transaction is in progress, the method will run within
     that transaction. Otherwise, a new transaction will be started.
    PROPAGATION_REQUIRES_NEW:
     Indicates that the current method must run within its own transaction.
     A new transaction is started and if an existing transaction is in
     progress, it will be suspended for the duration of the method. If
     using JTATransactionManager, access to Transaction-
     Manager is required.
    PROPAGATION_SUPPORTS:
     Indicates that the current method does not require a transactional
     context, but may run within a transaction if one is already in
     progress.


    Isolation levels:
    In a typical application, multiple transactions run concurrently, often working
    with the same data to get their job done. Concurrency, while necessary, can lead
    to the following problems:
     ■ Dirty read—Dirty reads occur when one transaction reads data that has
     been written but not yet committed by another transaction. If the
     changes are later rolled back, the data obtained by the first transaction
     will be invalid.
     ■ Nonrepeatable read—Nonrepeatable reads happen when a transaction performs
     the same query two or more times and each time the data is different.
     This is usually due to another concurrent transaction updating the
     data between the queries.
     ■ Phantom reads—Phantom reads are similar to nonrepeatable reads. These
     occur when a transaction (T1) reads several rows, then a concurrent transaction
     (T2) inserts rows. Upon subsequent queries, the first transaction
     (T1) finds additional rows that were not there before.


    Isolation level:
    ISOLATION_DEFAULT:
     Use the default isolation level of the underlying datastore.
    ISOLATION_READ_UNCOMMITTED:
     Allows you to read changes that have not yet been committed. May
     result in dirty reads, phantom reads, and nonrepeatable reads.
    ISOLATION_READ_COMMITTED:
     Allows reads from concurrent transactions that have been committed.
     Dirty reads are prevented, but phantom and nonrepeatable
     reads may still occur.
    ISOLATION_REPEATABLE_READ:
     Multiple reads of the same field will yield the same results, unless
     changed by the transaction itself. Dirty reads and nonrepeatable
     reads are prevented by phantom reads may still occur.
    ISOLATION_SERIALIZABLE:
     This fully ACID-compliant isolation level ensures that dirty reads,
     nonrepeatable reads, and phantom reads are all prevented. This is
     the slowest of all isolation levels because it is typically accomplished
     by doing full table locks on the tables involved in the transaction. 


    文章來源:http://blog.csdn.net/Wingel/archive/2006/11/26/1414826.aspx
    posted on 2006-11-29 11:19 Wingel 閱讀(201) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 亚洲精品网站在线观看你懂的| 凹凸精品视频分类国产品免费| 国产亚洲精品自在久久| 人人鲁免费播放视频人人香蕉| 国产一卡二卡≡卡四卡免费乱码| 亚洲国产欧美国产综合一区| 永久免费看bbb| 粉色视频免费入口| 精品亚洲视频在线观看| 少妇性饥渴无码A区免费| 亚洲阿v天堂在线| 日本在线看片免费人成视频1000| 内射干少妇亚洲69XXX| 在线视频精品免费| 亚洲AV无码一区二区三区牲色| 国产禁女女网站免费看| 四虎影视久久久免费| 人人狠狠综合久久亚洲88| 免费A级毛片无码专区| 午夜在线a亚洲v天堂网2019| 四虎成人免费网址在线| 一级黄色毛片免费看| 久久精品亚洲综合一品| 一个人看www在线高清免费看| 久久亚洲中文无码咪咪爱| 亚洲日本韩国在线| 99久久久国产精品免费牛牛四川 | 亚洲精品国精品久久99热一| 久久精品一本到99热免费| 日本亚洲色大成网站www久久| 国产精品免费看久久久久| 成人免费乱码大片A毛片| 亚洲精品资源在线| 国产成人免费一区二区三区| 99视频免费在线观看| 久久久国产亚洲精品| 亚洲一区二区女搞男| AV免费网址在线观看| 中国一级特黄高清免费的大片中国一级黄色片 | 我要看WWW免费看插插视频| 成人福利在线观看免费视频|