test_class.file: shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-common/src/test/java/org/apache/shardingsphere/encrypt/metadata/EncryptMetaDataDecoratorTest.java
test_class.identifier: EncryptMetaDataDecoratorTest
test_case.body: @Test
      public void assertDecorate() {
          EncryptRule rule = createEncryptRule();
          EncryptMetaDataDecorator decorator = (EncryptMetaDataDecorator) OrderedSPIRegistry.getRegisteredServices(Collections.singletonList(rule), RuleMetaDataDecorator.class).get(rule);
          TableMetaData actual = decorator.decorate("t_encrypt", createTableMetaData(), rule);
          assertThat(actual.getColumns().size(), is(2));
          assertTrue(actual.getColumns().containsKey("id"));
          assertTrue(actual.getColumns().containsKey("pwd"));
      }
test_case.class_method_signature: EncryptMetaDataDecoratorTest.assertDecorate()
test_case.full_signature: @Test public void assertDecorate()
test_case.identifier: assertDecorate
test_case.invocations: createEncryptRule get getRegisteredServices singletonList decorate createTableMetaData assertThat size getColumns is assertTrue containsKey getColumns assertTrue containsKey getColumns
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertDecorate()
focal_class.file: shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-common/src/main/java/org/apache/shardingsphere/encrypt/metadata/EncryptMetaDataDecorator.java
focal_class.identifier: EncryptMetaDataDecorator
focal_class.interfaces: implements RuleMetaDataDecorator<EncryptRule>
focal_class.class_method_signature: EncryptMetaDataDecorator.decorate(final String tableName, final TableMetaData tableMetaData, final EncryptRule encryptRule)
focal_class.full_signature: @Override public TableMetaData decorate(final String tableName, final TableMetaData tableMetaData, final EncryptRule encryptRule)
focal_class.identifier: decorate
focal_class.modifiers: @Override public
focal_class.parameters: (final String tableName, final TableMetaData tableMetaData, final EncryptRule encryptRule)
focal_class.return: TableMetaData
focal_class.signature: TableMetaData decorate(final String tableName, final TableMetaData tableMetaData, final EncryptRule encryptRule)
focal_class.class_method_signature: EncryptMetaDataDecorator.getEncryptColumnMetaDataList(final String tableName, final Collection<ColumnMetaData> originalColumnMetaDataList, final EncryptRule encryptRule)
focal_class.full_signature: private Collection<ColumnMetaData> getEncryptColumnMetaDataList(final String tableName, final Collection<ColumnMetaData> originalColumnMetaDataList, final EncryptRule encryptRule)
focal_class.identifier: getEncryptColumnMetaDataList
focal_class.modifiers: private
focal_class.parameters: (final String tableName, final Collection<ColumnMetaData> originalColumnMetaDataList, final EncryptRule encryptRule)
focal_class.return: Collection<ColumnMetaData>
focal_class.signature: Collection<ColumnMetaData> getEncryptColumnMetaDataList(final String tableName, final Collection<ColumnMetaData> originalColumnMetaDataList, final EncryptRule encryptRule)
focal_class.class_method_signature: EncryptMetaDataDecorator.getEncryptColumnMetaData(final String tableName, final ColumnMetaData originalColumnMetaData, final EncryptRule encryptRule)
focal_class.full_signature: private ColumnMetaData getEncryptColumnMetaData(final String tableName, final ColumnMetaData originalColumnMetaData, final EncryptRule encryptRule)
focal_class.identifier: getEncryptColumnMetaData
focal_class.modifiers: private
focal_class.parameters: (final String tableName, final ColumnMetaData originalColumnMetaData, final EncryptRule encryptRule)
focal_class.return: ColumnMetaData
focal_class.signature: ColumnMetaData getEncryptColumnMetaData(final String tableName, final ColumnMetaData originalColumnMetaData, final EncryptRule encryptRule)
focal_class.class_method_signature: EncryptMetaDataDecorator.getOrder()
focal_class.full_signature: @Override public int getOrder()
focal_class.identifier: getOrder
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getOrder()
focal_class.class_method_signature: EncryptMetaDataDecorator.getTypeClass()
focal_class.full_signature: @Override public Class<EncryptRule> getTypeClass()
focal_class.identifier: getTypeClass
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<EncryptRule>
focal_class.signature: Class<EncryptRule> getTypeClass()
focal_method.body: @Override
      public TableMetaData decorate(final String tableName, final TableMetaData tableMetaData, final EncryptRule encryptRule) {
          return new TableMetaData(getEncryptColumnMetaDataList(tableName, tableMetaData.getColumns().values(), encryptRule), tableMetaData.getIndexes().values());
      }
focal_method.class_method_signature: EncryptMetaDataDecorator.decorate(final String tableName, final TableMetaData tableMetaData, final EncryptRule encryptRule)
focal_method.full_signature: @Override public TableMetaData decorate(final String tableName, final TableMetaData tableMetaData, final EncryptRule encryptRule)
focal_method.identifier: decorate
focal_method.invocations: getEncryptColumnMetaDataList values getColumns values getIndexes
focal_method.modifiers: @Override public
focal_method.parameters: (final String tableName, final TableMetaData tableMetaData, final EncryptRule encryptRule)
focal_method.return: TableMetaData
focal_method.signature: TableMetaData decorate(final String tableName, final TableMetaData tableMetaData, final EncryptRule encryptRule)