|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.cpa.persistence.sql.query.QueryObject
org.castor.cpa.persistence.sql.query.Select
public final class Select
Class to generate SQL select query statements.
Note: Be aware that the SQL statement will be invalid for empty compound conditions.
Constructor Summary | |
---|---|
Select(Qualifier qualifier)
Construct a SQL select statement that selects records of the table provided. |
|
Select(java.lang.String name)
Construct a SQL select statement that selects records of the table provided. |
Method Summary | |
---|---|
void |
addSelect(Column name)
Appends the provided field to the list of fields to be fetched from table. |
Condition |
getCondition()
Get condition that specifies which records to select. |
void |
setCondition(Condition condition)
Set condition that specifies which records to select. |
void |
toString(QueryContext ctx)
Append a string representation of the object to the given QueryContext. |
Methods inherited from class org.castor.cpa.persistence.sql.query.QueryObject |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Select(java.lang.String name)
name
- Name of the table to select records of.public Select(Qualifier qualifier)
qualifier
- Qualifier to select records of.Method Detail |
---|
public void addSelect(Column name)
name
- Column object representing a column to be fetched.public Condition getCondition()
public void setCondition(Condition condition)
condition
- Condition that specifies which records to select.public void toString(QueryContext ctx)
QueryObject
toString
in class QueryObject
ctx
- QueryContext to append the string representation of the object to.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |