|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.ao.schema.AbstractFieldNameConverter
public abstract class AbstractFieldNameConverter
An abstract implementation of FieldNameConverter
which handles common
tasks for the name converter (i.e. relations annotations, accessor/mutator
annotations, etc). For most tasks, custom field name converters should extend
this class, rather than directly implementing FieldNameConverter
.
Constructor Summary | |
---|---|
protected |
AbstractFieldNameConverter()
Default constructor implementing the default behaviour for active objects. |
protected |
AbstractFieldNameConverter(java.util.List<FieldNameResolver> fieldNameResolvers)
|
Method Summary | |
---|---|
abstract java.lang.String |
convertName(java.lang.String name)
|
java.lang.String |
getName(java.lang.reflect.Method method)
Handles operations which should be common to all field name converters such as overriding of the generated field name through annotations, etc. |
java.lang.String |
getPolyTypeName(java.lang.reflect.Method method)
Documentation on the getName(Method) method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractFieldNameConverter()
protected AbstractFieldNameConverter(java.util.List<FieldNameResolver> fieldNameResolvers)
Method Detail |
---|
public final java.lang.String getName(java.lang.reflect.Method method)
Handles operations which should be common to all field name converters
such as overriding of the generated field name through annotations, etc.
This method also handles the converting through the Java Bean method
prefix convention (get/set/is), allowing the implementing class to only
concern itself with converting one String
(from the method
name) into another.
This method delegates the actual conversion logic to the
convertName(String)
method. There is rarely a need
for subclasses to override this method.
getName
in interface FieldNameConverter
method
- The method for which a field name must be generated.
FieldNameConverter.getName(Method)
public final java.lang.String getPolyTypeName(java.lang.reflect.Method method)
getName(Method)
method.
getPolyTypeName
in interface FieldNameConverter
method
- The method for which a corresponding field name must be
generated.
FieldNameConverter.getPolyTypeName(Method)
public abstract java.lang.String convertName(java.lang.String name)
convertName
in interface FieldNameProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |