|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.accesslayer.sql.SqlQueryStatement
org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement
public class SqlSelectStatement
Model a SELECT Statement
| Field Summary |
|---|
| Fields inherited from class org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement |
|---|
m_attrToFld |
| Fields inherited from interface org.apache.ojb.broker.accesslayer.JoinSyntaxTypes |
|---|
ORACLE_JOIN_SYNTAX, SQL92_JOIN_SYNTAX, SQL92_NOPAREN_JOIN_SYNTAX, SYBASE_JOIN_SYNTAX |
| Constructor Summary | |
|---|---|
SqlSelectStatement(Platform pf,
ClassDescriptor cld,
Query query,
Logger logger)
Constructor for SqlSelectStatement. |
|
SqlSelectStatement(SqlQueryStatement parent,
Platform pf,
ClassDescriptor cld,
Query query,
Logger logger)
Constructor for SqlSelectStatement. |
|
| Method Summary | |
|---|---|
protected void |
appendColumn(org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.TableAlias anAlias,
FieldDescriptor field,
StringBuffer buf)
Append a Column with alias: A0 name -> A0.name |
protected void |
appendField(FieldDescriptor fld,
StringBuffer buf)
Append column name. |
protected List |
appendListOfColumns(String[] columns,
StringBuffer buf)
Appends to the statement a comma separated list of column names. |
protected List |
appendListOfColumnsForSelect(StringBuffer buf)
Appends to the statement a comma separated list of column names. |
protected void |
appendTable(ClassDescriptor cld,
StringBuffer buf)
Append table name. |
protected FieldDescriptor[] |
buildFieldsForSelect(ClassDescriptor cld)
Return the Fields to be selected. |
protected String |
buildStatement()
Build the SQL String. |
int |
getColumnIndex(FieldDescriptor fld)
Returns the column index of the specified FieldDescriptor
in the ResultSet after performing the query. |
protected FieldDescriptor[] |
getFieldsForSelect()
Return the Fields to be selected. |
Query |
getQueryInstance()
Returns the Query instance
this statement based on. |
| Methods inherited from class org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement |
|---|
appendClause, appendColName, appendColName, appendColName, appendCriteria, appendGroupByClause, appendHavingClause, appendOrderByClause, appendSQLClause, appendTableWithJoins, appendWhereClause, buildSuperJoinTree, ensureColumns, ensureColumns, getAttributeInfo, getBaseClassDescriptor, getColName, getFieldDescriptor, getJoinSyntaxType, getJoinTreeToCriteria, getLogger, getQuery, getRoot, getSearchClassDescriptor, getSearchTable, getStatement, getTableAliasForClassDescriptor, setRoot, splitCriteria |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.ojb.broker.accesslayer.sql.SqlStatement |
|---|
getStatement |
| Constructor Detail |
|---|
public SqlSelectStatement(Platform pf,
ClassDescriptor cld,
Query query,
Logger logger)
pf - cld - query - logger -
public SqlSelectStatement(SqlQueryStatement parent,
Platform pf,
ClassDescriptor cld,
Query query,
Logger logger)
parent - pf - cld - query - logger - | Method Detail |
|---|
protected void appendColumn(org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.TableAlias anAlias,
FieldDescriptor field,
StringBuffer buf)
anAlias - the TableAliasfield - buf - protected List appendListOfColumnsForSelect(StringBuffer buf)
protected FieldDescriptor[] getFieldsForSelect()
protected FieldDescriptor[] buildFieldsForSelect(ClassDescriptor cld)
cld - the ClassDescriptor
protected List appendListOfColumns(String[] columns,
StringBuffer buf)
columns - defines the columns to be selected (for reports)
protected String buildStatement()
SqlQueryStatement
buildStatement in class SqlQueryStatementSqlQueryStatement.buildStatement()
protected void appendTable(ClassDescriptor cld,
StringBuffer buf)
protected void appendField(FieldDescriptor fld,
StringBuffer buf)
public Query getQueryInstance()
SelectStatementQuery instance
this statement based on.
getQueryInstance in interface SelectStatementQuery instance or null
if no query is used to generate the select string.public int getColumnIndex(FieldDescriptor fld)
SelectStatementFieldDescriptor
in the ResultSet after performing the query.
getColumnIndex in interface SelectStatementfld - The FieldDescriptor.
JdbcType.MIN_INT if
column index is not supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||