[ 1854455 ] PO.initPO doesn't have transaction support
This commit is contained in:
parent
790f5b3aef
commit
52548605ec
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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++) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue