Java Doc for Query.java in  » Database-ORM » db-ojb » org » apache » ojb » broker » query » 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.query 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.ojb.broker.query.Query

All known Subclasses:   org.apache.ojb.broker.query.AbstractQueryImpl,
Query
public interface Query extends java.io.Serializable(Code)
represents Queries that can be used by the OJB PersistenceBroker to retrieve Objects from the underlying DB. Until now there are two implementations: 1. QueryByCriteria, represents SELECT * FROM ... WHERE ... queries 2. QueryByIdentity, uses Example objects or OIDs as templates for the db lookup there could additional implementations, e.g for user defined SQL For the Criteria API I reused code from the COBRA project, as you will see by their class comments. I removed all stuff that relies on knowlegde of the DataDictionary or MetaData layer. The Query and Criteria classes thus don't know how to build SQL statements, as in the COBRA original sources. I use the this classes as mere data-structures, that are processed by the OJB Accesslayer (SqlGenerator, JdbcAccess). This design will allow to reuse the org.apache.ojb.broker.query package in other projects without breaking any references. I hope this will be useful for someone.
author:
   Thomas Mahler
version:
   $Id: Query.java,v 1.17.2.3 2005/12/21 22:27:09 tomdz Exp $


Field Summary
final public static  booleanNOT_SCROLLABLE
    
final public static  intNO_END_AT_INDEX
    
final public static  intNO_START_AT_INDEX
    
final public static  booleanSCROLLABLE
    
final static  longserialVersionUID
    


Method Summary
 voidfullSize(int size)
    
 intfullSize()
    
abstract public  ClassgetBaseClass()
    
abstract public  CriteriagetCriteria()
     return the criteria of the query if present or null.
 intgetEndAtIndex()
     the row at which the query should stop retrieving results.
abstract public  ObjectgetExampleObject()
    
 intgetFetchSize()
    
public  ListgetGroupBy()
    
abstract public  CriteriagetHavingCriteria()
     return the criteria of the query if present or null.
public  ListgetOrderBy()
    
public  ListgetPrefetchedRelationships()
    
abstract public  ClassgetSearchClass()
    
 intgetStartAtIndex()
     the row at which the query should start retrieving results.
 booleangetWithExtents()
    
public  booleanisDistinct()
    
 voidsetEndAtIndex(int endAtIndex)
     Set the row at which the query should stop retrieving results, inclusive.
 voidsetFetchSize(int fetchSize)
     Set fetchSize hint for this Query.
 voidsetStartAtIndex(int startAtIndex)
    
 voidsetWithExtents(boolean withExtents)
    
public  booleanusePaging()
    

Field Detail
NOT_SCROLLABLE
final public static boolean NOT_SCROLLABLE(Code)



NO_END_AT_INDEX
final public static int NO_END_AT_INDEX(Code)



NO_START_AT_INDEX
final public static int NO_START_AT_INDEX(Code)



SCROLLABLE
final public static boolean SCROLLABLE(Code)



serialVersionUID
final static long serialVersionUID(Code)





Method Detail
fullSize
void fullSize(int size)(Code)

Parameters:
  size -



fullSize
int fullSize()(Code)



getBaseClass
abstract public Class getBaseClass()(Code)
return the base class, with respect to which all paths are done



getCriteria
abstract public Criteria getCriteria()(Code)
return the criteria of the query if present or null.



getEndAtIndex
int getEndAtIndex()(Code)
the row at which the query should stop retrieving results. If the end at index is 0, ignore all cursor control



getExampleObject
abstract public Object getExampleObject()(Code)
return the template Object if present or null



getFetchSize
int getFetchSize()(Code)
Returns the fetchSize hint for this Query the fetch size hint specific to this query(or 0 if not set / using driver default)



getGroupBy
public List getGroupBy()(Code)
Gets the groupby for ReportQueries of all Criteria and Sub Criteria the elements are of class FieldHelper List of FieldHelper



getHavingCriteria
abstract public Criteria getHavingCriteria()(Code)
return the criteria of the query if present or null.



getOrderBy
public List getOrderBy()(Code)
Answer the orderBy of all Criteria and Sub Criteria the elements are of class FieldHelper List of FieldHelper



getPrefetchedRelationships
public List getPrefetchedRelationships()(Code)
Returns the names of Relationships to be prefetched List of Strings



getSearchClass
abstract public Class getSearchClass()(Code)
return the target class, representing the extend to be searched



getStartAtIndex
int getStartAtIndex()(Code)
the row at which the query should start retrieving results. If the start at index is 0, then ignore all cursor control.



getWithExtents
boolean getWithExtents()(Code)



isDistinct
public boolean isDistinct()(Code)
return true if select DISTINCT should be used



setEndAtIndex
void setEndAtIndex(int endAtIndex)(Code)
Set the row at which the query should stop retrieving results, inclusive. first row is 1
Parameters:
  endAtIndex - ending index, inclusive



setFetchSize
void setFetchSize(int fetchSize)(Code)
Set fetchSize hint for this Query. Passed to the JDBC driver on the Statement level. It is JDBC driver-dependant if this function has any effect at all, since fetchSize is only a hint.
Parameters:
  fetchSize - the fetch size specific to this query



setStartAtIndex
void setStartAtIndex(int startAtIndex)(Code)
Set the row at which the query should start retrieving results, inclusive first row is 1
Parameters:
  startAtIndex - starting index, inclusive.



setWithExtents
void setWithExtents(boolean withExtents)(Code)



usePaging
public boolean usePaging()(Code)
Answer true if start- and endIndex is set



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