test_class.declarator: SCHEMA_PATTERN = "schema_%s"
test_class.modifier: private static final
test_class.original_string: private static final String SCHEMA_PATTERN = "schema_%s";
test_class.type: String
test_class.var_name: SCHEMA_PATTERN
test_class.declarator: tablesBackendHandler
test_class.modifier: private
test_class.original_string: private ShowTablesBackendHandler tablesBackendHandler;
test_class.type: ShowTablesBackendHandler
test_class.var_name: tablesBackendHandler
test_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/text/admin/ShowTablesBackendHandlerTest.java
test_class.identifier: ShowTablesBackendHandlerTest
test_case.body: @Test
      public void assertExecuteShowTablesBackendHandler() throws SQLException {
          QueryResponse actual = (QueryResponse) tablesBackendHandler.execute();
          assertThat(actual, instanceOf(QueryResponse.class));
          assertThat(actual.getQueryHeaders().size(), is(1));
      }
test_case.class_method_signature: ShowTablesBackendHandlerTest.assertExecuteShowTablesBackendHandler()
test_case.full_signature: @Test public void assertExecuteShowTablesBackendHandler()
test_case.identifier: assertExecuteShowTablesBackendHandler
test_case.invocations: execute assertThat instanceOf assertThat size getQueryHeaders is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertExecuteShowTablesBackendHandler()
focal_class.declarator: databaseCommunicationEngineFactory = DatabaseCommunicationEngineFactory.getInstance()
focal_class.modifier: private final
focal_class.original_string: private final DatabaseCommunicationEngineFactory databaseCommunicationEngineFactory = DatabaseCommunicationEngineFactory.getInstance();
focal_class.type: DatabaseCommunicationEngineFactory
focal_class.var_name: databaseCommunicationEngineFactory
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: 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.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: databaseCommunicationEngine
focal_class.modifier: private
focal_class.original_string: private DatabaseCommunicationEngine databaseCommunicationEngine;
focal_class.type: DatabaseCommunicationEngine
focal_class.var_name: databaseCommunicationEngine
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/admin/ShowTablesBackendHandler.java
focal_class.identifier: ShowTablesBackendHandler
focal_class.interfaces: implements TextProtocolBackendHandler
focal_class.class_method_signature: ShowTablesBackendHandler.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: ShowTablesBackendHandler.getDefaultQueryResponse(final String schemaName)
focal_class.full_signature: private QueryResponse getDefaultQueryResponse(final String schemaName)
focal_class.identifier: getDefaultQueryResponse
focal_class.modifiers: private
focal_class.parameters: (final String schemaName)
focal_class.return: QueryResponse
focal_class.signature: QueryResponse getDefaultQueryResponse(final String schemaName)
focal_class.class_method_signature: ShowTablesBackendHandler.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: ShowTablesBackendHandler.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 {
          ShardingSphereSchema schema = ProxyContext.getInstance().getSchema(backendConnection.getSchemaName());
          if (null == schema) {
              throw new NoDatabaseSelectedException();
          }
          if (!schema.isComplete()) {
              return getDefaultQueryResponse(backendConnection.getSchemaName());
          }
          // TODO Get all tables from meta data.
          databaseCommunicationEngine = databaseCommunicationEngineFactory.newTextProtocolInstance(sqlStatement, sql, backendConnection);
          return databaseCommunicationEngine.execute();
      }
focal_method.class_method_signature: ShowTablesBackendHandler.execute()
focal_method.full_signature: @Override public BackendResponse execute()
focal_method.identifier: execute
focal_method.invocations: getSchema getInstance getSchemaName isComplete getDefaultQueryResponse getSchemaName newTextProtocolInstance execute
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: BackendResponse
focal_method.signature: BackendResponse execute()