A B C D E F G H I J L M N O P Q R S T U V W 

A

AbstractLimitHandler - Class in com.github.drinkjava2.hibernate
Default implementation of LimitHandler interface.
AbstractLimitHandler() - Constructor for class com.github.drinkjava2.hibernate.AbstractLimitHandler
 
add(String[], String, String[]) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
addTopExpression(StringBuilder) - Method in class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
Adds TOP expression.
assureNotNull(Object, String...) - Static method in exception com.github.drinkjava2.jdialects.DialectException
 

B

BATCH_ID_PLACEHOLDER - Static variable in class com.github.drinkjava2.hibernate.StringHelper
 
BIGINT(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
BINARY(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
bindLimitParameters(RowSelection, PreparedStatement, int) - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
Default implementation of binding parameter values needed by the LIMIT clause.
bindLimitParametersAtEndOfQuery(RowSelection, PreparedStatement, int) - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
 
bindLimitParametersAtEndOfQuery(RowSelection, PreparedStatement, int) - Method in interface com.github.drinkjava2.hibernate.LimitHandler
Bind parameter values needed by the LIMIT clause afterQuery original SELECT statement.
bindLimitParametersAtEndOfQuery(RowSelection, PreparedStatement, int) - Method in class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
 
bindLimitParametersAtEndOfQuery(RowSelection, PreparedStatement, int) - Method in class com.github.drinkjava2.hibernate.SQLServer2012LimitHandler
 
bindLimitParametersAtStartOfQuery(RowSelection, PreparedStatement, int) - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
 
bindLimitParametersAtStartOfQuery(RowSelection, PreparedStatement, int) - Method in interface com.github.drinkjava2.hibernate.LimitHandler
Bind parameter values needed by the LIMIT clause beforeQuery original SELECT statement.
bindLimitParametersAtStartOfQuery(RowSelection, PreparedStatement, int) - Method in class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
 
bindLimitParametersFirst() - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
Does the LIMIT clause come at the start of the SELECT statement, rather than at the end?
bindLimitParametersInReverseOrder() - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
ANSI SQL defines the LIMIT clause to be in the form LIMIT offset, limit.
BIT(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
BLOB(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
BOOLEAN(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
booleanValue(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 

C

CHAR(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
CLOB(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
collapse(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
Collapses a name.
collapseQualifier(String, boolean) - Static method in class com.github.drinkjava2.hibernate.StringHelper
Given a qualifier, collapse it.
collapseQualifierBase(String, String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
com.github.drinkjava2.hibernate - package com.github.drinkjava2.hibernate
 
com.github.drinkjava2.jdialects - package com.github.drinkjava2.jdialects
 
containsIgnoreCase(String, String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Find if exist searchStr in str ignore case
containsWhitespace(CharSequence) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Check whether the given CharSequence contains any whitespace characters.
containsWhitespace(String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Check whether the given String contains any whitespace characters.
convertToFirstRowValue(int) - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
Hibernate APIs explicitly state that setFirstResult() should be a zero-based offset.
convertToFirstRowValue(int) - Method in class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
 
convertToFirstRowValue(int) - Method in class com.github.drinkjava2.hibernate.SQLServer2012LimitHandler
 
countMatches(CharSequence, char) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Counts how many times the char appears in the given string.
countUnquoted(String, char) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 

D

DATE(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
DECIMAL(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
definesLimits() - Method in class com.github.drinkjava2.hibernate.RowSelection
 
Dialect - Enum in com.github.drinkjava2.jdialects
jDialects is a small Java project collect all databases' dialect, most are extracted from Hibernate, usually jDialects is used for build pagination SQL and DDL SQL for cross-databases purpose.
DialectException - Exception in com.github.drinkjava2.jdialects
 
DialectException() - Constructor for exception com.github.drinkjava2.jdialects.DialectException
 
DialectException(String) - Constructor for exception com.github.drinkjava2.jdialects.DialectException
 
DOUBLE(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 

E

EMPTY_STRINGS - Static variable in class com.github.drinkjava2.hibernate.StringHelper
 
encloseWithOuterQuery(StringBuilder) - Method in class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
Encloses original SQL statement with outer query that provides __hibernate_row_nr__ column.
ENGINE(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 

F

fillAliasInSelectClause(StringBuilder) - Method in class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
Adds missing aliases in provided SELECT clause and returns coma-separated list of them.
firstIndexOfChar(String, BitSet, int) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
firstIndexOfChar(String, String, int) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
FLOAT(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
forceLimitUsage() - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
Generally, if there is no limit applied to a Hibernate query we do not apply any limits to the SQL query.

G

generateAlias(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
generateAlias(String, int) - Static method in class com.github.drinkjava2.hibernate.StringHelper
Generate a nice alias for the given class name or collection role name and unique integer.
getFirstNonWhitespaceCharacter(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
getFirstRow(RowSelection) - Static method in class com.github.drinkjava2.hibernate.LimitHelper
Retrieve the indicated first row for pagination
getFirstRow() - Method in class com.github.drinkjava2.hibernate.RowSelection
 
getLastNonWhitespaceCharacter(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
getMaxOrLimit(RowSelection) - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
Some dialect-specific LIMIT clauses require the maximum last row number (aka, first_row_number + total_row_count), while others require the maximum returned row count (the total maximum number of rows to return).
getMaxRows() - Method in class com.github.drinkjava2.hibernate.RowSelection
 
guessDialect(DataSource) - Static method in enum com.github.drinkjava2.jdialects.Dialect
Guess dialect based on given JDBC connection instance, Note: this method does not close connection
guessDialect(Connection) - Static method in enum com.github.drinkjava2.jdialects.Dialect
Guess dialect based on given JDBC connection instance, Note: this method does not close connection
guessDialect(String, Object...) - Static method in enum com.github.drinkjava2.jdialects.Dialect
Guess Dialect by give databaseName, MajorVersion, majorVersion

H

hasFirstRow(RowSelection) - Static method in class com.github.drinkjava2.hibernate.LimitHelper
Is a first row limit indicated?
hasLength(CharSequence) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Check that the given CharSequence is neither null nor of length 0.
hasLength(String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Check that the given String is neither null nor of length 0.
hasMaxRows(RowSelection) - Static method in class com.github.drinkjava2.hibernate.LimitHelper
 

I

indexOfIgnoreCase(String, String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Return first postion ignore case, return -1 if not found
INTEGER(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
isEmpty(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
isEmpty(Object) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Check whether the given String is empty.
isEmptyOrWhiteSpace(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
isNotEmpty(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
isQuoted(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
Determine if the given string is quoted (wrapped by '`' characters at beginning and end).

J

JAVA_OBJECT(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
join(String, String[]) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
join(String, Iterator) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
join(String, Iterable) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
join(Collection<T>, StringHelper.Renderer<T>) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
join(T[], StringHelper.Renderer<T>) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
joinWithQualifierAndSuffix(String[], String, String, String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 

L

lastIndexOfIgnoreCase(String, String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Return last sub-String position ignore case, return -1 if not found
lastIndexOfLetter(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
LimitHandler - Interface in com.github.drinkjava2.hibernate
Contract defining dialect-specific LIMIT clause handling.
LimitHelper - Class in com.github.drinkjava2.hibernate
A helper for dealing with LimitHandler implementations
LONGNVARCHAR(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
LONGVARBINARY(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
LONGVARCHAR(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 

M

moveAndToBeginning(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
multiply(String, Iterator, Iterator) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 

N

NCHAR(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
NCLOB(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
NOT_SUPPORT - Static variable in enum com.github.drinkjava2.jdialects.Dialect
 
nullIfEmpty(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
NUMERIC(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
NVARCHAR(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 

O

OTHER(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 

P

PackageInfo - Class in com.github.drinkjava2.hibernate
These folder copied source codes from Hibernate 5.2.9.Final - Yong Zhu
PackageInfo() - Constructor for class com.github.drinkjava2.hibernate.PackageInfo
 
paginate(int, int, String) - Method in enum com.github.drinkjava2.jdialects.Dialect
Create a pagination SQL by given pageNumber, pageSize and SQL
parseCommaSeparatedString(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
partiallyUnqualify(String, String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
Partially unqualifies a qualified name.
processSql(String, RowSelection) - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
 
processSql(String, RowSelection) - Method in interface com.github.drinkjava2.hibernate.LimitHandler
Return processed SQL query.
processSql(String, RowSelection) - Method in class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
Add a LIMIT clause to the given SQL SELECT (HHH-2655: ROW_NUMBER for Paging) The LIMIT SQL will look like:
processSql(String, RowSelection) - Method in class com.github.drinkjava2.hibernate.SQLServer2012LimitHandler
 

Q

qualifier(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
qualify(String, String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
qualify(String, String[]) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
qualifyConditionally(String, String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
qualifyIfNot(String, String[]) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
quote(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
Return a representation of the given name ensuring quoting (wrapped with '`' characters).

R

REAL(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
render(T) - Method in interface com.github.drinkjava2.hibernate.StringHelper.Renderer
 
repeat(String, int) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
repeat(String, int, String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
repeat(char, int) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
replace(String, String, String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
replace(String[], String, String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
replace(String, String, String, boolean) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
replace(String, String, String, boolean, boolean) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
replace(String, String, String, String, boolean, boolean) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
replace(String, String, String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Replace all occurrences of a substring within a string with another string.
replaceIgnoreCase(String, String, String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Replace all sub strings ignore case
replaceIgnoreCase("AbcDECd", "Cd", "FF") = "AbFFEFF"
replaceOnce(String, String, String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
root(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
RowSelection - Class in com.github.drinkjava2.hibernate
Represents a selection criteria for rows in a JDBC ResultSet
RowSelection(int, int) - Constructor for class com.github.drinkjava2.hibernate.RowSelection
 

S

setFirstRow(Integer) - Method in class com.github.drinkjava2.hibernate.RowSelection
 
setFirstRow(int) - Method in class com.github.drinkjava2.hibernate.RowSelection
 
setMaxRows(RowSelection, PreparedStatement) - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
 
setMaxRows(RowSelection, PreparedStatement) - Method in interface com.github.drinkjava2.hibernate.LimitHandler
Use JDBC API to limit the number of rows returned by the SQL query.
setMaxRows(Integer) - Method in class com.github.drinkjava2.hibernate.RowSelection
 
setMaxRows(int) - Method in class com.github.drinkjava2.hibernate.RowSelection
 
SMALLINT(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
split(String, String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
split(String, String, boolean) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
splitTrimmingTokens(String, String, boolean) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
SQLServer2005LimitHandler - Class in com.github.drinkjava2.hibernate
LIMIT clause handler compatible with SQL Server 2005 and later.
SQLServer2005LimitHandler() - Constructor for class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
Constructs a SQLServer2005LimitHandler
SQLServer2012LimitHandler - Class in com.github.drinkjava2.hibernate
LIMIT clause handler compatible with SQL Server 2012 and later.
SQLServer2012LimitHandler() - Constructor for class com.github.drinkjava2.hibernate.SQLServer2012LimitHandler
 
startsWithIgnoreCase(String, String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Test if the given String starts with the specified prefix, ignoring upper/lower case.
StringHelper - Class in com.github.drinkjava2.hibernate
 
StringHelper.Renderer<T> - Interface in com.github.drinkjava2.hibernate
 
StrUtils - Class in com.github.drinkjava2.jdialects
String Utility
substringBetween(String, String, String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Gets the String that is nested in between two Strings.
substringsBetween(String, String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Return all sub-Strings between 1 tags
suffix(String[], String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
supportsLimit() - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
 
supportsLimit() - Method in interface com.github.drinkjava2.hibernate.LimitHandler
Does this handler support some form of limiting query results via a SQL clause?
supportsLimit() - Method in class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
 
supportsLimit() - Method in class com.github.drinkjava2.hibernate.SQLServer2012LimitHandler
 
supportsLimitOffset() - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
 
supportsLimitOffset() - Method in interface com.github.drinkjava2.hibernate.LimitHandler
Does this handler's LIMIT support (if any) additionally support specifying an offset?
supportsLimitOffset() - Method in class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
 
supportsVariableLimit() - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
Does this handler support bind variables (i.e., prepared statement parameters) for its limit/offset?
supportsVariableLimit() - Method in class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
 
supportsVariableLimit() - Method in class com.github.drinkjava2.hibernate.SQLServer2012LimitHandler
 

T

throwEX(Exception, String) - Static method in exception com.github.drinkjava2.jdialects.DialectException
 
throwEX(String) - Static method in exception com.github.drinkjava2.jdialects.DialectException
 
TIME(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
TIMESTAMP(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
TINYINT(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
toArrayElement(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
Takes a String s and returns a new String[1] with s as the only element.
topAdded - Variable in class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
 
toString(Object[]) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
trimAllWhitespace(String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Trim all whitespace from the given String: leading, trailing, and in between characters.
trimLeadingCharacter(String, char) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Trim all occurrences of the supplied leading character from the given String.
trimLeadingWhitespace(String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Trim leading whitespace from the given String.
trimTrailingCharacter(String, char) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Trim all occurrences of the supplied trailing character from the given String.
trimTrailingWhitespace(String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Trim trailing whitespace from the given String.
trimWhitespace(String) - Static method in class com.github.drinkjava2.jdialects.StrUtils
Trim leading and trailing whitespace from the given String.
truncate(String, int) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
Type - Enum in com.github.drinkjava2.jdialects
String Utility

U

unqualify(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
unqualifyEntityName(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
unquote(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
Return the unquoted version of name (stripping the start and end '`' characters if present).
unroot(String) - Static method in class com.github.drinkjava2.hibernate.StringHelper
 
useLimit(LimitHandler, RowSelection) - Static method in class com.github.drinkjava2.hibernate.LimitHelper
Should limit be applied?
useMaxForLimit() - Method in class com.github.drinkjava2.hibernate.AbstractLimitHandler
Does the LIMIT clause take a "maximum" row number instead of a total number of returned rows?

This is easiest understood via an example.

useMaxForLimit() - Method in class com.github.drinkjava2.hibernate.SQLServer2005LimitHandler
 
useMaxForLimit() - Method in class com.github.drinkjava2.hibernate.SQLServer2012LimitHandler
 

V

valueOf(String) - Static method in enum com.github.drinkjava2.jdialects.Dialect
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.github.drinkjava2.jdialects.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.drinkjava2.jdialects.Dialect
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.github.drinkjava2.jdialects.Type
Returns an array containing the constants of this enum type, in the order they are declared.
VARBINARY(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 
VARCHAR(int...) - Method in enum com.github.drinkjava2.jdialects.Dialect
 

W

WHITESPACE - Static variable in class com.github.drinkjava2.hibernate.StringHelper
 
A B C D E F G H I J L M N O P Q R S T U V W 

Copyright © 2017. All rights reserved.