[ 1854455 ] PO.initPO doesn't have transaction support

This commit is contained in:
Heng Sin Low 2007-12-19 22:42:27 +00:00
parent 790f5b3aef
commit 52548605ec
4 changed files with 4 additions and 4 deletions

View File

@ -84,7 +84,7 @@ public class GenericPO extends PO {
tableName = wrapper.tableName;
tableID = MTable.getTable_ID(tableName);
// log.info("Table_ID: "+Table_ID);
POInfo poi = POInfo.getPOInfo(ctx, tableID);
POInfo poi = POInfo.getPOInfo(ctx, tableID, this.get_TrxName());
return poi;
}

View File

@ -224,7 +224,7 @@ public abstract class AbstractElementHandler implements ElementHandler {
int idBackup = 0;
String colValue=null;
int tableID = get_IDWithColumn(ctx, "AD_Table", "TableName", tableName);
POInfo poInfo = POInfo.getPOInfo(ctx, tableID);
POInfo poInfo = POInfo.getPOInfo(ctx, tableID, getTrxName(ctx));
for (int i = 0; i < poInfo.getColumnCount(); i++){
String colName = poInfo.getColumnName(i);
colValue=null;

View File

@ -160,7 +160,7 @@ public class DataElementHandler extends AbstractElementHandler {
// for debug GenericPO.
if (false) {
POInfo poInfo = POInfo.getPOInfo(ctx, get_ID(ctx, "AD_Table", d_tablename));
POInfo poInfo = POInfo.getPOInfo(ctx, get_ID(ctx, "AD_Table", d_tablename), getTrxName(ctx));
if (poInfo == null)
log.info("poInfo is null.");
for (int i = 0; i < poInfo.getColumnCount(); i++) {

View File

@ -257,7 +257,7 @@ public class ModelClassGenerator
.append(" /** Load Meta Data */").append(NL)
.append(" protected POInfo initPO (Properties ctx)").append(NL)
.append(" {").append(NL)
.append(" POInfo poi = POInfo.getPOInfo (ctx, Table_ID);").append(NL)
.append(" POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());").append(NL)
.append(" return poi;").append(NL)
.append(" }").append(NL)
// initPO