public void insertRow(DataSet dataSet) { ResolverParams[] rpInsertArr = new ResolverParams[1]; String[] csParams; // Hashtable htOverride; DataRow insertedRow = null; if (dbAccessListeners != null) { insertedRow = new DataRow(dataSet); } int rpCount = 0; // T_6467063785: csParams = new String[] {"ID", "NAME", "COMPANY_NAME"}; rpInsertArr[rpCount++] = new ResolverParams("T_6467063785", "lsp_T_6467063785_INotNull_v2", csParams, null); DbGen.resolveInsert(dataSet, this.getDatabase(), rpInsertArr, insertedRow); fireRowInserted(new DbAccessEvent(this, insertedRow)); }
public void updateRow(DataSet dataSet, ReadWriteRow oldRow) { ResolverParams[] rpUpdateArr = new ResolverParams[1]; ResolverParams[] rpSelectArr = new ResolverParams[1]; String[] csParams; // Hashtable htOverride; int rpCount = 0; // T_6467063785: csParams = new String[] {"ID", "NAME", "COMPANY_NAME", "Orig_ID", "Orig_NAME", "Orig_COMPANY_NAME"}; rpUpdateArr[rpCount] = new ResolverParams("T_6467063785", "lsp_T_6467063785_UInsDel_v2", csParams, null); csParams = new String[] {"ID"}; rpSelectArr[rpCount++] = new ResolverParams("T_6467063785", "lsp_T_6467063785_SRow_v2", csParams, null); DbGen.resolveUpdate(dataSet, oldRow, this.getDatabase(), rpUpdateArr, rpSelectArr); }