static Field getClassFieldByName ( Class < ? > clazz , String fieldName ) { try { return clazz . getDeclaredField ( fieldName ) ; } catch ( SecurityException e ) { throw new DynamoDBMappingException ( "Denied access to the [" + fieldName + "] field in class [" + clazz + "]." , e ) ; } catch ( NoSuchFieldException e ) { return null ; } }
Returns the Field object for the specified field name declared in the specified class . Returns null if no such field can be found .