| java.lang.Object org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement
All known Subclasses: org.apache.ojb.broker.accesslayer.sql.SqlSelectByPkStatement,
SqlSelectStatement | public SqlSelectStatement(Platform pf, ClassDescriptor cld, Query query, Logger logger)(Code) | | Constructor for SqlSelectStatement.
Parameters: pf - Parameters: cld - Parameters: query - Parameters: logger - |
appendColumn | protected void appendColumn(TableAlias anAlias, FieldDescriptor field, StringBuffer buf)(Code) | | Append a Column with alias: A0 name -> A0.name
Parameters: anAlias - the TableAlias Parameters: field - Parameters: buf - |
appendListOfColumns | protected List appendListOfColumns(String[] columns, StringBuffer buf)(Code) | | Appends to the statement a comma separated list of column names.
Parameters: columns - defines the columns to be selected (for reports) list of column names |
appendListOfColumnsForSelect | protected List appendListOfColumnsForSelect(StringBuffer buf)(Code) | | Appends to the statement a comma separated list of column names.
DO NOT use this if order of columns is important. The row readers build reflectively and look up
column names to find values, so this is safe. In the case of update, you CANNOT use this as the
order of columns is important.
list of column names for the set of all unique columns for multiple classes mapped to thesame table. |
buildFieldsForSelect | protected FieldDescriptor[] buildFieldsForSelect(ClassDescriptor cld)(Code) | | Return the Fields to be selected.
Parameters: cld - the ClassDescriptor the Fields to be selected |
getFieldsForSelect | protected FieldDescriptor[] getFieldsForSelect()(Code) | | Return the Fields to be selected.
the Fields to be selected |
Fields inherited from org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement | protected HashMap m_attrToFld(Code)(Java Doc)
|
Methods inherited from org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement | protected void appendClause(StringBuffer clause, Criteria crit, StringBuffer stmt)(Code)(Java Doc) protected boolean appendColName(TableAlias aTableAlias, PathInfo aPathInfo, boolean translate, StringBuffer buf)(Code)(Java Doc) protected boolean appendColName(String attr, boolean useOuterJoins, UserAlias aUserAlias, StringBuffer buf)(Code)(Java Doc) protected boolean appendColName(String attr, String attrAlias, boolean useOuterJoins, UserAlias aUserAlias, StringBuffer buf)(Code)(Java Doc) protected void appendCriteria(TableAlias alias, PathInfo pathInfo, SelectionCriteria c, StringBuffer buf)(Code)(Java Doc) protected void appendGroupByClause(List groupByFields, StringBuffer buf)(Code)(Java Doc) protected void appendHavingClause(StringBuffer having, Criteria crit, StringBuffer stmt)(Code)(Java Doc) protected void appendOrderByClause(List orderByFields, List selectedFields, StringBuffer buf)(Code)(Java Doc) protected void appendSQLClause(SelectionCriteria c, StringBuffer buf)(Code)(Java Doc) protected void appendTableWithJoins(TableAlias alias, StringBuffer where, StringBuffer buf)(Code)(Java Doc) protected void appendWhereClause(StringBuffer where, Criteria crit, StringBuffer stmt)(Code)(Java Doc) abstract protected String buildStatement()(Code)(Java Doc) protected void buildSuperJoinTree(TableAlias left, ClassDescriptor cld, String name, boolean useOuterJoin)(Code)(Java Doc) protected void ensureColumns(List columns, List existingColumns)(Code)(Java Doc) protected List ensureColumns(List columns, List existingColumns, StringBuffer buf)(Code)(Java Doc) protected AttributeInfo getAttributeInfo(String attr, boolean useOuterJoins, UserAlias aUserAlias, Map pathClasses)(Code)(Java Doc) protected ClassDescriptor getBaseClassDescriptor()(Code)(Java Doc) protected String getColName(TableAlias aTableAlias, PathInfo aPathInfo, boolean translate)(Code)(Java Doc) protected FieldDescriptor getFieldDescriptor(TableAlias aTableAlias, PathInfo aPathInfo)(Code)(Java Doc) protected byte getJoinSyntaxType()(Code)(Java Doc) protected HashMap getJoinTreeToCriteria()(Code)(Java Doc) protected Logger getLogger()(Code)(Java Doc) protected QueryByCriteria getQuery()(Code)(Java Doc) protected TableAlias getRoot()(Code)(Java Doc) protected ClassDescriptor getSearchClassDescriptor()(Code)(Java Doc) protected TableAlias getSearchTable()(Code)(Java Doc) public String getStatement()(Code)(Java Doc) protected TableAlias getTableAliasForClassDescriptor(ClassDescriptor aCld)(Code)(Java Doc) protected void setRoot(TableAlias root)(Code)(Java Doc) protected void splitCriteria()(Code)(Java Doc)
|
|
|