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 RenderNamingStrategy
asIs()
Creates a as-isRenderNamingStrategy
that preservesColumn
andTable
names as they were expressed during their declaration.static RenderNamingStrategy
static RenderNamingStrategy
toLower()
Creates a mappingRenderNamingStrategy
that convertsColumn
andTable
names to lower case using the defaultLocale
.static RenderNamingStrategy
Creates a mappingRenderNamingStrategy
that convertsColumn
andTable
names to lower case using the givenLocale
.static RenderNamingStrategy
toUpper()
Creates a mappingRenderNamingStrategy
that convertsColumn
andTable
names to upper case using the defaultLocale
.static RenderNamingStrategy
Creates a mappingRenderNamingStrategy
that convertsColumn
andTable
names to upper case using the givenLocale
.
-
Method Details
-
asIs
Creates a as-isRenderNamingStrategy
that preservesColumn
andTable
names 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 mappingRenderNamingStrategy
that convertsColumn
andTable
names to upper case using the defaultLocale
.- Returns:
- upper-casing
RenderNamingStrategy
. - See Also:
-
toUpper
Creates a mappingRenderNamingStrategy
that convertsColumn
andTable
names to upper case using the givenLocale
.- Parameters:
locale
- the locale to use.- Returns:
- upper-casing
RenderNamingStrategy
. - See Also:
-
toLower
Creates a mappingRenderNamingStrategy
that convertsColumn
andTable
names to lower case using the defaultLocale
.- Returns:
- lower-casing
RenderNamingStrategy
. - See Also:
-
toLower
Creates a mappingRenderNamingStrategy
that convertsColumn
andTable
names to lower case using the givenLocale
.- Parameters:
locale
- the locale to use.- Returns:
- lower-casing
RenderNamingStrategy
. - See Also:
-