Java Doc for SelectQueryBuilder.java in  » Database-ORM » ODAL » com » completex » objective » components » persistency » 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 » ODAL » com.completex.objective.components.persistency 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.completex.objective.components.persistency.SelectQueryBuilder

All known Subclasses:   com.completex.objective.components.persistency.core.impl.SelectQueryBuilderImpl,
SelectQueryBuilder
public interface SelectQueryBuilder (Code)
Helper to build complete SQL SELECT statements as well as its fragments
author:
   Gennady Krizhevsky

Inner Class :static class NullSelectQueryBuilder implements SelectQueryBuilder

Field Summary
final public static  NullSelectQueryBuilderNULL_SELECT_QUERY_BUILDER
    


Method Summary
 StringBufferconcatenate(StringBuffer buffer, Object[] strings)
    
 StringBufferconcatenate(Object[] strings)
    
 StringgetSelectSqlFragment(PersistentObjectFactory persistentFactory)
     Builds SQL SELECT clause without actual "SELECT" keyword out of PersistentObjectFactory.
 StringgetSelectSqlHeader(PersistentObjectFactory persistentFactory, boolean distinct)
     Builds SQL SELECT clause out of PersistentObjectFactory.
 StringgetSelectSqlHeader(PersistentObjectFactory persistentFactory)
     Builds SQL SELECT clause out of PersistentObjectFactory.
 StringgetSqlCall(QueryDefinition query, DatabasePolicy policy)
     Builds call statement with syntax: { ? = call <procedure-name>[<arg1>,<arg2>, ...] } { call <procedure-name>[<arg1>,<arg2>, ...] }.
 StringgetSqlCount(Query query, DatabasePolicy policy)
     Builds SQL SELECT count(1) ...
 StringgetSqlExists(Query query, DatabasePolicy policy)
     Builds SQL that can be used by Persistency#selectExists(Query) method.
 StringgetSqlIn(String prefix, Object[] values)
     Builds SQL IN clause prepended by prefix.
 StringgetSqlIn(Object[] values)
     Builds SQL IN clause.
 StringgetSqlIn(int length)
    
 StringgetSqlSelect(Query query, DatabasePolicy policy)
     Builds complete SQL SELECT statement.
 StringgetSqlSelect(QueryDefinition query, DatabasePolicy policy)
     Builds complete SQL SELECT statement.
 StringgetWhereByPoValues(PersistentObject persistentObject, boolean primaryKeyOnly)
     Builds complete SQL WHERE clause out of PersistentObjectFactory.
 StringgetWhereByPoValuesFragment(PersistentObject persistentObject, boolean primaryKeyOnly)
     Builds SQL WHERE clause without actual "WHERE" keyword out of PersistentObjectFactory.
 StringBufferin(String prefix, Object[] values)
     Builds SQL IN clause prepended by prefix.
 StringBufferin(Object[] values)
     Builds SQL IN clause.
 StringBufferin(int length)
    
 StringBufferselectSQLHeader(PersistentObjectFactory persistentFactory, boolean distinct)
     Builds SQL SELECT clause out of PersistentObjectFactory.
 StringBufferselectSQLHeader(PersistentObjectFactory persistentFactory)
     Builds SQL SELECT clause out of PersistentObjectFactory.
 StringselectSql(PersistentObjectFactory persistentFactory)
    
 StringwhereByPersistentObjectValues(PersistentObject persistentObject, boolean primaryKeyOnly)
     Builds SQL WHERE clause out of PersistentObjectFactory.

Field Detail
NULL_SELECT_QUERY_BUILDER
final public static NullSelectQueryBuilder NULL_SELECT_QUERY_BUILDER(Code)





Method Detail
concatenate
StringBuffer concatenate(StringBuffer buffer, Object[] strings)(Code)
Concatenates strings with comma as a separator
Parameters:
  buffer - to place concatenated result to
Parameters:
  strings - strings to concatenate buffer concatenated strings with comma as a separator passed as a parameter



concatenate
StringBuffer concatenate(Object[] strings)(Code)
Concatenates strings with comma as a separator
Parameters:
  strings - strings to concatenate buffer concatenated strings with comma as a separator



getSelectSqlFragment
String getSelectSqlFragment(PersistentObjectFactory persistentFactory)(Code)
Builds SQL SELECT clause without actual "SELECT" keyword out of PersistentObjectFactory.
Parameters:
  persistentFactory - PersistentObjectFactory which meta data is used to build SQL SELECT clause SQL SELECT clause without actual "SELECT" keyword



getSelectSqlHeader
String getSelectSqlHeader(PersistentObjectFactory persistentFactory, boolean distinct)(Code)
Builds SQL SELECT clause out of PersistentObjectFactory.
Parameters:
  persistentFactory - PersistentObjectFactory which meta data is used to build SQL SELECT clause
Parameters:
  distinct - if true SELECT DISTINCT clause is built SQL SELECT clause



getSelectSqlHeader
String getSelectSqlHeader(PersistentObjectFactory persistentFactory)(Code)
Builds SQL SELECT clause out of PersistentObjectFactory.
Parameters:
  persistentFactory - PersistentObjectFactory which meta data is used to build SQL SELECT clause SQL SELECT clause



