net.java.ao.schema
Class SetterFieldNameResolver
java.lang.Object
net.java.ao.schema.SetterFieldNameResolver
- All Implemented Interfaces:
- FieldNameResolver
public final class SetterFieldNameResolver
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetterFieldNameResolver
public SetterFieldNameResolver()
accept
public boolean accept(Method method)
- Description copied from interface:
FieldNameResolver
- Tells whether this field name resolver will be able to resolve a name from this method.
- Specified by:
accept in interface FieldNameResolver
- Parameters:
method - the method to figure out the field name for
- Returns:
true if FieldNameResolver.resolve(Method) will actually resolve the field name given the same method
argument
resolve
public String resolve(Method method)
- Description copied from interface:
FieldNameResolver
- Resolves the field name for the method
- Specified by:
resolve in interface FieldNameResolver
- Parameters:
method - the method to resolve the field name for.
- Returns:
- the resolved field name.
null is valid if no field name should be associated with this method.
transform
public final boolean transform()
- Description copied from interface:
FieldNameResolver
- Tells whether the resolved method name from
FieldNameResolver.resolve(Method) allows for further transformations.
- Specified by:
transform in interface FieldNameResolver
- Returns:
true if further transformations are allowed
Copyright © 2007-2011. All Rights Reserved.