net.java.ao.schema
Class RelationalFieldNameResolver

java.lang.Object
  extended by net.java.ao.schema.RelationalFieldNameResolver
All Implemented Interfaces:
FieldNameResolver

public final class RelationalFieldNameResolver
extends Object


Constructor Summary
RelationalFieldNameResolver()
           
 
Method Summary
 boolean accept(Method method)
          Tells whether this field name resolver will be able to resolve a name from this method.
 String resolve(Method method)
          Resolves the field name for the method
 boolean transform()
          Tells whether the resolved method name from FieldNameResolver.resolve(Method) allows for further transformations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationalFieldNameResolver

public RelationalFieldNameResolver()
Method Detail

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-2013. All Rights Reserved.