Package net.java.ao.schema
Interface FieldNameResolver
- All Known Implementing Classes:
AccessorFieldNameResolver,GetterFieldNameResolver,IgnoredFieldNameResolver,IsAFieldNameResolver,MutatorFieldNameResolver,NullFieldNameResolver,PrimaryKeyFieldNameResolver,RelationalFieldNameResolver,SetterFieldNameResolver
public interface FieldNameResolver
An interface to resolve field names.
Implementation should not transform (upper case, under score, camel case, etc...) the resolved name.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTells whether this field name resolver will be able to resolve a name from this method.Resolves the field name for the methodbooleanTells whether the resolved method name fromresolve(Method)allows for further transformations.
-
Method Details
-
accept
Tells whether this field name resolver will be able to resolve a name from this method.- Parameters:
method- the method to figure out the field name for- Returns:
trueifresolve(Method)will actually resolve the field name given the same method argument
-
resolve
Resolves the field name for the method- Parameters:
method- the method to resolve the field name for.- Returns:
- the resolved field name.
nullis valid if no field name should be associated with this method. - Throws:
IllegalStateException- if this method is called whileaccept(Method)returnsfalse
-
transform
boolean transform()Tells whether the resolved method name fromresolve(Method)allows for further transformations.- Returns:
trueif further transformations are allowed
-