protected void tellCurrentCommandClosed( BehaviorCommandMeta meta, SqlFireResultInfo fireResultInfo) { final RomanticTransaction tx = TransactionRomanticContext.getRomanticTransaction(); if (tx != null) { tx.clearCurrent(); } }
protected void saveCommandToRomanticTransaction( BehaviorCommandMeta meta, SqlFireReadyInfo fireReadyInfo) { final RomanticTransaction tx = TransactionRomanticContext.getRomanticTransaction(); if (tx != null) { final String tableName = meta.getDBMeta().getTableDispName(); final String commandName = meta.getCommandName(); final Long beginMillis = InternalMapContext.getSqlBeforeTimeMillis(); // cannot get from ready info... final TransactionCurrentSqlBuilder currentSqlBuilder = createCurrentSqlBuilder(fireReadyInfo.getSqlLogInfo()); tx.registerTableCommand(tableName, commandName, beginMillis, currentSqlBuilder); } }