Package com.knowgate.workareas

Examples of com.knowgate.workareas.FileSystemWorkArea


    else
      sProfile = ((DBBind) oConn.getPool().getDatabaseBinding()).getProfileName();

    if (DebugFile.trace) DebugFile.writeln("profile = "+sProfile);

    FileSystemWorkArea oFileSys = new FileSystemWorkArea(Environment.getProfile(sProfile));
    oFileSys.mkstorpath(iDom.intValue(), getString(DB.gu_workarea), sCatPath);

    String sStorage = Environment.getProfilePath(sProfile, "storage");
    String sFileProtocol = Environment.getProfileVar(sProfile, "fileprotocol", "file://");
    String sFileServer = Environment.getProfileVar(sProfile, "fileserver", "localhost");
View Full Code Here


    Object[] oPKOr = new Object[] { getString(DB.gu_contact) };
  Object[] oPKTr = new Object[] { Gadgets.generateUUID() } ;
  String sContactXml = null;
  String sCompanyXml = null;
 
  FileSystemWorkArea oFsw = new FileSystemWorkArea(((DBBind)oConn.getPool().getDatabaseBinding()).getProperties());
    try {
        switch (oConn.getDataBaseProduct()) {
          case com.knowgate.jdc.JDCConnection.DBMS_MSSQL:
            sContactXml = oFsw.readstorfilestr("datacopy/mssql/contact_clon.xml", "UTF-8");
            sCompanyXml = oFsw.readstorfilestr("datacopy/mssql/company_clon.xml", "UTF-8");
            break;
          case com.knowgate.jdc.JDCConnection.DBMS_MYSQL:
            sContactXml = oFsw.readstorfilestr("datacopy//mysql/contact_clon.xml", "UTF-8");
            sCompanyXml = oFsw.readstorfilestr("datacopy//mysql/company_clon.xml", "UTF-8");
            break;
          case com.knowgate.jdc.JDCConnection.DBMS_ORACLE:
            sContactXml = oFsw.readstorfilestr("datacopy/oracle/contact_clon.xml", "UTF-8");
            sCompanyXml = oFsw.readstorfilestr("datacopy/oracle/company_clon.xml", "UTF-8");
            break;
          case com.knowgate.jdc.JDCConnection.DBMS_POSTGRESQL:
            sContactXml = oFsw.readstorfilestr("datacopy/postgresql/contact_clon.xml", "UTF-8");
            sCompanyXml = oFsw.readstorfilestr("datacopy/postgresql/company_clon.xml", "UTF-8");
            break;
          default:
            if (DebugFile.trace) {
              DebugFile.writeln("Unsupported database "+oConn.getMetaData().getDatabaseProductName());
              DebugFile.decIdent();
View Full Code Here

    else
      sProfile = ((DBBind) oConn.getPool().getDatabaseBinding()).getProfileName();

    if (DebugFile.trace) DebugFile.writeln("profile = "+sProfile);

    FileSystemWorkArea oFileSys = new FileSystemWorkArea(Environment.getProfile(sProfile));
    oFileSys.mkstorpath(iDom.intValue(), getString(DB.gu_workarea), sCatPath);

    String sStorage = Environment.getProfilePath(sProfile, "storage");
    String sFileProtocol = Environment.getProfileVar(sProfile, "fileprotocol", "file://");
    String sFileServer = Environment.getProfileVar(sProfile, "fileserver", "localhost");
View Full Code Here

        }
        throw new SQLException ("Unsupported database");
      }
  }
  else {
    FileSystemWorkArea oFsw = new FileSystemWorkArea(((DBBind)oJDC.getPool().getDatabaseBinding()).getProperties());
      try {
        switch (oJDC.getDataBaseProduct()) {
          case JDCConnection.DBMS_MSSQL:
            sContactXml = oFsw.readstorfilestr("datacopy/mssql/contact_clon.xml", sEncoding);
            sCompanyXml = oFsw.readstorfilestr("datacopy/mssql/company_clon.xml", sEncoding);
            break;
          case JDCConnection.DBMS_MYSQL:
            sContactXml = oFsw.readstorfilestr("datacopy/mysql/contact_clon.xml", sEncoding);
            sCompanyXml = oFsw.readstorfilestr("datacopy/mysql/company_clon.xml", sEncoding);
            break;
          case JDCConnection.DBMS_ORACLE:
            sContactXml = oFsw.readstorfilestr("datacopy/oracle/contact_clon.xml", sEncoding);
            sCompanyXml = oFsw.readstorfilestr("datacopy/oracle/company_clon.xml", sEncoding);
            break;
          case JDCConnection.DBMS_POSTGRESQL:
            sContactXml = oFsw.readstorfilestr("datacopy/postgresql/contact_clon.xml", sEncoding);
            sCompanyXml = oFsw.readstorfilestr("datacopy/postgresql/company_clon.xml", sEncoding);
            break;
          default:
            if (DebugFile.trace) {
              DebugFile.writeln("Unsupported database "+oJDC.getMetaData().getDatabaseProductName());
              DebugFile.decIdent();
View Full Code Here

TOP

Related Classes of com.knowgate.workareas.FileSystemWorkArea

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.