org.springframework.data.couchbase.core.mapping
Class CamelCaseAbbreviatingFieldNamingStrategy
java.lang.Object
org.springframework.data.couchbase.core.mapping.CamelCaseSplittingFieldNamingStrategy
org.springframework.data.couchbase.core.mapping.CamelCaseAbbreviatingFieldNamingStrategy
- All Implemented Interfaces:
- FieldNamingStrategy
public class CamelCaseAbbreviatingFieldNamingStrategy
- extends CamelCaseSplittingFieldNamingStrategy
FieldNamingStrategy that abbreviates field names by using the very first letter of the camel case parts of
the CouchbasePersistentProperty's name.
- Since:
- 1.1
- Author:
- Michael Nitschinger, Oliver Gierke
|
Method Summary |
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 |
CamelCaseAbbreviatingFieldNamingStrategy
public CamelCaseAbbreviatingFieldNamingStrategy()
preparePart
protected String preparePart(String part)
- Description copied from class:
CamelCaseSplittingFieldNamingStrategy
- Callback to prepare the uncapitalized part obtained from the split up of the camel case source. Default
implementation returns the part as is.
- Overrides:
preparePart in class CamelCaseSplittingFieldNamingStrategy
- Parameters:
part - the part.
- Returns:
- the prepared part.
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.