private void putFieldsToDefaultValue(DataSupport baseObj,ContentValues values){
  String fieldName=null;
  try {
    DataSupport emptyModel=getEmptyModel(baseObj);
    Class<?> emptyModelClass=emptyModel.getClass();
    for (    String name : baseObj.getFieldsToSetToDefault()) {
      if (!isIdColumn(name)) {
        fieldName=name;
        Field field=emptyModelClass.getDeclaredField(fieldName);
        putContentValues(emptyModel,field,values);
      }
    }
  }
 catch (  NoSuchFieldException e) {
    throw new DataSupportException(DataSupportException.noSuchFieldExceptioin(baseObj.getClassName(),fieldName));
  }
catch (  Exception e) {
    throw new DataSupportException(e.getMessage());
  }
}

private void putFieldsToDefaultValue ( DataSupport baseObj , ContentValues values ) { String fieldName = null ; try { DataSupport emptyModel = getEmptyModel ( baseObj ) ; Class < ? > emptyModelClass = emptyModel . getClass ( ) ; for ( String name : baseObj . getFieldsToSetToDefault ( ) ) { if ( ! isIdColumn ( name ) ) { fieldName = name ; Field field = emptyModelClass . getDeclaredField ( fieldName ) ; putContentValues ( emptyModel , field , values ) ; } } } catch ( NoSuchFieldException e ) { throw new DataSupportException ( DataSupportException . noSuchFieldExceptioin ( baseObj . getClassName ( ) , fieldName ) ) ; } catch ( Exception e ) { throw new DataSupportException ( e . getMessage ( ) ) ; } }
iterate all the fields that need to set to default value . if the field is id , ignore it . or put the default value of field into contentvalues .
