Module litebridge.db.spi.impl
Class UppercaseAliasTransformer
java.lang.Object
org.litebridgedb.db.spi.impl.alias.UppercaseAliasTransformer
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringtransformAlias(@Nullable String dbAlias) Transforms the given database alias into another form.
-
Constructor Details
-
UppercaseAliasTransformer
public UppercaseAliasTransformer()
-
-
Method Details
-
transformAlias
Description copied from interface:AliasTransformerTransforms 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:
transformAliasin interfaceAliasTransformer- Parameters:
dbAlias- The alias to be transformed.- Returns:
- The transformed alias, or null if the input alias is null.
-