Spring Data Couchbase

org.springframework.data.couchbase.core.mapping
Class CamelCaseAbbreviatingFieldNamingStrategy

java.lang.Object
  extended by org.springframework.data.couchbase.core.mapping.CamelCaseSplittingFieldNamingStrategy
      extended by 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

Constructor Summary
CamelCaseAbbreviatingFieldNamingStrategy()
           
 
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 org.springframework.data.couchbase.core.mapping.CamelCaseSplittingFieldNamingStrategy
getFieldName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelCaseAbbreviatingFieldNamingStrategy

public CamelCaseAbbreviatingFieldNamingStrategy()
Method Detail

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.

Spring Data Couchbase

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.