Package org.apache.ctakes.jdl.data.base

Examples of org.apache.ctakes.jdl.data.base.JdlConnection


  private static String L = "-" + AppMain.OPT_XDL_LOAD;

  @BeforeClass
  public static void initClass() throws JAXBException, InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException, IOException {
    jdbc = ObjectFactoryUtil.getJdbcTypeBySrcXml(CX);
    jdlConnection = new JdlConnection(jdbc);
  }
View Full Code Here


  private static String L2X = FileUtil.getFile(Resources.LOAD2X).toString();

  @BeforeClass
  public static void initClass() throws JAXBException, InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException, IOException {
    jdbc = ObjectFactoryUtil.getJdbcTypeBySrcXml(CX);
    jdlConnection = new JdlConnection(jdbc);
  }
View Full Code Here

    Validation validation = new Validation(SchemaUtil.urlToSchema(XSD),
        srcConn);
    if (validation.succeed()) {
      validation.setDocument(srcLoad);
      if (validation.succeed()) {
        JdlConnection jdlConnection = null;
        try {
          JdbcType jdbc = ObjectFactoryUtil
              .getJdbcTypeBySrcXml(srcConn);
          LoadType load = ObjectFactoryUtil
              .getLoadTypeBySrcXml(srcLoad);
          jdlConnection = new JdlConnection(jdbc);
          CsvLoadType csv = load.getCsv();
          if (csv != null) {
            try {
              CsvLoader csvLoader = new CsvLoader(csv, new File(
                  srcData));
              csvLoader.dataInsert(jdlConnection);
            } catch (FileNotFoundException e) {
              throw new RuntimeException(e);
            }
          }
          XmlLoadType xml = load.getXml();
          if (xml != null) {
            XmlLoader xPathParsing = new XmlLoader(xml,
                DomUtil.srcToDocument(srcData));
            xPathParsing.dataInsert(jdlConnection);
          }
        } catch (JAXBException e) {
          e.printStackTrace();
        } finally {
          try {
            if (jdlConnection != null)
              jdlConnection.closeConnection();
          } catch (SQLException e) {
            log.error("closing connection", e);
          }
        }
      } else {
View Full Code Here

  private static final String L2X = FileUtil.getFile(Resources.LOAD2X).toString();
  private static final String SQL = "insert into tab_test (id,name,thekey,thevalue,code,descr) values (?,?,?,?,?,?)";

  @BeforeClass
  public static void initClass() throws JAXBException, FileNotFoundException {
    JdlConnection jdlConnection = new JdlConnection(ObjectFactoryUtil.getJdbcTypeBySrcXml(CX));
    jdlConnection.getClass();
  }
View Full Code Here

  private static final String L2C = FileUtil.getFile(Resources.LOAD2C).toString();
  private static final String SQL = "insert into tab_test (id,name,thekey,thevalue,code,descr) values (?,?,?,?,?,?)";

  @BeforeClass
  public static void initClass() throws JAXBException, FileNotFoundException {
    JdlConnection jdlConnection = new JdlConnection(ObjectFactoryUtil.getJdbcTypeBySrcXml(CX));
    jdlConnection.getClass();
  }
View Full Code Here

  private static final String CX = FileUtil.getFile(Resources.CONN_X).toString();

  @BeforeClass
  public static void initClass() throws JAXBException, InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
    jdbc = ObjectFactoryUtil.getJdbcTypeBySrcXml(CX);
    jdlConnection = new JdlConnection(jdbc);
  }
View Full Code Here

TOP

Related Classes of org.apache.ctakes.jdl.data.base.JdlConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.