test_class.declarator: transactionStatus
test_class.modifier: private
test_class.original_string: private TransactionStatus transactionStatus;
test_class.type: TransactionStatus
test_class.var_name: transactionStatus
test_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/transaction/TransactionStatusTest.java
test_class.identifier: TransactionStatusTest
test_case.body: @Test
      public void assertSetTransactionType() {
          transactionStatus.setTransactionType(TransactionType.BASE);
          TransactionType actual = transactionStatus.getTransactionType();
          assertThat(actual, is(TransactionType.BASE));
      }
test_case.class_method_signature: TransactionStatusTest.assertSetTransactionType()
test_case.full_signature: @Test public void assertSetTransactionType()
test_case.identifier: assertSetTransactionType
test_case.invocations: setTransactionType getTransactionType assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertSetTransactionType()
focal_class.declarator: DEFAULT_TIMEOUT_MILLISECONDS = 200L
focal_class.modifier: private static final
focal_class.original_string: private static final long DEFAULT_TIMEOUT_MILLISECONDS = 200L;
focal_class.type: long
focal_class.var_name: DEFAULT_TIMEOUT_MILLISECONDS
focal_class.declarator: MAXIMUM_RETRY_COUNT = 5
focal_class.modifier: private static final
focal_class.original_string: private static final int MAXIMUM_RETRY_COUNT = 5;
focal_class.type: int
focal_class.var_name: MAXIMUM_RETRY_COUNT
focal_class.declarator: inTransaction
focal_class.modifier: @Setter
      private volatile
focal_class.original_string: @Setter
      private volatile boolean inTransaction;
focal_class.type: boolean
focal_class.var_name: inTransaction
focal_class.declarator: transactionType
focal_class.modifier: private volatile
focal_class.original_string: private volatile TransactionType transactionType;
focal_class.type: TransactionType
focal_class.var_name: transactionType
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/transaction/TransactionStatus.java
focal_class.identifier: TransactionStatus
focal_class.class_method_signature: TransactionStatus.TransactionStatus(final TransactionType initialTransactionType)
focal_class.full_signature: public  TransactionStatus(final TransactionType initialTransactionType)
focal_class.identifier: TransactionStatus
focal_class.modifiers: public
focal_class.parameters: (final TransactionType initialTransactionType)
focal_class.signature:  TransactionStatus(final TransactionType initialTransactionType)
focal_class.class_method_signature: TransactionStatus.setTransactionType(final TransactionType transactionType)
focal_class.full_signature: public void setTransactionType(final TransactionType transactionType)
focal_class.identifier: setTransactionType
focal_class.modifiers: public
focal_class.parameters: (final TransactionType transactionType)
focal_class.return: void
focal_class.signature: void setTransactionType(final TransactionType transactionType)
focal_class.class_method_signature: TransactionStatus.isInConnectionHeldTransaction()
focal_class.full_signature: public boolean isInConnectionHeldTransaction()
focal_class.identifier: isInConnectionHeldTransaction
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isInConnectionHeldTransaction()
focal_method.body: public void setTransactionType(final TransactionType transactionType) {
          if (inTransaction) {
              throw new ShardingSphereException("Failed to switch transaction type, please terminate current transaction.");
          }
          this.transactionType = transactionType;
      }
focal_method.class_method_signature: TransactionStatus.setTransactionType(final TransactionType transactionType)
focal_method.full_signature: public void setTransactionType(final TransactionType transactionType)
focal_method.identifier: setTransactionType
focal_method.modifiers: public
focal_method.parameters: (final TransactionType transactionType)
focal_method.return: void
focal_method.signature: void setTransactionType(final TransactionType transactionType)