Notifications
Announcements
No record found.
class x extends classZBatch { private RecordInsertList recordInsertList = new RecordInsertList(tableNum(TableA)); public void run() { this.process(); this.postProcess(); } public void postProcess() { recordInsertList.insertDatabase(); } void process() { str line; const str fieldDelimiter = '\r\n'; const str recordDelimiter = '\r\n'; importFile.inFieldDelimiter(fieldDelimiter); importFile.inRecordDelimiter(recordDelimiter); while (importFile.status() == IO_Status::Ok) { line = conPeek(importFile.read(), 1); ttsbegin; this.processLine(line); ttscommit; } } protected void processLine(str _line) { ClassA process = classA::newFromEnumX(EnumX::First); process.insertTableA(_line); recordInsertList = process.getRecordInsertList(); } } abstract class classA { private TableA tableA; private RecordInsertList recordInsertList = new RecordInsertList(tableNum(TableA)); final public void insertTableA(str _line) { tableA.clear(); // logic to fill table A recordInsertList.add(tableA); } public static ClassA newFromEnumX(EnumX _enumX) { EnumXAtrribute enumXAttribute = new EnumXAtrribute(_enumX); return SysExtensionAppClassFactory::getClassFromSysAttribute(classStr(ClassA), enumXAttribute); } public RecordInsertList getRecordInsertList() { return recordInsertList; } } class EnumXAtrribute extends SysAttribute implements SysExtensionIAttribute { EnumX enumX; public void new(EnumX _enumX) { super(); enumX = _enumX; } public str parmCacheKey() { return classStr(EnumXAtrribute) + ';'+ int2str(enum2int(enumX)); } public boolean useSingleton() { return true; } } }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 490 Super User 2025 Season 2
Martin Dráb 429 Most Valuable Professional
BillurSamdancioglu 241 Most Valuable Professional