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();