private static <T>void readTableField(DatabaseTableConfig<T> config,String field,String value){
  if (field.equals(FIELD_NAME_DATA_CLASS)) {
    try {
      @SuppressWarnings("unchecked") Class<T> clazz=(Class<T>)Class.forName(value);
      config.setDataClass(clazz);
    }
 catch (    ClassNotFoundException e) {
      throw new IllegalArgumentException("Unknown class specified for dataClass: " + value);
    }
  }
 else   if (field.equals(FIELD_NAME_TABLE_NAME)) {
    config.setTableName(value);
  }
}

private static < T > void readTableField ( DatabaseTableConfig < T > config , String field , String value ) { if ( field . equals ( FIELD_NAME_DATA_CLASS ) ) { try { @ SuppressWarnings ( "unchecked" ) Class < T > clazz = ( Class < T > ) Class . forName ( value ) ; config . setDataClass ( clazz ) ; } catch ( ClassNotFoundException e ) { throw new IllegalArgumentException ( "Unknown class specified for dataClass: " + value ) ; } } else if ( field . equals ( FIELD_NAME_TABLE_NAME ) ) { config . setTableName ( value ) ; } }
read a field into our table configuration for field = value line .
