Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
D
E
F
G
I
J
L
N
R
S
T
V
A
addFieldAs(String, String)
- Method in class net.amrhassan.sqlbuilder.
SelectSqlStatement
Add a field to be selected.
addFields(String...)
- Method in class net.amrhassan.sqlbuilder.
SelectSqlStatement
Add a fields to be selected.
addGroupByFields(String...)
- Method in class net.amrhassan.sqlbuilder.
SelectSqlStatement
Add a field to be used for the GROUP BY clause
addOrderBy(String...)
- Method in class net.amrhassan.sqlbuilder.
SelectSqlStatement
Specify fields to be used for the ORDER BY clause
addOrderBy(SelectSqlStatement.Order, String...)
- Method in class net.amrhassan.sqlbuilder.
SelectSqlStatement
Specify a field to be used for the ORDER BY clause
addSource(SqlSource)
- Method in class net.amrhassan.sqlbuilder.
SelectSqlStatement
Add a source for the statement, which can be a simple table name or a complex JOIN clause (see
SqlSources
)
and(SqlRestriction...)
- Static method in class net.amrhassan.sqlbuilder.restrictions.
SqlRestrictions
AND combination of restrictions
and(Collection<SqlRestriction>)
- Static method in class net.amrhassan.sqlbuilder.restrictions.
SqlRestrictions
AND combination of restrictions
B
between(String)
- Static method in class net.amrhassan.sqlbuilder.restrictions.
SqlRestrictions
The specified field falls inside a range; (field BETWEEN ? AND ?).
between(String, String, String)
- Static method in class net.amrhassan.sqlbuilder.restrictions.
SqlRestrictions
The specified field falls inside a range; (field BETWEEN lowerBound AND upperBound).
D
disableDistinct()
- Method in class net.amrhassan.sqlbuilder.
SelectSqlStatement
Disable the DISTINCT clause
E
enableDistinct()
- Method in class net.amrhassan.sqlbuilder.
SelectSqlStatement
Enable the DISTINCT clause
eq(String)
- Static method in class net.amrhassan.sqlbuilder.restrictions.
SqlRestrictions
Equality between the provided field name and '?'
eq(String, String)
- Static method in class net.amrhassan.sqlbuilder.restrictions.
SqlRestrictions
Equality between two operands (lhs = rhs).
F
fullJoin(TableSqlSource, TableSqlSource, SqlRestriction)
- Static method in class net.amrhassan.sqlbuilder.sources.
SqlSources
A FULL JOIN where the restriction is used for the ON clause
G
gt(String)
- Static method in class net.amrhassan.sqlbuilder.restrictions.
SqlRestrictions
The specified field is greater-than another operand specified by a '?' character
gte(String)
- Static method in class net.amrhassan.sqlbuilder.restrictions.
SqlRestrictions
The specified field is greater-than-or-equal to another operand specified by a '?' character
I
in(String, int)
- Static method in class net.amrhassan.sqlbuilder.restrictions.
SqlRestrictions
The specified field is in a list of provided parameters; (field IN (?,?,?,...))
in(String, SelectSqlStatement)
- Static method in class net.amrhassan.sqlbuilder.restrictions.
SqlRestrictions
The specified field lies in the result of the provided sub-query
J
join(TableSqlSource, TableSqlSource, SqlRestriction)
- Static method in class net.amrhassan.sqlbuilder.sources.
SqlSources
A simple JOIN source where the restriction is used for the ON clause
join(String, T...)
- Static method in class net.amrhassan.sqlbuilder.utils.
StringUtils
Join the String representation of several objects with by the separator String in between them.
join(String, Collection<T>)
- Static method in class net.amrhassan.sqlbuilder.utils.
StringUtils
Join the String representation of several objects with by the separator String in between them.
L
leftJoin(TableSqlSource, TableSqlSource, SqlRestriction)
- Static method in class net.amrhassan.sqlbuilder.sources.
SqlSources
A LEFT JOIN source where the restriction is used for the ON clause
lt(String)
- Static method in class net.amrhassan.sqlbuilder.restrictions.
SqlRestrictions
The specified field is less-than another operand specified by a '?' character
lte(String)
- Static method in class net.amrhassan.sqlbuilder.restrictions.
SqlRestrictions
The specified field is less-than-or-equal to another operand specified by a '?' character
N
net.amrhassan.sqlbuilder
- package net.amrhassan.sqlbuilder
net.amrhassan.sqlbuilder.restrictions
- package net.amrhassan.sqlbuilder.restrictions
net.amrhassan.sqlbuilder.sources
- package net.amrhassan.sqlbuilder.sources
net.amrhassan.sqlbuilder.utils
- package net.amrhassan.sqlbuilder.utils
R
rightJoin(TableSqlSource, TableSqlSource, SqlRestriction)
- Static method in class net.amrhassan.sqlbuilder.sources.
SqlSources
A RIGHT JOIN where the restriction is used for the ON clause
S
SelectSqlStatement
- Class in
net.amrhassan.sqlbuilder
A SELECT SQL statement
SelectSqlStatement()
- Constructor for class net.amrhassan.sqlbuilder.
SelectSqlStatement
SelectSqlStatement.Order
- Enum in
net.amrhassan.sqlbuilder
The order specified in an ORDER BY clause
setRestriction(SqlRestriction)
- Method in class net.amrhassan.sqlbuilder.
SelectSqlStatement
The restrictions used in the WHERE clause
SqlRestriction
- Interface in
net.amrhassan.sqlbuilder.restrictions
SqlRestrictions
- Class in
net.amrhassan.sqlbuilder.restrictions
A one-stop place for all the possible SQL restrictions.
SqlSource
- Interface in
net.amrhassan.sqlbuilder.sources
SqlSources
- Class in
net.amrhassan.sqlbuilder.sources
A one-stop place for all the possible SQL sources
SqlStatement
- Interface in
net.amrhassan.sqlbuilder
An SQL Statement
StringUtils
- Class in
net.amrhassan.sqlbuilder.utils
Helper utility class that is used internally by the sqlbuilder sub-packages
T
table(String)
- Static method in class net.amrhassan.sqlbuilder.sources.
SqlSources
A table source
table(String, String)
- Static method in class net.amrhassan.sqlbuilder.sources.
SqlSources
A table source
toString()
- Method in class net.amrhassan.sqlbuilder.
SelectSqlStatement
V
valueOf(String)
- Static method in enum net.amrhassan.sqlbuilder.
SelectSqlStatement.Order
Returns the enum constant of this type with the specified name.
values()
- Static method in enum net.amrhassan.sqlbuilder.
SelectSqlStatement.Order
Returns an array containing the constants of this enum type, in the order they are declared.
A
B
D
E
F
G
I
J
L
N
R
S
T
V
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2013. All Rights Reserved.