Skip to content

Commit

Permalink
model factory extended
Browse files Browse the repository at this point in the history
this also fixes a problem with the attribute lookup
  • Loading branch information
lHeidbreder committed Dec 11, 2023
1 parent 5b049e8 commit c990642
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/de/schoenbeck/serverprint/model/SPFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public Class<?> getClass(String tableName) {
case MPrinterAttributeValue.Table_Name: return MPrinterAttributeValue.class;
case MPrinterConfig.Table_Name: return MPrinterConfig.class;
case MPrinterConfigAttr.Table_Name: return MPrinterConfigAttr.class;
case MPrinterProvider.Table_Name: return MPrinterProvider.class;
}
return null;
}
Expand All @@ -35,6 +36,7 @@ public PO getPO(String tableName, int Record_ID, String trxName) {
case MPrinterAttributeValue.Table_Name: return new MPrinterAttributeValue(Env.getCtx(), Record_ID, trxName);
case MPrinterConfig.Table_Name: return new MPrinterConfig(Env.getCtx(), Record_ID, trxName);
case MPrinterConfigAttr.Table_Name: return new MPrinterConfigAttr(Env.getCtx(), Record_ID, trxName);
case MPrinterProvider.Table_Name: return new MPrinterProvider(Env.getCtx(), Record_ID, trxName);
}
return null;
}
Expand All @@ -49,6 +51,7 @@ public PO getPO(String tableName, ResultSet rs, String trxName) {
case MPrinterAttributeValue.Table_Name: return new MPrinterAttributeValue(Env.getCtx(), rs, trxName);
case MPrinterConfig.Table_Name: return new MPrinterConfig(Env.getCtx(), rs, trxName);
case MPrinterConfigAttr.Table_Name: return new MPrinterConfigAttr(Env.getCtx(), rs, trxName);
case MPrinterProvider.Table_Name: return new MPrinterProvider(Env.getCtx(), rs, trxName);
}
return null;
}
Expand Down

0 comments on commit c990642

Please sign in to comment.