Class UppercaseAliasTransformer

java.lang.Object
org.litebridgedb.db.spi.impl.alias.UppercaseAliasTransformer
All Implemented Interfaces:
AliasTransformer

public final class UppercaseAliasTransformer extends Object implements AliasTransformer
Implementation of AliasTransformer that converts database alias strings to uppercase.

This class provides a concrete transformation rule for alias strings, converting them to uppercase using the String.toUpperCase() method. If the input alias is null, the transformation will return null.

This implementation is useful in scenarios where database aliases need to be in a consistent uppercase format, for example, to ensure compatibility with case-sensitive database systems or to follow specific naming conventions.

Thread-safety: This class is stateless and therefore thread-safe.

  • Constructor Details

    • UppercaseAliasTransformer

      public UppercaseAliasTransformer()
  • Method Details

    • transformAlias

      public @Nullable String transformAlias(@Nullable String dbAlias)
      Description copied from interface: AliasTransformer
      Transforms the given database alias into another form.

      The transformation rules are implementation-specific and can vary based on the requirements of the database or application.

      Specified by:
      transformAlias in interface AliasTransformer
      Parameters:
      dbAlias - The alias to be transformed.
      Returns:
      The transformed alias, or null if the input alias is null.