| Package | Description |
|---|---|
| net.amrhassan.sqlbuilder | |
| net.amrhassan.sqlbuilder.restrictions | |
| net.amrhassan.sqlbuilder.sources |
| Modifier and Type | Method and Description |
|---|---|
void |
SelectSqlStatement.setRestriction(SqlRestriction restriction)
The restrictions used in the WHERE clause
|
| Modifier and Type | Method and Description |
|---|---|
static SqlRestriction |
SqlRestrictions.and(Collection<SqlRestriction> restrictions)
AND combination of restrictions
|
static SqlRestriction |
SqlRestrictions.and(SqlRestriction... restrictions)
AND combination of restrictions
|
static SqlRestriction |
SqlRestrictions.between(String field)
The specified field falls inside a range; (field BETWEEN ? AND ?).
|
static SqlRestriction |
SqlRestrictions.between(String field,
String lowerBound,
String upperBound)
The specified field falls inside a range; (field BETWEEN lowerBound AND upperBound).
|
static SqlRestriction |
SqlRestrictions.eq(String field)
Equality between the provided field name and '?'
|
static SqlRestriction |
SqlRestrictions.eq(String lhs,
String rhs)
Equality between two operands (lhs = rhs).
|
static SqlRestriction |
SqlRestrictions.gt(String field)
The specified field is greater-than another operand specified
by a '?' character
|
static SqlRestriction |
SqlRestrictions.gte(String field)
The specified field is greater-than-or-equal to another operand specified
by a '?' character
|
static SqlRestriction |
SqlRestrictions.in(String field,
int operandCount)
The specified field is in a list of provided parameters; (field IN (?,?,?,...))
|
static SqlRestriction |
SqlRestrictions.in(String field,
SelectSqlStatement selectStatement)
The specified field lies in the result of the provided sub-query
|
static SqlRestriction |
SqlRestrictions.lt(String field)
The specified field is less-than another operand specified
by a '?' character
|
static SqlRestriction |
SqlRestrictions.lte(String field)
The specified field is less-than-or-equal to another operand specified
by a '?' character
|
| Modifier and Type | Method and Description |
|---|---|
static SqlRestriction |
SqlRestrictions.and(SqlRestriction... restrictions)
AND combination of restrictions
|
| Modifier and Type | Method and Description |
|---|---|
static SqlRestriction |
SqlRestrictions.and(Collection<SqlRestriction> restrictions)
AND combination of restrictions
|
| Modifier and Type | Method and Description |
|---|---|
static SqlSource |
SqlSources.fullJoin(SqlSource table1,
SqlSource table2,
SqlRestriction on)
A FULL JOIN where the restriction is used for the ON clause
|
static SqlSource |
SqlSources.join(SqlSource source1,
SqlSource source2,
SqlRestriction on)
A simple JOIN source where the restriction is used for the ON clause
|
static SqlSource |
SqlSources.leftJoin(SqlSource table1,
SqlSource table2,
SqlRestriction on)
A LEFT JOIN source where the restriction is used for the ON clause
|
static SqlSource |
SqlSources.rightJoin(SqlSource table1,
SqlSource table2,
SqlRestriction on)
A RIGHT JOIN where the restriction is used for the ON clause
|
Copyright © 2013. All Rights Reserved.