|
Spring Data Couchbase | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.couchbase.core.mapping.CamelCaseSplittingFieldNamingStrategy
public class CamelCaseSplittingFieldNamingStrategy
Configurable 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 Summary | |
|---|---|
CamelCaseSplittingFieldNamingStrategy(String delimiter)
Creates a new CamelCaseSplittingFieldNamingStrategy. |
|
| Method Summary | |
|---|---|
String |
getFieldName(CouchbasePersistentProperty property)
Returns the field name to be used for the given CouchbasePersistentProperty. |
protected String |
preparePart(String part)
Callback to prepare the uncapitalized part obtained from the split up of the camel case source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CamelCaseSplittingFieldNamingStrategy(String delimiter)
CamelCaseSplittingFieldNamingStrategy.
delimiter - must not be null.| Method Detail |
|---|
public String getFieldName(CouchbasePersistentProperty property)
FieldNamingStrategyCouchbasePersistentProperty.
getFieldName in interface FieldNamingStrategyproperty - must not be null or empty.
protected String preparePart(String part)
part - the part.
|
Spring Data Couchbase | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||