public class CamelCaseSplittingFieldNamingStrategy extends Object implements FieldNamingStrategy
FieldNamingStrategy
that splits up camel-case property names and reconcatenates them using a
configured delimiter. Individual parts of the name can be manipulated using preparePart(String)
.Constructor and Description |
---|
CamelCaseSplittingFieldNamingStrategy(String delimiter)
Creates a new
CamelCaseSplittingFieldNamingStrategy . |
Modifier and Type | Method and Description |
---|---|
String |
getFieldName(PersistentProperty<?> property)
Returns the field name to be used for the given
MongoPersistentProperty . |
protected String |
preparePart(String part)
Callback to prepare the uncapitalized part obtained from the split up of the camel case source.
|
public CamelCaseSplittingFieldNamingStrategy(String delimiter)
CamelCaseSplittingFieldNamingStrategy
.delimiter
- must not be null.public String getFieldName(PersistentProperty<?> property)
FieldNamingStrategy
MongoPersistentProperty
.getFieldName
in interface FieldNamingStrategy
property
- must not be null or empty;Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.