private Set parseSetCollation() { Set command = new Set(session, SetTypes.COLLATION); String name = readAliasIdentifier(); command.setString(name); if (equalsToken(name, CompareMode.OFF)) { return command; } Collator coll = CompareMode.getCollator(name); if (coll == null) { throw DbException.getInvalidValueException("collation", name); } if (readIf("STRENGTH")) { if (readIf("PRIMARY")) { command.setInt(Collator.PRIMARY); } else if (readIf("SECONDARY")) { command.setInt(Collator.SECONDARY); } else if (readIf("TERTIARY")) { command.setInt(Collator.TERTIARY); } else if (readIf("IDENTICAL")) { command.setInt(Collator.IDENTICAL); } } else { command.setInt(coll.getStrength()); } return command; }
boolean value = readBooleanSetting(); Set command = new Set(session, SetTypes.MVCC); command.setInt(value ? 1 : 0); return command; } else if (readIf("EXCLUSIVE")) { boolean value = readBooleanSetting(); Set command = new Set(session, SetTypes.IGNORECASE); command.setInt(value ? 1 : 0); return command; } else if (readIf("PASSWORD")) { Set command = new Set(session, SetTypes.ALLOW_LITERALS); if (readIf("NONE")) { command.setInt(Constants.ALLOW_LITERALS_NONE); } else if (readIf("ALL")) { command.setInt(Constants.ALLOW_LITERALS_ALL); } else if (readIf("NUMBERS")) { command.setInt(Constants.ALLOW_LITERALS_NUMBERS); } else { command.setInt(readPositiveInt()); Set command = new Set(session, SetTypes.DEFAULT_TABLE_TYPE); if (readIf("MEMORY")) { command.setInt(Table.TYPE_MEMORY); } else if (readIf("CACHED")) { command.setInt(Table.TYPE_CACHED); } else { command.setInt(readPositiveInt());
private Set parseSetCollation() throws SQLException { Set command = new Set(session, SetTypes.COLLATION); String name = readAliasIdentifier(); command.setString(name); if (name.equals(CompareMode.OFF)) { return command; } Collator coll = CompareMode.getCollator(name); if (coll == null) { throw getSyntaxError(); } if (readIf("STRENGTH")) { if (readIf("PRIMARY")) { command.setInt(Collator.PRIMARY); } else if (readIf("SECONDARY")) { command.setInt(Collator.SECONDARY); } else if (readIf("TERTIARY")) { command.setInt(Collator.TERTIARY); } else if (readIf("IDENTICAL")) { command.setInt(Collator.IDENTICAL); } } else { command.setInt(coll.getStrength()); } return command; }
private Set parseSetCollation() { Set command = new Set(session, SetTypes.COLLATION); String name = readAliasIdentifier(); command.setString(name); if (equalsToken(name, CompareMode.OFF)) { return command; } Collator coll = CompareMode.getCollator(name); if (coll == null) { throw DbException.getInvalidValueException("collation", name); } if (readIf("STRENGTH")) { if (readIf("PRIMARY")) { command.setInt(Collator.PRIMARY); } else if (readIf("SECONDARY")) { command.setInt(Collator.SECONDARY); } else if (readIf("TERTIARY")) { command.setInt(Collator.TERTIARY); } else if (readIf("IDENTICAL")) { command.setInt(Collator.IDENTICAL); } } else { command.setInt(coll.getStrength()); } return command; }
private Set parseSetCollation() { Set command = new Set(session, SetTypes.COLLATION); String name = readAliasIdentifier(); command.setString(name); if (equalsToken(name, CompareMode.OFF)) { return command; } Collator coll = CompareMode.getCollator(name); if (coll == null) { throw DbException.getInvalidValueException("collation", name); } if (readIf("STRENGTH")) { if (readIf("PRIMARY")) { command.setInt(Collator.PRIMARY); } else if (readIf("SECONDARY")) { command.setInt(Collator.SECONDARY); } else if (readIf("TERTIARY")) { command.setInt(Collator.TERTIARY); } else if (readIf("IDENTICAL")) { command.setInt(Collator.IDENTICAL); } } else { command.setInt(coll.getStrength()); } return command; }
boolean value = readBooleanSetting(); Set command = new Set(session, SetTypes.MVCC); command.setInt(value ? 1 : 0); return command; } else if (readIf("EXCLUSIVE")) { boolean value = readBooleanSetting(); Set command = new Set(session, SetTypes.EXCLUSIVE); command.setInt(value ? 1 : 0); return command; } else if (readIf("IGNORECASE")) { boolean value = readBooleanSetting(); Set command = new Set(session, SetTypes.IGNORECASE); command.setInt(value ? 1 : 0); return command; } else if (readIf("PASSWORD")) { Set command = new Set(session, SetTypes.ALLOW_LITERALS); if (readIf("NONE")) { command.setInt(Constants.ALLOW_LITERALS_NONE); } else if (readIf("ALL")) { command.setInt(Constants.ALLOW_LITERALS_ALL); } else if (readIf("NUMBERS")) { command.setInt(Constants.ALLOW_LITERALS_NUMBERS); } else { command.setInt(getPositiveInt()); Set command = new Set(session, SetTypes.DEFAULT_TABLE_TYPE);
boolean value = readBooleanSetting(); Set command = new Set(session, SetTypes.MVCC); command.setInt(value ? 1 : 0); return command; } else if (readIf("EXCLUSIVE")) { boolean value = readBooleanSetting(); Set command = new Set(session, SetTypes.IGNORECASE); command.setInt(value ? 1 : 0); return command; } else if (readIf("PASSWORD")) { Set command = new Set(session, SetTypes.ALLOW_LITERALS); if (readIf("NONE")) { command.setInt(Constants.ALLOW_LITERALS_NONE); } else if (readIf("ALL")) { command.setInt(Constants.ALLOW_LITERALS_ALL); } else if (readIf("NUMBERS")) { command.setInt(Constants.ALLOW_LITERALS_NUMBERS); } else { command.setInt(readPositiveInt()); Set command = new Set(session, SetTypes.DEFAULT_TABLE_TYPE); if (readIf("MEMORY")) { command.setInt(Table.TYPE_MEMORY); } else if (readIf("CACHED")) { command.setInt(Table.TYPE_CACHED); } else { command.setInt(readPositiveInt());
boolean value = readBooleanSetting(); Set command = new Set(session, SetTypes.MVCC); command.setInt(value ? 1 : 0); return command; } else if (readIf("EXCLUSIVE")) { boolean value = readBooleanSetting(); Set command = new Set(session, SetTypes.IGNORECASE); command.setInt(value ? 1 : 0); return command; } else if (readIf("PASSWORD")) { Set command = new Set(session, SetTypes.ALLOW_LITERALS); if (readIf("NONE")) { command.setInt(Constants.ALLOW_LITERALS_NONE); } else if (readIf("ALL")) { command.setInt(Constants.ALLOW_LITERALS_ALL); } else if (readIf("NUMBERS")) { command.setInt(Constants.ALLOW_LITERALS_NUMBERS); } else { command.setInt(readPositiveInt()); Set command = new Set(session, SetTypes.DEFAULT_TABLE_TYPE); if (readIf("MEMORY")) { command.setInt(Table.TYPE_MEMORY); } else if (readIf("CACHED")) { command.setInt(Table.TYPE_CACHED); } else { command.setInt(readPositiveInt());