@Override public void identifier(String name) { String convertName = name; if (configurer.isCaseSensitive()) { convertName = configurer.fixIdentifierCaseSensitve(name); } if (configurer.enableQuote()) { String quoted = getDialect().quoteIdentifier(convertName); print(quoted); setNeedWhitespace(true); } else { if (!configurer.skipHandleDefault() && convertName.trim().equalsIgnoreCase("default")) { String quoted = getDialect().quoteIdentifier(convertName); print(quoted); setNeedWhitespace(true); } else { super.identifier(convertName); } } }
@Override public void fetchOffset(SqlNode fetch, SqlNode offset) { if (fetch == null && offset == null) { return; } switch (configurer.getPagingType().toUpperCase(Locale.ROOT)) { case "ROWNUM": doWriteRowNum(fetch, offset); break; case "FETCH_NEXT": doWriteFetchNext(fetch, offset); break; case "LIMIT_OFFSET": doWriteLimitOffset(fetch, offset); break; default: if (getDialect().supportsOffsetFetch()) { doWriteFetchNext(fetch, offset); } else { doWriteLimitOffset(fetch, offset); } break; } }
@Override public void identifier(String name) { String convertName = name; if (configurer.isCaseSensitive()) { convertName = configurer.fixIdentifierCaseSensitve(name); } if (configurer.enableQuote()) { String quoted = getDialect().quoteIdentifier(convertName); print(quoted); setNeedWhitespace(true); } else { if (!configurer.skipHandleDefault() && convertName.trim().equalsIgnoreCase("default")) { String quoted = getDialect().quoteIdentifier(convertName); print(quoted); setNeedWhitespace(true); } else { super.identifier(convertName); } } }
@Override public void fetchOffset(SqlNode fetch, SqlNode offset) { if (fetch == null && offset == null) { return; } switch (configurer.getPagingType().toUpperCase(Locale.ROOT)) { case "ROWNUM": doWriteRowNum(fetch, offset); break; case "FETCH_NEXT": doWriteFetchNext(fetch, offset); break; case "LIMIT_OFFSET": doWriteLimitOffset(fetch, offset); break; default: if (getDialect().supportsOffsetFetch()) { doWriteFetchNext(fetch, offset); } else { doWriteLimitOffset(fetch, offset); } break; } }