test_class.declarator: backendConnection = new BackendConnection(TransactionType.LOCAL)
test_class.modifier: private final
test_class.original_string: private final BackendConnection backendConnection = new BackendConnection(TransactionType.LOCAL);
test_class.type: BackendConnection
test_class.var_name: backendConnection
test_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/text/sctl/show/ShardingCTLShowBackendHandlerTest.java
test_class.identifier: ShardingCTLShowBackendHandlerTest
test_case.body: @Test(expected = UnsupportedShardingCTLTypeException.class)
      public void assertShowCachedConnectionFailed() {
          backendConnection.setCurrentSchema("schema");
          new ShardingCTLShowBackendHandler("sctl:show cached_connectionss", backendConnection).execute();
      }
test_case.class_method_signature: ShardingCTLShowBackendHandlerTest.assertShowCachedConnectionFailed()
test_case.full_signature: @Test(expected = UnsupportedShardingCTLTypeException.class) public void assertShowCachedConnectionFailed()
test_case.identifier: assertShowCachedConnectionFailed
test_case.invocations: setCurrentSchema execute
test_case.modifiers: @Test(expected = UnsupportedShardingCTLTypeException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertShowCachedConnectionFailed()
focal_class.declarator: sql
focal_class.modifier: private final
focal_class.original_string: private final String sql;
focal_class.type: String
focal_class.var_name: sql
focal_class.declarator: backendConnection
focal_class.modifier: private final
focal_class.original_string: private final BackendConnection backendConnection;
focal_class.type: BackendConnection
focal_class.var_name: backendConnection
focal_class.declarator: mergedResult
focal_class.modifier: private
focal_class.original_string: private MergedResult mergedResult;
focal_class.type: MergedResult
focal_class.var_name: mergedResult
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/sctl/show/ShardingCTLShowBackendHandler.java
focal_class.identifier: ShardingCTLShowBackendHandler
focal_class.interfaces: implements TextProtocolBackendHandler
focal_class.class_method_signature: ShardingCTLShowBackendHandler.ShardingCTLShowBackendHandler(final String sql, final BackendConnection backendConnection)
focal_class.full_signature: public  ShardingCTLShowBackendHandler(final String sql, final BackendConnection backendConnection)
focal_class.identifier: ShardingCTLShowBackendHandler
focal_class.modifiers: public
focal_class.parameters: (final String sql, final BackendConnection backendConnection)
focal_class.signature:  ShardingCTLShowBackendHandler(final String sql, final BackendConnection backendConnection)
focal_class.class_method_signature: ShardingCTLShowBackendHandler.execute()
focal_class.full_signature: @Override public BackendResponse execute()
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: BackendResponse
focal_class.signature: BackendResponse execute()
focal_class.class_method_signature: ShardingCTLShowBackendHandler.createResponsePackets(final String columnName, final Object... values)
focal_class.full_signature: private BackendResponse createResponsePackets(final String columnName, final Object... values)
focal_class.identifier: createResponsePackets
focal_class.modifiers: private
focal_class.parameters: (final String columnName, final Object... values)
focal_class.return: BackendResponse
focal_class.signature: BackendResponse createResponsePackets(final String columnName, final Object... values)
focal_class.class_method_signature: ShardingCTLShowBackendHandler.next()
focal_class.full_signature: @Override public boolean next()
focal_class.identifier: next
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean next()
focal_class.class_method_signature: ShardingCTLShowBackendHandler.getQueryData()
focal_class.full_signature: @Override public QueryData getQueryData()
focal_class.identifier: getQueryData
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: QueryData
focal_class.signature: QueryData getQueryData()
focal_method.body: @Override
      public BackendResponse execute() {
          Optional<ShardingCTLShowStatement> showStatement = new ShardingCTLShowParser(sql).doParse();
          if (!showStatement.isPresent()) {
              throw new InvalidShardingCTLFormatException(sql);
          }
          switch (showStatement.get().getValue()) {
              case "TRANSACTION_TYPE":
                  return createResponsePackets("TRANSACTION_TYPE", backendConnection.getTransactionStatus().getTransactionType().name());
              case "CACHED_CONNECTIONS":
                  return createResponsePackets("CACHED_CONNECTIONS", backendConnection.getConnectionSize());
              default:
                  throw new UnsupportedShardingCTLTypeException(sql);
          }
      }
focal_method.class_method_signature: ShardingCTLShowBackendHandler.execute()
focal_method.full_signature: @Override public BackendResponse execute()
focal_method.identifier: execute
focal_method.invocations: doParse isPresent getValue get createResponsePackets name getTransactionType getTransactionStatus createResponsePackets getConnectionSize
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: BackendResponse
focal_method.signature: BackendResponse execute()