Package dev.morphia.mapping
Class NamingStrategy
- java.lang.Object
-
- dev.morphia.mapping.NamingStrategy
-
public abstract class NamingStrategy extends Object
Defines a naming strategy for use, e.g., in naming collections and fields- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description NamingStrategy()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Stringapply(String value)Applies this naming strategy to the given valuestatic NamingStrategycamelCase()Defines a naming strategy that returns camel case of the value passedstatic NamingStrategyidentity()Defines a naming strategy that returns the value passedstatic NamingStrategykebabCase()Defines a naming strategy that returns kebab case of the value passedstatic NamingStrategylowerCase()Defines a naming strategy that returns the lowercase form of the value passedstatic NamingStrategysnakeCase()Defines a naming strategy that returns snake case of the value passed
-
-
-
Method Detail
-
identity
public static NamingStrategy identity()
Defines a naming strategy that returns the value passed- Returns:
- the unchanged value.
-
lowerCase
public static NamingStrategy lowerCase()
Defines a naming strategy that returns the lowercase form of the value passed- Returns:
- the updated value.
-
snakeCase
public static NamingStrategy snakeCase()
Defines a naming strategy that returns snake case of the value passed- Returns:
- the new value.
- See Also:
- Snake case
-
camelCase
public static NamingStrategy camelCase()
Defines a naming strategy that returns camel case of the value passed- Returns:
- the new value.
- See Also:
- Camel case
-
kebabCase
public static NamingStrategy kebabCase()
Defines a naming strategy that returns kebab case of the value passed- Returns:
- the new value.
- See Also:
- Kebab case
-
-