private void createSchemaColumnEntities(List<SchemaColumn> schemaColumns,boolean isPartitionList,Collection<SchemaColumnEntity> schemaColumnEntityList,Map<String,SchemaColumnEntity> schemaColumnEntityMap,BusinessObjectFormatEntity businessObjectFormatEntity){
  if (!CollectionUtils.isEmpty(schemaColumns)) {
    int position=1;
    for (    SchemaColumn schemaColumn : schemaColumns) {
      SchemaColumnEntity schemaColumnEntity=schemaColumnEntityMap.get(schemaColumn.getName());
      if (schemaColumnEntity == null) {
        schemaColumnEntity=createSchemaColumnEntity(schemaColumn,businessObjectFormatEntity);
        schemaColumnEntityList.add(schemaColumnEntity);
        schemaColumnEntityMap.put(schemaColumn.getName(),schemaColumnEntity);
      }
      if (isPartitionList) {
        schemaColumnEntity.setPartitionLevel(position++);
      }
 else {
        schemaColumnEntity.setPosition(position++);
      }
    }
  }
}

private void createSchemaColumnEntities ( List < SchemaColumn > schemaColumns , boolean isPartitionList , Collection < SchemaColumnEntity > schemaColumnEntityList , Map < String , SchemaColumnEntity > schemaColumnEntityMap , BusinessObjectFormatEntity businessObjectFormatEntity ) { if ( ! CollectionUtils . isEmpty ( schemaColumns ) ) { int position = 1 ; for ( SchemaColumn schemaColumn : schemaColumns ) { SchemaColumnEntity schemaColumnEntity = schemaColumnEntityMap . get ( schemaColumn . getName ( ) ) ; if ( schemaColumnEntity == null ) { schemaColumnEntity = createSchemaColumnEntity ( schemaColumn , businessObjectFormatEntity ) ; schemaColumnEntityList . add ( schemaColumnEntity ) ; schemaColumnEntityMap . put ( schemaColumn . getName ( ) , schemaColumnEntity ) ; } if ( isPartitionList ) { schemaColumnEntity . setPartitionLevel ( position ++ ) ; } else { schemaColumnEntity . setPosition ( position ++ ) ; } } } }
creates the schema column entities .
