org.hibernatespatial.pojo
Class SimpleNamingStrategy

java.lang.Object
  extended by org.hibernatespatial.pojo.SimpleNamingStrategy
All Implemented Interfaces:
NamingStrategy

public class SimpleNamingStrategy
extends Object
implements NamingStrategy

This is the default implementation for a NamingStrategy.

Author:
Karel Maesen, Geovise BVBA (http://www.geovise.com/)

Constructor Summary
SimpleNamingStrategy()
           
 
Method Summary
 String createClassName(String base)
          Create a valid name for a Java class based on the specified input name.
 String createGetterName(String fieldName)
          Create a valid name for a getter for the property
 String createPropertyName(String base)
          Create a valid name for a member variable based on the specified input name.
 String createSetterName(String fieldName)
          Create a valid name for a setter for the property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleNamingStrategy

public SimpleNamingStrategy()
Method Detail

createClassName

public String createClassName(String base)
Description copied from interface: NamingStrategy
Create a valid name for a Java class based on the specified input name.

Specified by:
createClassName in interface NamingStrategy
Parameters:
base - the input name.
Returns:
a valid java identifier for a class.

createGetterName

public String createGetterName(String fieldName)
Description copied from interface: NamingStrategy
Create a valid name for a getter for the property

Specified by:
createGetterName in interface NamingStrategy
Returns:
valid java identifier for a property getter

createPropertyName

public String createPropertyName(String base)
Description copied from interface: NamingStrategy
Create a valid name for a member variable based on the specified input name.

Specified by:
createPropertyName in interface NamingStrategy
Parameters:
base - the input name.
Returns:
a valid java identifier for a member variable.

createSetterName

public String createSetterName(String fieldName)
Description copied from interface: NamingStrategy
Create a valid name for a setter for the property

Specified by:
createSetterName in interface NamingStrategy
Returns:
valid java identifier for a property setter


Copyright © 2011 hibernatespatial.org. All Rights Reserved.