Source Code Cross Referenced for ResultableQuery.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 Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         *  Objective Database Abstraction Layer (ODAL)
003:         *  Copyright (c) 2004, The ODAL Development Group
004:         *  All rights reserved.
005:         *  For definition of the ODAL Development Group please refer to LICENCE.txt file
006:         *
007:         *  Distributable under LGPL license.
008:         *  See terms of license at gnu.org.
009:         */package com.completex.objective.components.persistency;
010:
011:        import com.completex.objective.components.persistency.type.CollectionFactory;
012:        import com.completex.objective.components.persistency.core.impl.query.QueryContextImpl;
013:        import com.completex.objective.components.persistency.core.impl.query.QueryContext;
014:
015:        import java.util.Set;
016:
017:        /**
018:         * Container for utility methods that make sense for both Query and Call
019:         *
020:         * @author Gennady Krizhevsky
021:         */
022:        public interface ResultableQuery extends BasicQuery {
023:            //
024:            // Result Factories:
025:            //
026:            /**
027:             * Sets singular result factory.
028:             * 
029:             * @param singularResultFactory singular result factory
030:             */
031:            void setSingularResultFactory(
032:                    PersistentObjectFactory singularResultFactory);
033:
034:            /**
035:             * Returns singular result factory. Used when retrieving 
036:             * data from ResultSet.
037:             * 
038:             * @see PersistentObjectFactory
039:             * @return singular result factory
040:             */
041:            PersistentObjectFactory getSingularResultFactory();
042:
043:            /**
044:             * Nullifies singular result factory
045:             */
046:            void nullifySingularResultFactory();
047:
048:            /**
049:             * Sets multiple result factory. Multiple result factory 
050:             * is used when retrieving data from ResultSet to instantiate
051:             * proper Collection type. 
052:             * 
053:             * @param multipleResultFactory multiple result factory
054:             */
055:            void setMultipleResultFactory(
056:                    CollectionFactory multipleResultFactory);
057:
058:            /**
059:             * Returns multiple result factory
060:             * 
061:             * @return multiple result factory
062:             */
063:            CollectionFactory getMultipleResultFactory();
064:
065:            /**
066:             * Returns true query hint is set to use star in select clauses and names of PersistentObject columns when
067:             * retrieving from ResultSet.
068:             * 
069:             * @return true query hint is set to use star in select clauses and names of PersistentObject columns when
070:             * retrieving from ResultSet.
071:             */
072:            boolean isUseColumnNames();
073:
074:            /**
075:             * Sets query hint to use star in select clauses and names of PersistentObject columns when
076:             * retrieving from ResultSet.
077:             * 
078:             * @param useColumnNames
079:             */
080:            void setUseColumnNames(boolean useColumnNames);
081:
082:            //
083:            // Query type:
084:            //
085:
086:            /**
087:             * Sets flag if query is of Disconnected Page Query type. 
088:             * Disconnected Page Query object when executed brings only one page of results.
089:             * 
090:             * @param disconnectedPageQuery flag if query is of Disconnected Page Query type.
091:             */
092:            void setDisconnectedPageQuery(boolean disconnectedPageQuery);
093:
094:            /**
095:             * Returns true if query is of Disconnected Page Query type.
096:             * 
097:             * @return true if query is of Disconnected Page Query type.
098:             */
099:            boolean isDisconnectedPageQuery();
100:
101:            /**
102:             * Returns true if this query is of Select Disconnected Page Query type
103:             * 
104:             * @return true if this query is of Select Disconnected Page Query type
105:             */
106:            boolean isSelectDisconnectedPageQuery();
107:
108:            /**
109:             * Returns true if this query is of Select Connected Forward Page Query type.
110:             * Query is considered of Select Connected Forward Page Query type if
111:             * its page size is &gt 0, it !isDisconnectedPageQuery() and it !isCount() query.
112:             * When executed Select Connected Forward Page Query brings only one page of results
113:             * and does not disconnect from the database. It keeps cursor/result set open and only closes it either
114:             * when there is nothing to retrieve or on transaction commit.
115:             * 
116:             * @return true if this query is of Select Connected Forward Page Query type
117:             */
118:            boolean isSelectConnectedForwardPageQuery();
119:
120:            /**
121:             * Returns true if query closed
122:             * 
123:             * @return true if query closed
124:             */
125:            boolean isClosed();
126:
127:            /**
128:             *
129:             * @return number of parameters set
130:             */
131:            int parametersSize();
132:
133:            /**
134:             * Get parameter at specific index
135:             *
136:             * @param index
137:             * @return Parameter
138:             */
139:            Parameter getParameter(int index);
140:
141:            /**
142:             * Returns max value in LIMIT clause
143:             * 
144:             * @return max value in LIMIT clause
145:             */
146:            int getLimitMax();
147:
148:            /**
149:             * @deprecated - use setColumnFilter 
150:             * @param excludedFields
151:             */
152:            void setExcludedFields(Set excludedFields);
153:
154:            /**
155:             * Returns current CompoundColumnFilter. If filter is not set - creates a new instance of it before that.
156:             * 
157:             * @return CompoundColumnFilter
158:             */
159:            CompoundColumnFilter columnFilters();
160:
161:            /**
162:             * Return column filter set for this query
163:             * 
164:             * @return column filter set for this query
165:             */
166:            CompoundColumnFilter getCompoundColumnFilter();
167:
168:            /**
169:             * Sets column filter that allows for sparsely populated result objects
170:             * 
171:             * @see CompoundColumnFilter
172:             * @param columnFilter
173:             */
174:            void setCompoundColumnFilter(CompoundColumnFilter columnFilter);
175:
176:            boolean isDisableQueryContext();
177:
178:            void setDisableQueryContext(boolean disableQueryContext);
179:
180:            /**
181:             * Returns true if this is UNION query
182:             *
183:             * @return true if this is UNION query
184:             */
185:            boolean isUnion();
186:
187:            /**
188:             * Returns the object passed as a parameter if useQueryContext == false, or 
189:             * object with the same key if it was retrieved by this query previously 
190:             * otherwise. 
191:             * 
192:             * @param po
193:             * @return the object passed as a parameter if useQueryContext == false, or 
194:             * object with the same key if it was retrieved by this query previously 
195:             * otherwise. 
196:             */
197:            AbstractPersistentObject resolveThroughQueryContext(
198:                    AbstractPersistentObject po, QueryContext queryContext);
199:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.