Source Code Cross Referenced for FxResultSet.java in  » J2EE » fleXive » com » flexive » shared » search » 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 » J2EE » fleXive » com.flexive.shared.search 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /***************************************************************
002:         *  This file is part of the [fleXive](R) project.
003:         *
004:         *  Copyright (c) 1999-2008
005:         *  UCS - unique computing solutions gmbh (http://www.ucs.at)
006:         *  All rights reserved
007:         *
008:         *  The [fleXive](R) project is free software; you can redistribute
009:         *  it and/or modify it under the terms of the GNU General Public
010:         *  License as published by the Free Software Foundation;
011:         *  either version 2 of the License, or (at your option) any
012:         *  later version.
013:         *
014:         *  The GNU General Public License can be found at
015:         *  http://www.gnu.org/copyleft/gpl.html.
016:         *  A copy is found in the textfile GPL.txt and important notices to the
017:         *  license from the author are found in LICENSE.txt distributed with
018:         *  these libraries.
019:         *
020:         *  This library is distributed in the hope that it will be useful,
021:         *  but WITHOUT ANY WARRANTY; without even the implied warranty of
022:         *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
023:         *  GNU General Public License for more details.
024:         *
025:         *  For further information about UCS - unique computing solutions gmbh,
026:         *  please see the company website: http://www.ucs.at
027:         *
028:         *  For further information about [fleXive](R), please see the
029:         *  project website: http://www.flexive.org
030:         *
031:         *
032:         *  This copyright notice MUST APPEAR in all copies of the file!
033:         ***************************************************************/package com.flexive.shared.search;
034:
035:        import com.flexive.shared.content.FxPK;
036:
037:        import java.util.List;
038:        import java.util.Map;
039:
040:        /**
041:         * FxSQL result set
042:         *
043:         * @author Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
044:         */
045:        public interface FxResultSet {
046:
047:            /**
048:             * Returns the time this resultset was created at.
049:             * 
050:             * @return the creation time of the resultset
051:             */
052:            public long getCreationTime();
053:
054:            /**
055:             * Returns the start index specified with the search.
056:             *
057:             * @return the start index specified with the search
058:             */
059:            public int getStartIndex();
060:
061:            /**
062:             * Returns the maximum rows parameter specified with the search.
063:             *
064:             * @return the maximum rows parameter specified with the search
065:             */
066:            public int getMaxFetchRows();
067:
068:            /**
069:             * Returns the column names.
070:             *
071:             * @return the column names.
072:             */
073:            public String[] getColumnNames();
074:
075:            /**
076:             * Returns all rows.
077:             *
078:             * @return the rows
079:             */
080:            public List<Object[]> getRows();
081:
082:            /**
083:             * Get the designated column's name.
084:             *
085:             * @return the column name at the given position
086:             * @param pos the first column is 1, the second is 2, ...
087:             * @throws ArrayIndexOutOfBoundsException if the given position is not valid
088:             */
089:            public String getColumnName(int pos)
090:                    throws ArrayIndexOutOfBoundsException;
091:
092:            /**
093:             * Get the index for the given column. Returns -1 if the column name
094:             * does not exist in the result set.
095:             *
096:             * @param name  the column name
097:             * @return  the index for the given column name, 1-based
098:             */
099:            public int getColumnIndex(String name);
100:
101:            /**
102:             * Returns a map returning the column index using the lowercase column name as a key.
103:             *
104:             * @return  a map returning the column index using the lowercase column name as a key.
105:             */
106:            public Map<String, Integer> getColumnIndexMap();
107:
108:            /**
109:             * Returns the number of columns in this FxResultSet object.
110:             *
111:             * @return the number of columns
112:             */
113:            public int getColumnCount();
114:
115:            /**
116:             * Returns the number of rows in this FxResultSet object.
117:             *
118:             * @return the number of rows
119:             */
120:            public int getRowCount();
121:
122:            /**
123:             * Returns the total row count.
124:             * <p />
125:             * The total row count is the number of entries found by the search, even if they are not contained
126:             * in this resultset becaus of the specified start and end index.
127:             *
128:             * @return the total row count
129:             */
130:            public int getTotalRowCount();
131:
132:            /**
133:             * Returns true if the found entry set was truncted.
134:             *
135:             * @return true if the result was truncated
136:             */
137:            public boolean isTruncated();
138:
139:            /**
140:             * Retrieves the value of the designated column in the current row of this FxResultSet object as a
141:             * Object.
142:             *
143:             * @param rowIndex - the first row is 1, the second is 2, ...
144:             * @param columnIndex - the first column is 1, the second is 2, ...
145:             * @return the column value; if the value is SQL NULL, the value returned is null
146:             * @throws ArrayIndexOutOfBoundsException if the given row/column combination is out of range
147:             */
148:            public Object getObject(int rowIndex, int columnIndex)
149:                    throws ArrayIndexOutOfBoundsException;
150:
151:            /**
152:             * Retrieves the value of the designated column in the current row of this FxResultSet object as a
153:             * String.
154:             *
155:             * @param rowIndex - the first row is 1, the second is 2, ...
156:             * @param columnIndex - the first column is 1, the second is 2, ...
157:             * @return the column value; if the value is SQL NULL, the value returned is null
158:             * @throws ArrayIndexOutOfBoundsException if the given row/column combination is out of range
159:             */
160:            public String getString(int rowIndex, int columnIndex)
161:                    throws ArrayIndexOutOfBoundsException;
162:
163:            /**
164:             * Returns the time that was spent parsing the statement.
165:             *
166:             * @return the time that was spent parsing the statement
167:             */
168:            public int getParserExecutionTime();
169:
170:            /**
171:             * Returns the time needed to find all matching records in the database.
172:             *
173:             * @return the time needed to find all matching records in the database
174:             */
175:            public int getDbSearchTime();
176:
177:            /**
178:             * Returns the time needed to find fetch the matching records from the database.
179:             *
180:             * @return the time needed to find fetch the matching records from the database
181:             */
182:            public int getFetchTime();
183:
184:            /**
185:             * Returns the total time spent for the search.
186:             * <p />
187:             * This time includes the parse time, search time, fetch time and additional
188:             * programm logic time.
189:             *
190:             * @return the total time spent for the search
191:             */
192:            public int getTotalTime();
193:
194:            /**
195:             * Returns the location for which the query was executed.
196:             *
197:             * @return  the location for which the query was executed.
198:             */
199:            public ResultLocation getLocation();
200:
201:            /**
202:             * Returns the view type for which the query was executed.
203:             *
204:             * @return  the view type for which the query was executed.
205:             */
206:            public ResultViewType getViewType();
207:
208:            /**
209:             * Returns a list of all content types that are part of the resultset.
210:             * <p />
211:             * Items filtered by the parameter CTYPE are also taken into account.
212:             *
213:             * @return a list of all content types that are part of the resultset
214:             */
215:            public List<FxFoundType> getContentTypes();
216:
217:            /**
218:             * Return a result row iterator for this result set.
219:             *
220:             * @return  a result row iterator for this result set.
221:             */
222:            public Iterable<FxResultRow> getResultRows();
223:
224:            /**
225:             * Return a result row wrapper for the given row number.
226:             *
227:             * @param index the row number
228:             * @return  a result row wrapper for the given row number.
229:             */
230:            public FxResultRow getResultRow(int index);
231:
232:            /**
233:             * If the query created a new briefcase, its ID can be retrieved with this method.
234:             *
235:             * @return  the ID of the created briefcase, or -1 if no briefcase was created
236:             */
237:            public long getCreatedBriefcaseId();
238:
239:            /**
240:             * Projects a single column to a list.
241:             *
242:             * @param columnIndex   the 1-basedcolumn index
243:             * @return  all column values collected in a list
244:             */
245:            <T> List<T> collectColumn(int columnIndex);
246:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.