private Set parseSetJavaObjectSerializer() { Set command = new Set(session, SetTypes.JAVA_OBJECT_SERIALIZER); String name = readString(); command.setString(name); return command; }
private String readCommentIf() { if (readIf("COMMENT")) { readIf("IS"); return readString(); } return null; }
command.setComment(readCommentIf()); read("("); command.setDriver(readString()); read(","); command.setUrl(readString()); read(","); command.setUser(readString()); read(","); command.setPassword(readString()); read(","); String originalTable = readString(); if (readIf(",")) { command.setOriginalSchema(originalTable); originalTable = readString();
private RunScriptCommand parseRunScript() { RunScriptCommand command = new RunScriptCommand(session); read("FROM"); command.setFileNameExpr(readExpression()); if (readIf("COMPRESSION")) { command.setCompressionAlgorithm(readUniqueIdentifier()); } if (readIf("CIPHER")) { command.setCipher(readUniqueIdentifier()); if (readIf("PASSWORD")) { command.setPassword(readExpression()); } } if (readIf("CHARSET")) { command.setCharset(Charset.forName(readString())); } return command; }
command.setCharset(Charset.forName(readString()));
java.util.List<String> enumeratorList = new ArrayList<>(); original += '('; String enumerator0 = readString(); enumeratorList.add(enumerator0); original += "'" + enumerator0 + "'"; while (readIfMore(true)) { original += ','; String enumeratorN = readString(); original += "'" + enumeratorN + "'"; enumeratorList.add(enumeratorN);
command.setBufferResultSetToLocalTemp(!readIf("NOBUFFER")); if (readIf("AS")) { command.setSource(readString()); } else { read("FOR");
if (readIf("=")) { readString();
command.setTriggerSource(readString()); } else { read("CALL");
Set command = new Set(session, SetTypes.COMPRESS_LOB); if (currentTokenType == VALUE) { command.setString(readString()); } else { command.setString(readUniqueIdentifier()); readIfEqualOrTo(); Set command = new Set(session, SetTypes.CLUSTER); command.setString(readString()); return command; } else if (readIf("DATABASE_EVENT_LISTENER")) { readIfEqualOrTo(); Set command = new Set(session, SetTypes.DATABASE_EVENT_LISTENER); command.setString(readString()); return command; } else if (readIf("ALLOW_LITERALS")) { String s = readString(); if (!equalsToken(s, "ISO")) { throw getSyntaxError();
private String readCommentIf() throws SQLException { if (readIf("COMMENT")) { readIf("IS"); return readString(); } return null; }
private Set parseSetJavaObjectSerializer() { Set command = new Set(session, SetTypes.JAVA_OBJECT_SERIALIZER); String name = readString(); command.setString(name); return command; }
private String readCommentIf() { if (readIf("COMMENT")) { readIf("IS"); return readString(); } return null; }
private String readCommentIf() { if (readIf("COMMENT")) { readIf("IS"); return readString(); } return null; }
private Set parseSetJavaObjectSerializer() { Set command = new Set(session, SetTypes.JAVA_OBJECT_SERIALIZER); String name = readString(); command.setString(name); return command; }
private CreateLinkedTable parseCreateLinkedTable(boolean force) throws SQLException { read("TABLE"); boolean ifNotExists = readIfNoExists(); String tableName = readIdentifierWithSchema(); CreateLinkedTable command = new CreateLinkedTable(session, getSchema()); command.setForce(force); command.setIfNotExists(ifNotExists); command.setTableName(tableName); command.setComment(readCommentIf()); read("("); command.setDriver(readString()); read(","); command.setUrl(readString()); read(","); command.setUser(readString()); read(","); command.setPassword(readString()); read(","); command.setOriginalTable(readString()); read(")"); if (readIf("EMIT")) { read("UPDATES"); command.setEmitUpdates(true); } return command; }
private RunScriptCommand parseRunScript() throws SQLException { RunScriptCommand command = new RunScriptCommand(session); read("FROM"); command.setFile(readExpression()); if (readIf("COMPRESSION")) { command.setCompressionAlgorithm(readUniqueIdentifier()); } if (readIf("CIPHER")) { command.setCipher(readUniqueIdentifier()); if (readIf("PASSWORD")) { command.setPassword(readString().toCharArray()); } } if (readIf("CHARSET")) { command.setCharset(readString()); } return command; }
private RunScriptCommand parseRunScript() { RunScriptCommand command = new RunScriptCommand(session); read("FROM"); command.setFileNameExpr(readExpression()); if (readIf("COMPRESSION")) { command.setCompressionAlgorithm(readUniqueIdentifier()); } if (readIf("CIPHER")) { command.setCipher(readUniqueIdentifier()); if (readIf("PASSWORD")) { command.setPassword(readExpression()); } } if (readIf("CHARSET")) { command.setCharset(Charset.forName(readString())); } return command; }
private RunScriptCommand parseRunScript() { RunScriptCommand command = new RunScriptCommand(session); read("FROM"); command.setFileNameExpr(readExpression()); if (readIf("COMPRESSION")) { command.setCompressionAlgorithm(readUniqueIdentifier()); } if (readIf("CIPHER")) { command.setCipher(readUniqueIdentifier()); if (readIf("PASSWORD")) { command.setPassword(readExpression()); } } if (readIf("CHARSET")) { command.setCharset(Charset.forName(readString())); } return command; }
private CreateFunctionAlias parseCreateFunctionAlias(boolean force) { boolean ifNotExists = readIfNotExists(); String aliasName = readIdentifierWithSchema(); if (isKeyword(aliasName) || Function.getFunction(database, aliasName) != null || getAggregateType(aliasName) >= 0) { throw DbException.get(ErrorCode.FUNCTION_ALIAS_ALREADY_EXISTS_1, aliasName); } CreateFunctionAlias command = new CreateFunctionAlias(session, getSchema()); command.setForce(force); command.setAliasName(aliasName); command.setIfNotExists(ifNotExists); command.setDeterministic(readIf("DETERMINISTIC")); command.setBufferResultSetToLocalTemp(!readIf("NOBUFFER")); if (readIf("AS")) { command.setSource(readString()); } else { read("FOR"); command.setJavaClassMethod(readUniqueIdentifier()); } return command; }