下面关于Hibernate中Transaction的使用说法正确的是()。A、Transaction是可有可无的B、Transaction在做查询的时候是可选的C、Transaction在做删除的时候是可选的D、Transaction在做修改的时候是可选的

题目

下面关于Hibernate中Transaction的使用说法正确的是()。

  • A、Transaction是可有可无的
  • B、Transaction在做查询的时候是可选的
  • C、Transaction在做删除的时候是可选的
  • D、Transaction在做修改的时候是可选的

相似考题
更多“下面关于Hibernate中Transaction的使用说法正确的是()。A、Transaction是可有可无的B、Transaction在做查询的时候是可选的C、Transaction在做删除的时候是可选的D、Transaction在做修改的时候是可选的”相关问题
  • 第1题:

    用于提交和回滚事务的语句为( )。

    A.END TRANSACTION和ROLLBACK TRANSACTION
    B.COMMIT TRANSACTION和ROLLBACK TRANSACTION
    C.SAVE TRANSACTION和ROLLUP TRANSACTION
    D.COMMIT TRANSACTION和ROLLUP TRANSACTION

    答案:B
    解析:

  • 第2题:

    V5.x系统中,手工清除Sybase中zxcms数据库日志的SQL语句是()

    • A、dump transaction zxcms with no_log
    • B、dump transaction zxcms with nolog
    • C、dump transaction zxcms with no-log
    • D、drop transaction zxcms with nolog

    正确答案:A

  • 第3题:

    下面关于hibernate核心接口说明错误的是()

    • A、Configuration 接口:配置Hibernate,根据其启动hibernate,创建SessionFactory对象;
    • B、SessionFactory 接口:负责保存、更新、删除、加载和查询对象,是线程不安全的,避免多个线程共享同一个session,是轻量级、一级缓存;
    • C、Query和Criteria接口:执行数据库的查询;
    • D、Transaction接口:管理事务。

    正确答案:B

  • 第4题:

    网络交易服务(network transaction service)是指什么?


    正确答案: 网络交易方、网络交易平台提供商、网络支付平台提供商和网络交易辅助服务提供商为缔结和履行网络交易所提供的各种服务。

  • 第5题:

    Which of the following describes how a distributed resumable transaction behaves?()  

    • A、 The resumable setting on the initiating session determines the resumable conditions for the entire distributed transaction.
    • B、 The resumable setting for the initiating instance determines the resumable conditions for the entire distributed transaction.
    • C、 The resumable setting on the initiating session controls only that part of the transaction that occurs within the local instance; remote resumable settings determine the behavior of the distributed parts  of the transaction.
    • D、 None of the above.

    正确答案:C

  • 第6题:

    Which method would you use to undo the changes made by a particular transaction without affecting the changes made by other transactions?()

    • A、point-in-time recovery
    • B、execute the ROLLBACK command with transaction number
    • C、flashback the database to before the transaction was committed
    • D、determine all the necessary undo SQL statements from FLASHBACK_TRANSACTION_QUERY and use them for recovery

    正确答案:D

  • 第7题:

    In WebLogic 10.3.6 and 12c, transaction logs can optionally write to a JDBC store instead of a file store on the file system. Identify the three benefits as a result of this capability.() 

    • A、simplified disaster recovery architecture and efforts
    • B、better performance than writing logs to a file store
    • C、common storage of transaction logs with application data
    • D、common replication of transaction logs with application data
    • E、higher transaction throughput

    正确答案:A,C,D

  • 第8题:

    多选题
    The session of user SCOTT receives the following error after executing an UPDATE command onthe EMP table:  ERROR at line 1:  ORA-00060: deadlock detected while waiting for resource  On investigation, you find that a session opened by user JIM has a transaction that caused the deadlock.  two statements are true regarding the session of SCOTT in this scenario()
    A

    The session is terminated after receiving the error and JIM can continue with his transaction.

    B

    SCOTT should perform a COMMIT or ROLLBACK to allow JIM to continue with his transaction.

    C

    The session is rolled back after receiving the error and JIM can continue with his transaction.

    D

    SCOTT has to reexecute the last command in the transaction after he commits the transaction.


    正确答案: C,B
    解析: 暂无解析

  • 第9题:

    多选题
    下面关于Hibernate中Transaction的使用说法正确的是()
    A

    Transaction是可有可无的

    B

    Transaction在做查询的时候是可有可无的

    C

    Transaction在做修改的时候是可有可无的

    D

    Transaction在做修改的时候是必须的


    正确答案: C,B
    解析: 暂无解析

  • 第10题:

    单选题
    Which method would you use to undo the changes made by a particular transaction without affecting the changes made by other transactions?()
    A

     point-in-time recovery

    B

     execute the ROLLBACK command with transaction number

    C

     flashback the database to before the transaction was committed

    D

     determine all the necessary undo SQL statements from FLASHBACK_TRANSACTION_QUERY and use them for recovery


    正确答案: C
    解析: 暂无解析

  • 第11题:

    多选题
    You work as a database administrator for Certkiller .com. In the middle of a transaction, a user session was abnormally terminated but the instance is still up and the database is open. Which two statements are true in this scenario?()
    A

    Event Viewer gives more details on the failure.

    B

    The alert log file gives detailed information about the failure.

    C

    PMON rolls back the transaction and releases the locks.

    D

    SMON rolls back the transaction and releases the locks.

    E

    The transaction is rolled back by the next session that refers to any of the blocks updates by the failed transaction.

    F

    Data modified by the transaction up to the last commit before the abnormal termination is retained in the database.


    正确答案: E,F
    解析: 暂无解析

  • 第12题:

    单选题
    下面关于Hibernate中Transaction的使用说法正确的是()。
    A

    Transaction是可有可无的

    B

    Transaction在做查询的时候是可选的

    C

    Transaction在做删除的时候是可选的

    D

    Transaction在做修改的时候是可选的


    正确答案: C
    解析: 暂无解析

  • 第13题:

    在Hibernate中,下列关于Transaction说法正确的有()

    • A、事务Transaction为应用程序指定以原子操作单元为范围的对象
    • B、在对数据库进行增加、修改和删除操作时一定要加上Transaction
    • C、在对数据库进行查询操作时一定要加上Transaction
    • D、获得Transaction的方法:Transaction tr = session.beginTransaction();

    正确答案:A,B,D

  • 第14题:

    下面关于Hibernate中Transaction的使用说法正确的是()

    • A、Transaction是可有可无的
    • B、Transaction在做查询的时候是可有可无的
    • C、Transaction在做修改的时候是可有可无的
    • D、Transaction在做修改的时候是必须的

    正确答案:B,D

  • 第15题:

    下面语句中,能够正确的进入数据库事务的是:()

    • A、@transaction.non_atomic_requests
    • B、@transaction.atomic
    • C、withtransaction.atomic():
    • D、withtransaction.non_atomic_requests():

    正确答案:B,C

  • 第16题:

    By using the transaction identifier provided by()for a particular row change, you can use the Flashback Transaction Query to see the operation performed by the transaction. 

    • A、 Flashback Table
    • B、 Flashback Database
    • C、 Flashback Version Query
    • D、 The RMAN REPORT command
    • E、 The DBA_PENDING_TRANSACTIONS view

    正确答案:C

  • 第17题:

    The session of user SCOTT receives the following error after executing an UPDATE command onthe EMP table:  ERROR at line 1:  ORA-00060: deadlock detected while waiting for resource  On investigation, you find that a session opened by user JIM has a transaction that caused the deadlock.  two statements are true regarding the session of SCOTT in this scenario()

    • A、The session is terminated after receiving the error and JIM can continue with his transaction.
    • B、SCOTT should perform a COMMIT or ROLLBACK to allow JIM to continue with his transaction.
    • C、The session is rolled back after receiving the error and JIM can continue with his transaction.
    • D、SCOTT has to reexecute the last command in the transaction after he commits the transaction.

    正确答案:B,D

  • 第18题:

    You work as a database administrator for Certkiller .com. In the middle of a transaction, a user session was abnormally terminated but the instance is still up and the database is open. Which two statements are true in this scenario?()

    • A、Event Viewer gives more details on the failure.
    • B、The alert log file gives detailed information about the failure.
    • C、PMON rolls back the transaction and releases the locks.
    • D、SMON rolls back the transaction and releases the locks.
    • E、The transaction is rolled back by the next session that refers to any of the blocks updates by the failed transaction.
    • F、Data modified by the transaction up to the last commit before the abnormal termination is retained in the database.

    正确答案:C,F

  • 第19题:

    判断题
    SetTransObject( transaction )中的transaction必须是SQLCA。
    A

    B


    正确答案:
    解析: 暂无解析

  • 第20题:

    单选题
    By using the transaction identifier provided by()for a particular row change, you can use the Flashback Transaction Query to see the operation performed by the transaction.
    A

     Flashback Table

    B

     Flashback Database

    C

     Flashback Version Query

    D

     The RMAN REPORT command

    E

     The DBA_PENDING_TRANSACTIONS view


    正确答案: A
    解析: 暂无解析

  • 第21题:

    单选题
    By using the transaction identifier provided by () for a particular row change, you can use theFlashback Transaction Query to see the operation performed by the transaction.
    A

    Flashback Table

    B

    Flashback Database

    C

    Flashback Versions Query

    D

    the RMAN REPORT command

    E

    the DBA_PENDING_TRANSACTIONS view


    正确答案: A
    解析: 暂无解析

  • 第22题:

    单选题
    Which of the following describes how a distributed resumable transaction behaves?()
    A

     The resumable setting on the initiating session determines the resumable conditions for the entire distributed transaction.

    B

     The resumable setting for the initiating instance determines the resumable conditions for the entire distributed transaction.

    C

     The resumable setting on the initiating session controls only that part of the transaction that occurs within the local instance; remote resumable settings determine the behavior of the distributed parts  of the transaction.

    D

     None of the above.


    正确答案: C
    解析: 暂无解析

  • 第23题:

    多选题
    在Hibernate中,下列关于Transaction说法正确的有()
    A

    事务Transaction为应用程序指定以原子操作单元为范围的对象

    B

    在对数据库进行增加、修改和删除操作时一定要加上Transaction

    C

    在对数据库进行查询操作时一定要加上Transaction

    D

    获得Transaction的方法:Transaction tr = session.beginTransaction();


    正确答案: B,C
    解析: 暂无解析