package org.pdxfinder.dataloaders.updog;

import com.ibm.icu.impl.LocaleDisplayNamesImpl;
import org.hibernate.sql.Template;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

public class Updog {

    private String provider;

    public Updog(String provider) {
        this.provider = provider;
    }

    private static final Logger log = LoggerFactory.getLogger(Updog.class);

    private Map<String, PdxDataTable> pdxDataTables;
    private Map<String, Object> domainObjects;


    private void readPdxDataTable() {


        PdxDataTable pdxDataTables = new PdxDataTable(provider);
        pdxDataTables.readData();
    }

    public boolean validateTemplate(){

        //instantiate a validator class
        TemplateValidator templateValidator = new TemplateValidator();
        return true;
    }


    public void load(){

        //create domain objects database nodes
        DomainObjectCreator doc = new DomainObjectCreator();
        //save db


    }


}

@@ -39,91 +39,8 @@
 g;%0A%0A
-import com.ibm.icu.impl.LocaleDisplayNamesImpl;%0Aimport org.hibernate.sql.Template;%0A
 impo
@@ -114,16 +114,38 @@
 til.Map;
+%0Aimport java.util.Set;
 %0A%0Apublic
@@ -425,15 +425,20 @@
 ng, 
+Set%3C
 Object%3E
+%3E
  dom
@@ -903,24 +903,37 @@
 jectCreator(
+pdxDataTables
 );%0A        /

Update skeleton for new updog