| Package | Description |
|---|---|
| net.amrhassan.sqlbuilder | |
| net.amrhassan.sqlbuilder.sources |
| Modifier and Type | Method and Description |
|---|---|
void |
SelectSqlStatement.addSource(SqlSource source)
Add a source for the statement, which can be a simple table name
or a complex JOIN clause (see
SqlSources) |
| 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
|
static SqlSource |
SqlSources.table(String name)
A table source
|
static SqlSource |
SqlSources.table(String name,
String alias)
A table source
|
| 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.