protected void writeColumnDefaultValueStmt(Table table,Column column,StringBuilder ddl){
  Object parsedDefault=column.getParsedDefaultValue();
  if (parsedDefault != null) {
    if (!databaseInfo.isDefaultValuesForLongTypesSupported() && ((column.getMappedTypeCode() == Types.LONGVARBINARY) || (column.getMappedTypeCode() == Types.LONGVARCHAR))) {
      throw new ModelException("The platform does not support default values for LONGVARCHAR or LONGVARBINARY columns");
    }
    if (isValidDefaultValue(column.getDefaultValue(),column.getMappedTypeCode())) {
      ddl.append(" DEFAULT ");
      writeColumnDefaultValue(table,column,ddl);
    }
  }
 else   if (databaseInfo.isDefaultValueUsedForIdentitySpec() && column.isAutoIncrement()) {
    ddl.append(" DEFAULT ");
    writeColumnDefaultValue(table,column,ddl);
  }
 else   if (!StringUtils.isBlank(column.getDefaultValue())) {
    ddl.append(" DEFAULT ");
    writeColumnDefaultValue(table,column,ddl);
  }
}

protected void writeColumnDefaultValueStmt ( Table table , Column column , StringBuilder ddl ) { Object parsedDefault = column . getParsedDefaultValue ( ) ; if ( parsedDefault != null ) { if ( ! databaseInfo . isDefaultValuesForLongTypesSupported ( ) && ( ( column . getMappedTypeCode ( ) == Types . LONGVARBINARY ) || ( column . getMappedTypeCode ( ) == Types . LONGVARCHAR ) ) ) { throw new ModelException ( "The platform does not support default values for LONGVARCHAR or LONGVARBINARY columns" ) ; } if ( isValidDefaultValue ( column . getDefaultValue ( ) , column . getMappedTypeCode ( ) ) ) { ddl . append ( " DEFAULT " ) ; writeColumnDefaultValue ( table , column , ddl ) ; } } else if ( databaseInfo . isDefaultValueUsedForIdentitySpec ( ) && column . isAutoIncrement ( ) ) { ddl . append ( " DEFAULT " ) ; writeColumnDefaultValue ( table , column , ddl ) ; } else if ( ! StringUtils . isBlank ( column . getDefaultValue ( ) ) ) { ddl . append ( " DEFAULT " ) ; writeColumnDefaultValue ( table , column , ddl ) ; } }
prints the default value stmt part for the column .
