private Command parseCommand() throws QueryParserException { if (requestMsg.getCommand() != null) { return (Command)requestMsg.getCommand(); } String[] commands = requestMsg.getCommands(); ParseInfo parseInfo = createParseInfo(this.requestMsg, this.workContext.getSession()); QueryParser queryParser = QueryParser.getQueryParser(); if (requestMsg.isPreparedStatement() || requestMsg.isCallableStatement() || !requestMsg.isBatchedUpdate()) { String commandStr = commands[0]; if (preParser != null) { commandStr = preParser.preParse(commandStr, this.context); } return queryParser.parseCommand(commandStr, parseInfo); } List<Command> parsedCommands = new ArrayList<Command>(commands.length); for (int i = 0; i < commands.length; i++) { String updateCommand = commands[i]; if (preParser != null) { updateCommand = preParser.preParse(updateCommand, this.context); } parsedCommands.add(queryParser.parseCommand(updateCommand, parseInfo)); } return new BatchedUpdateCommand(parsedCommands); }
private Command parseCommand() throws QueryParserException { if (requestMsg.getCommand() != null) { return (Command)requestMsg.getCommand(); } String[] commands = requestMsg.getCommands(); ParseInfo parseInfo = createParseInfo(this.requestMsg, this.workContext.getSession()); QueryParser queryParser = QueryParser.getQueryParser(); if (requestMsg.isPreparedStatement() || requestMsg.isCallableStatement() || !requestMsg.isBatchedUpdate()) { String commandStr = commands[0]; if (preParser != null) { commandStr = preParser.preParse(commandStr, this.context); } return queryParser.parseCommand(commandStr, parseInfo); } List<Command> parsedCommands = new ArrayList<Command>(commands.length); for (int i = 0; i < commands.length; i++) { String updateCommand = commands[i]; if (preParser != null) { updateCommand = preParser.preParse(updateCommand, this.context); } parsedCommands.add(queryParser.parseCommand(updateCommand, parseInfo)); } return new BatchedUpdateCommand(parsedCommands); }
private Command parseCommand() throws QueryParserException { if (requestMsg.getCommand() != null) { return (Command)requestMsg.getCommand(); } String[] commands = requestMsg.getCommands(); ParseInfo parseInfo = createParseInfo(this.requestMsg, this.workContext.getSession()); QueryParser queryParser = QueryParser.getQueryParser(); if (requestMsg.isPreparedStatement() || requestMsg.isCallableStatement() || !requestMsg.isBatchedUpdate()) { String commandStr = commands[0]; if (preParser != null) { commandStr = preParser.preParse(commandStr, this.context); } return queryParser.parseCommand(commandStr, parseInfo); } List<Command> parsedCommands = new ArrayList<Command>(commands.length); for (int i = 0; i < commands.length; i++) { String updateCommand = commands[i]; if (preParser != null) { updateCommand = preParser.preParse(updateCommand, this.context); } parsedCommands.add(queryParser.parseCommand(updateCommand, parseInfo)); } return new BatchedUpdateCommand(parsedCommands); }
ParseInfo pi = Request.createParseInfo(requestMsg, this.dqpWorkContext.getSession()); cacheId = new CacheID(this.dqpWorkContext, pi, requestMsg.getCommandString()); cachable = cacheId.setParameters(requestMsg.getParameterValues());
ParseInfo pi = Request.createParseInfo(requestMsg, this.dqpWorkContext.getSession()); cacheId = new CacheID(this.dqpWorkContext, pi, requestMsg.getCommandString()); cachable = cacheId.setParameters(requestMsg.getParameterValues());
ParseInfo pi = Request.createParseInfo(requestMsg, this.dqpWorkContext.getSession()); cacheId = new CacheID(this.dqpWorkContext, pi, requestMsg.getCommandString()); cachable = cacheId.setParameters(requestMsg.getParameterValues());
sqlQuery = this.preParser.preParse(sqlQuery, this.context); CacheID id = new CacheID(this.workContext, Request.createParseInfo(this.requestMsg, this.workContext.getSession()), sqlQuery); prepPlan = prepPlanCache.get(id);
sqlQuery = this.preParser.preParse(sqlQuery, this.context); CacheID id = new CacheID(this.workContext, Request.createParseInfo(this.requestMsg, this.workContext.getSession()), sqlQuery); prepPlan = prepPlanCache.get(id);
sqlQuery = this.preParser.preParse(sqlQuery, this.context); CacheID id = new CacheID(this.workContext, Request.createParseInfo(this.requestMsg, this.workContext.getSession()), sqlQuery); prepPlan = prepPlanCache.get(id);