test_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/text/admin/RDLBackendHandlerTest.java
test_class.identifier: RDLBackendHandlerTest
test_case.body: @Test
      public void assertExecuteShardingRuleContext() throws SQLException {
          BackendConnection connection = mock(BackendConnection.class);
          when(connection.getSchemaName()).thenReturn("schema");
          RDLBackendHandler executeEngine = new RDLBackendHandler(connection, mock(CreateShardingRuleStatement.class));
          try {
              executeEngine.execute();
          } catch (final SQLException ex) {
              assertThat(ex.getMessage(), is("No Registry center to execute `CreateShardingRuleStatementContext` SQL"));
          }
          setGovernanceSchemaContexts(true);
          BackendResponse response = executeEngine.execute();
          assertThat(response, instanceOf(UpdateResponse.class));
      }
test_case.class_method_signature: RDLBackendHandlerTest.assertExecuteShardingRuleContext()
test_case.full_signature: @Test public void assertExecuteShardingRuleContext()
test_case.identifier: assertExecuteShardingRuleContext
test_case.invocations: mock thenReturn when getSchemaName mock execute assertThat getMessage is setGovernanceSchemaContexts execute assertThat instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertExecuteShardingRuleContext()
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: sqlStatement
focal_class.modifier: private final
focal_class.original_string: private final SQLStatement sqlStatement;
focal_class.type: SQLStatement
focal_class.var_name: sqlStatement
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/admin/RDLBackendHandler.java
focal_class.identifier: RDLBackendHandler
focal_class.interfaces: implements TextProtocolBackendHandler
focal_class.class_method_signature: RDLBackendHandler.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: RDLBackendHandler.execute(final CreateDatabaseStatementContext context)
focal_class.full_signature: private BackendResponse execute(final CreateDatabaseStatementContext context)
focal_class.identifier: execute
focal_class.modifiers: private
focal_class.parameters: (final CreateDatabaseStatementContext context)
focal_class.return: BackendResponse
focal_class.signature: BackendResponse execute(final CreateDatabaseStatementContext context)
focal_class.class_method_signature: RDLBackendHandler.execute(final DropDatabaseStatementContext context)
focal_class.full_signature: private BackendResponse execute(final DropDatabaseStatementContext context)
focal_class.identifier: execute
focal_class.modifiers: private
focal_class.parameters: (final DropDatabaseStatementContext context)
focal_class.return: BackendResponse
focal_class.signature: BackendResponse execute(final DropDatabaseStatementContext context)
focal_class.class_method_signature: RDLBackendHandler.execute(final CreateDataSourcesStatementContext context)
focal_class.full_signature: private BackendResponse execute(final CreateDataSourcesStatementContext context)
focal_class.identifier: execute
focal_class.modifiers: private
focal_class.parameters: (final CreateDataSourcesStatementContext context)
focal_class.return: BackendResponse
focal_class.signature: BackendResponse execute(final CreateDataSourcesStatementContext context)
focal_class.class_method_signature: RDLBackendHandler.execute(final CreateShardingRuleStatementContext context)
focal_class.full_signature: private BackendResponse execute(final CreateShardingRuleStatementContext context)
focal_class.identifier: execute
focal_class.modifiers: private
focal_class.parameters: (final CreateShardingRuleStatementContext context)
focal_class.return: BackendResponse
focal_class.signature: BackendResponse execute(final CreateShardingRuleStatementContext context)
focal_class.class_method_signature: RDLBackendHandler.getSQLStatementContext()
focal_class.full_signature: private SQLStatementContext<?> getSQLStatementContext()
focal_class.identifier: getSQLStatementContext
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: SQLStatementContext<?>
focal_class.signature: SQLStatementContext<?> getSQLStatementContext()
focal_class.class_method_signature: RDLBackendHandler.getBackendResponse(final SQLStatementContext<?> context)
focal_class.full_signature: private BackendResponse getBackendResponse(final SQLStatementContext<?> context)
focal_class.identifier: getBackendResponse
focal_class.modifiers: private
focal_class.parameters: (final SQLStatementContext<?> context)
focal_class.return: BackendResponse
focal_class.signature: BackendResponse getBackendResponse(final SQLStatementContext<?> context)
focal_class.class_method_signature: RDLBackendHandler.isRegistryCenterExisted()
focal_class.full_signature: private boolean isRegistryCenterExisted()
focal_class.identifier: isRegistryCenterExisted
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRegistryCenterExisted()
focal_class.class_method_signature: RDLBackendHandler.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: RDLBackendHandler.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() throws SQLException {
          SQLStatementContext<?> context = getSQLStatementContext();
          if (!isRegistryCenterExisted()) {
              throw new SQLException(String.format("No Registry center to execute `%s` SQL", context.getClass().getSimpleName()));
          }
          return getBackendResponse(context);
      }
focal_method.class_method_signature: RDLBackendHandler.execute()
focal_method.full_signature: @Override public BackendResponse execute()
focal_method.identifier: execute
focal_method.invocations: getSQLStatementContext isRegistryCenterExisted format getSimpleName getClass getBackendResponse
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: BackendResponse
focal_method.signature: BackendResponse execute()