private void setFields ( Map < String , FieldType > map , MapRow row , FieldContainer container ) { if ( row != null ) { for ( Map . Entry < String , FieldType > entry : map . entrySet ( ) ) { container . set ( entry . getValue ( ) , row . getObject ( entry . getKey ( ) ) ) ; } } }
Set the value of one or more fields based on the contents of a database row .