getSqlCall
String getSqlCall(QueryDefinition query, DatabasePolicy policy)(Code)
Builds call statement with syntax: { ? = call <procedure-name>[<arg1>,<arg2>, ...] } { call <procedure-name>[<arg1>,<arg2>, ...] }. If sql is set on Query through Query.setSql(sql) method - it will be returned.
Parameters:
  query - QueryDefinition
Parameters:
  policy - DatabasePolicy call statement



getSqlCount
String getSqlCount(Query query, DatabasePolicy policy)(Code)
Builds SQL SELECT count(1) ... statement.
Parameters:
  query - Query
Parameters:
  policy - DatabasePolicy complete SQL SELECT statement



getSqlExists
String getSqlExists(Query query, DatabasePolicy policy)(Code)
Builds SQL that can be used by Persistency#selectExists(Query) method.
Parameters:
  query - Query
Parameters:
  policy - DatabasePolicy complete SQL that can be used by Persistency#selectExists(Query) method
See Also:   Persistency.selectExists(Query)



getSqlIn
String getSqlIn(String prefix, Object[] values)(Code)
Builds SQL IN clause prepended by prefix. Takes Object[] of not null values as an input parameter. If value is a String it gets single quoted.
Parameters:
  prefix - prefix
Parameters:
  values - Object[] of IN clause values SQL IN caluse prepended by prefix



getSqlIn
String getSqlIn(Object[] values)(Code)
Builds SQL IN clause. Takes Object[] of not null values as an input parameter. If value is a String it gets single quoted.
Parameters:
  values - Object[] of IN clause values SQL IN caluse



getSqlIn
String getSqlIn(int length)(Code)
Builds SQL IN clause with placeholders
Parameters:
  length - numberof placeholders ('?' characters) SQL IN clause with placeholders



getSqlSelect
String getSqlSelect(Query query, DatabasePolicy policy)(Code)
Builds complete SQL SELECT statement. If sql is set on Query through Query.setSql(sql) method - it will be returned.
Parameters:
  query - Query
Parameters:
  policy - DatabasePolicy complete SQL SELECT statement



getSqlSelect
String getSqlSelect(QueryDefinition query, DatabasePolicy policy)(Code)
Builds complete SQL SELECT statement. If sql is set on Query through Query.setSql(sql) method - it will be returned.
Parameters:
  query - QueryDefinition
Parameters:
  policy - DatabasePolicy complete SQL SELECT statement



getWhereByPoValues
String getWhereByPoValues(PersistentObject persistentObject, boolean primaryKeyOnly)(Code)
Builds complete SQL WHERE clause out of PersistentObjectFactory.
Parameters:
  persistentObject - PersistentObject which meta data and data is used to build SQL SELECT clause SQL WHERE clause



getWhereByPoValuesFragment
String getWhereByPoValuesFragment(PersistentObject persistentObject, boolean primaryKeyOnly)(Code)
Builds SQL WHERE clause without actual "WHERE" keyword out of PersistentObjectFactory.
Parameters:
  persistentObject - PersistentObject which meta data and data is used to build SQL SELECT clause SQL WHERE clause without actual "WHERE" keyword out of PersistentObjectFactory.



in
StringBuffer in(String prefix, Object[] values)(Code)
Builds SQL IN clause prepended by prefix. Takes Object[] of not null values as an input parameter. If value is a String it gets single quoted.
Parameters:
  prefix - prefix
Parameters:
  values - Object[] of IN clause values SQL IN caluse prepended by prefix



in
StringBuffer in(Object[] values)(Code)
Builds SQL IN clause. Takes Object[] of not null values as an input parameter. If value is a String it gets single quoted.
Parameters:
  values - Object[] of IN clause values SQL IN caluse



in
StringBuffer in(int length)(Code)
Builds SQL IN clause with placeholders
Parameters:
  length - numberof placeholders ('?' characters) SQL IN clause with placeholders



selectSQLHeader
StringBuffer selectSQLHeader(PersistentObjectFactory persistentFactory, boolean distinct)(Code)
Builds SQL SELECT clause out of PersistentObjectFactory.
Parameters:
  persistentFactory - PersistentObjectFactory which meta data is used to build SQL SELECT clause
Parameters:
  distinct - if true SELECT DISTINCT clause is built SQL SELECT clause



selectSQLHeader
StringBuffer selectSQLHeader(PersistentObjectFactory persistentFactory)(Code)
Builds SQL SELECT clause out of PersistentObjectFactory.
Parameters:
  persistentFactory - PersistentObjectFactory which meta data is used to build SQL SELECT clause SQL SELECT clause



selectSql
String selectSql(PersistentObjectFactory persistentFactory)(Code)

Parameters:
  persistentFactory - SelectSqlFragment w/o SELECT keyword



whereByPersistentObjectValues
String whereByPersistentObjectValues(PersistentObject persistentObject, boolean primaryKeyOnly)(Code)
Builds SQL WHERE clause out of PersistentObjectFactory.
Parameters:
  persistentObject - PersistentObject which meta data and data is used to build SQL SELECT clause SQL WHERE clause



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