Package com.configloader

Examples of com.configloader.ConfigLoader


  /**
   * Конструктор. <br>
   * Constructor.
   */
  public Connection() {
    ConfigLoader confGlobal = new ConfigLoader("org.apache.xerces.parsers.SAXParser");
    confGlobal.LoadFromFile("xml/confGlobal.xml");

    String instanceName = confGlobal.getTagValue("Root.SqlServer.InstanceName");
    instanceName = (instanceName != null && !instanceName.isEmpty())
        ? ("\\" + instanceName) : "";
   
    // Строка подключение к SQL Server     
    connectionUrl = "jdbc:sqlserver://"
      + confGlobal.getTagValue("Root.SqlServer.ServerName")
      + instanceName
      + ":"
      + confGlobal.getTagValue("Root.SqlServer.PortNumber")
      + ";"     
      + "databaseName="
      + confGlobal.getTagValue("Root.SqlServer.DBName")
      + ";"
      + "user="
      + confGlobal.getTagValue("Root.SqlServer.User")
      + ";"
      + "password="
      + confGlobal.getTagValue("Root.SqlServer.Password")
//      + textEncryptor.decrypt(
//          confGlobal.getTagValue("Root.SqlServer.Password"))
      + ";";     
    try {
      Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
View Full Code Here

TOP

Related Classes of com.configloader.ConfigLoader

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.