private List<ColumnModel> findColumnsToAdd(){
  List<ColumnModel> columnsToAdd=new ArrayList<ColumnModel>();
  for (  ColumnModel columnModel : mTableModel.getColumnModels()) {
    String columnName=columnModel.getColumnName();
    if (!mTableModelDB.containsColumn(columnName)) {
      columnsToAdd.add(columnModel);
    }
  }
  return columnsToAdd;
}

private List < ColumnModel > findColumnsToAdd ( ) { List < ColumnModel > columnsToAdd = new ArrayList < ColumnModel > ( ) ; for ( ColumnModel columnModel : mTableModel . getColumnModels ( ) ) { String columnName = columnModel . getColumnName ( ) ; if ( ! mTableModelDB . containsColumn ( columnName ) ) { columnsToAdd . add ( columnModel ) ; } } return columnsToAdd ; }
it will find the difference between class model and table model . if there ' s a field in the class without a corresponding column in the table , this field is a new added column . this method find all new added columns .
