Examples of CommandRemote


Examples of org.lealone.command.CommandRemote

            int updateCount = iom.internalUpdate();

            if (!servers.isEmpty()) {
                List<CommandInterface> commands = New.arrayList(servers.size());
                for (Map.Entry<String, Map<String, List<String>>> e : servers.entrySet()) {
                    CommandRemote c = SessionRemotePool.getCommandRemote(session, prepared, e.getKey(), //
                            getPlanSQL(insertFromSelect, sortedInsertMode, e.getValue().entrySet()));

                    commands.add(c);
                }

                updateCount += CommandParallel.executeUpdate(commands);
            }

            if (table.isColumnsModified()) {
                table.setColumnsModified(false);
                SessionInterface si = SessionRemotePool.getMasterSessionRemote(session.getOriginalProperties());
                for (Column c : alterColumns) {
                    CommandInterface ci = si.prepareCommand(alterTable + c.getCreateSQL(true), 1);
                    ci.executeUpdate();
                }
            }
            if (isTopTransaction)
                session.commit(false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.