Java Doc for SqlSelectStatement.java in  » Database-ORM » db-ojb » org » apache » ojb » broker » accesslayer » sql » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » db ojb » org.apache.ojb.broker.accesslayer.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 class SqlSelectStatement extends SqlQueryStatement implements SelectStatement(Code)
Model a SELECT Statement
author:
   Jakob Braeuchi
version:
   $Id: SqlSelectStatement.java,v 1.22.2.8 2005/12/22 18:25:51 brj Exp $



Constructor Summary
public  SqlSelectStatement(Platform pf, ClassDescriptor cld, Query query, Logger logger)
     Constructor for SqlSelectStatement.
public  SqlSelectStatement(SqlQueryStatement parent, Platform pf, ClassDescriptor cld, Query query, Logger logger)
     Constructor for SqlSelectStatement.

Method Summary
protected  voidappendColumn(TableAlias anAlias, FieldDescriptor field, StringBuffer buf)
    
protected  voidappendField(FieldDescriptor fld, StringBuffer buf)
     Append column name.
protected  ListappendListOfColumns(String[] columns, StringBuffer buf)
     Appends to the statement a comma separated list of column names.
protected  ListappendListOfColumnsForSelect(StringBuffer buf)
     Appends to the statement a comma separated list of column names. DO NOT use this if order of columns is important.
protected  voidappendTable(ClassDescriptor cld, StringBuffer buf)
     Append table name.
protected  FieldDescriptor[]buildFieldsForSelect(ClassDescriptor cld)
     Return the Fields to be selected.
protected  StringbuildStatement()
    
public  intgetColumnIndex(FieldDescriptor fld)
    
protected  FieldDescriptor[]getFieldsForSelect()
     Return the Fields to be selected.
public  QuerygetQueryInstance()
    


Constructor Detail
SqlSelectStatement
public SqlSelectStatement(Platform pf, ClassDescriptor cld, Query query, Logger logger)(Code)
Constructor for SqlSelectStatement.
Parameters:
  pf -
Parameters:
  cld -
Parameters:
  query -
Parameters:
  logger -



SqlSelectStatement
public SqlSelectStatement(SqlQueryStatement parent, Platform pf, ClassDescriptor cld, Query query, Logger logger)(Code)
Constructor for SqlSelectStatement.
Parameters:
  parent -
Parameters:
  pf -
Parameters:
  cld -
Parameters:
  query -
Parameters:
  logger -




Method Detail
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 -



appendField
protected void appendField(FieldDescriptor fld, StringBuffer buf)(Code)
Append column name. Quote if necessary.



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.



appendTable
protected void appendTable(ClassDescriptor cld, StringBuffer buf)(Code)
Append table name. Quote if necessary.



buildFieldsForSelect
protected FieldDescriptor[] buildFieldsForSelect(ClassDescriptor cld)(Code)
Return the Fields to be selected.
Parameters:
  cld - the ClassDescriptor the Fields to be selected



buildStatement
protected String buildStatement()(Code)

See Also:   org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.buildStatement



getColumnIndex
public int getColumnIndex(FieldDescriptor fld)(Code)



getFieldsForSelect
protected FieldDescriptor[] getFieldsForSelect()(Code)
Return the Fields to be selected. the Fields to be selected



getQueryInstance
public Query getQueryInstance()(Code)



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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.