Module spring.data.relational
Class NamingStrategies
java.lang.Object
org.springframework.data.relational.core.sql.render.NamingStrategies
Factory for
RenderNamingStrategy objects.- Since:
- 1.1
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic RenderNamingStrategyasIs()Creates a as-isRenderNamingStrategythat preservesColumnandTablenames as they were expressed during their declaration.static RenderNamingStrategystatic RenderNamingStrategytoLower()Creates a mappingRenderNamingStrategythat convertsColumnandTablenames to lower case using the defaultLocale.static RenderNamingStrategyCreates a mappingRenderNamingStrategythat convertsColumnandTablenames to lower case using the givenLocale.static RenderNamingStrategytoUpper()Creates a mappingRenderNamingStrategythat convertsColumnandTablenames to upper case using the defaultLocale.static RenderNamingStrategyCreates a mappingRenderNamingStrategythat convertsColumnandTablenames to upper case using the givenLocale.
-
Method Details
-
asIs
Creates a as-isRenderNamingStrategythat preservesColumnandTablenames as they were expressed during their declaration.- Returns:
- as-is
RenderNamingStrategy.
-
mapWith
- Parameters:
mappingFunction- the mappingFunction, must not be null.- Returns:
- the mapping
RenderNamingStrategy.
-
toUpper
Creates a mappingRenderNamingStrategythat convertsColumnandTablenames to upper case using the defaultLocale.- Returns:
- upper-casing
RenderNamingStrategy. - See Also:
-
toUpper
Creates a mappingRenderNamingStrategythat convertsColumnandTablenames to upper case using the givenLocale.- Parameters:
locale- the locale to use.- Returns:
- upper-casing
RenderNamingStrategy. - See Also:
-
toLower
Creates a mappingRenderNamingStrategythat convertsColumnandTablenames to lower case using the defaultLocale.- Returns:
- lower-casing
RenderNamingStrategy. - See Also:
-
toLower
Creates a mappingRenderNamingStrategythat convertsColumnandTablenames to lower case using the givenLocale.- Parameters:
locale- the locale to use.- Returns:
- lower-casing
RenderNamingStrategy. - See Also:
-