|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.dataaccess.common.Select
This class acts as a wrapper around select statements It takes a table name and a Condition object in its contructor A typical usage would be Select sel = new Select ("MyTable", new Condition ())
Constructor Summary | |
Select(String tableName)
|
|
Select(String tableName,
Condition condition)
|
|
Select(String tableName,
Condition condition,
OrderBy orderBy)
|
|
Select(String tableName,
Join aJoinClause,
Condition whereCondition)
|
|
Select(String tableName,
Join aJoinClause,
Condition whereCondition,
OrderBy orderBy)
|
Method Summary | |
void |
addTable(String aTableName)
Add a table to the select statement |
void |
addWhat(String columnName)
|
Join |
getJoinClause()
|
OrderBy |
getOrderBy()
|
Condition |
getWhereClause()
Get a reference to the where clause |
boolean |
isDistinct()
|
void |
setDistinct(boolean isDistinct)
|
void |
setJoinClause(Join aJoinClause)
|
void |
setOrderBy(OrderBy orderBy)
|
void |
setWhereClause(Condition aWhereCondition)
Set the where clause |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Select(String tableName, Join aJoinClause, Condition whereCondition, OrderBy orderBy)
public Select(String tableName, Join aJoinClause, Condition whereCondition)
public Select(String tableName, Condition condition, OrderBy orderBy)
public Select(String tableName, Condition condition)
public Select(String tableName)
Method Detail |
public void addTable(String aTableName)
public Condition getWhereClause()
public void setWhereClause(Condition aWhereCondition)
public Join getJoinClause()
public void setJoinClause(Join aJoinClause)
public void setDistinct(boolean isDistinct)
public boolean isDistinct()
public void addWhat(String columnName)
public OrderBy getOrderBy()
public void setOrderBy(OrderBy orderBy)
public String toString()
toString
in class Object
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |