net.java.ao.schema
Class CamelCaseFieldNameConverter
java.lang.Object
net.java.ao.schema.AbstractFieldNameConverter
net.java.ao.schema.CamelCaseFieldNameConverter
- All Implemented Interfaces:
- FieldNameConverter, FieldNameProcessor
public final class CamelCaseFieldNameConverter
- extends AbstractFieldNameConverter
Imposes a standard camelCase convention upon field names. This will
convert field in the following way:
Method Name |
Returns Entity? |
Field Name |
getFirstName |
false |
firstName |
setLastName |
false |
lastName |
getCompany |
true |
companyID |
isCool |
false |
cool |
This is the default field name converter for ActiveObjects.
- Author:
- Daniel Spiewak
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CamelCaseFieldNameConverter
public CamelCaseFieldNameConverter()
CamelCaseFieldNameConverter
public CamelCaseFieldNameConverter(List<FieldNameResolver> fieldNameResolvers)
convertName
public String convertName(String name)
- Specified by:
convertName
in interface FieldNameProcessor
- Specified by:
convertName
in class AbstractFieldNameConverter
Copyright © 2007-2011. All Rights Reserved.