org.ektorp.impl
Class NameConventions

java.lang.Object
  extended by org.ektorp.impl.NameConventions

public class NameConventions
extends Object


Method Summary
static String backReferenceViewName(String fieldName)
          The name of the view supporting a @DocumentReferences collection.
static String capitalize(String name)
          Returns a String which capitalizes the first letter of the string.
static String designDocName(Class<?> klass)
          The name for design document belonging to a specific type.
static String designDocName(String docName)
          The name for a design document derived from a string.
static String getterName(String property)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

backReferenceViewName

public static String backReferenceViewName(String fieldName)
The name of the view supporting a @DocumentReferences collection.

Parameters:
fieldName -
Returns:

designDocName

public static String designDocName(Class<?> klass)
The name for design document belonging to a specific type.

Parameters:
klass -
Returns:

designDocName

public static String designDocName(String docName)
The name for a design document derived from a string.

Parameters:
docName -
Returns:

getterName

public static String getterName(String property)

capitalize

public static String capitalize(String name)
Returns a String which capitalizes the first letter of the string.



Copyright © 2011. All Rights Reserved.