Source Code Cross Referenced for ResultInterface.java in  » Database-DBMS » h2database » org » h2 » result » 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 DBMS » h2database » org.h2.result 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
003:         * (http://h2database.com/html/license.html).
004:         * Initial Developer: H2 Group
005:         */
006:        package org.h2.result;
007:
008:        import java.sql.SQLException;
009:
010:        import org.h2.value.Value;
011:
012:        /**
013:         * The result interface is used by the LocalResult and ResultRemote class.
014:         * A result may contain rows, or just an update count.
015:         */
016:        public interface ResultInterface {
017:
018:            /**
019:             * Go to the beginning of the result, that means
020:             * before the first row.
021:             */
022:            void reset() throws SQLException;
023:
024:            /**
025:             * Get the current row.
026:             *
027:             * @return the row
028:             */
029:            Value[] currentRow();
030:
031:            /**
032:             * Go to the next row.
033:             *
034:             * @return true if a row exists
035:             */
036:            boolean next() throws SQLException;
037:
038:            /**
039:             * Get the current row id, starting with 0.
040:             * -1 is returned when next() was not called yet.
041:             *
042:             * @return the row id
043:             */
044:            int getRowId();
045:
046:            /**
047:             * Get the number of visible columns.
048:             * More columns may exist internally for sorting or grouping.
049:             *
050:             * @return the number of columns
051:             */
052:            int getVisibleColumnCount();
053:
054:            /**
055:             * Get the number of rows in this object.
056:             *
057:             * @return the number of rows
058:             */
059:            int getRowCount();
060:
061:            /**
062:             * Close the result and delete any temporary files
063:             */
064:            void close();
065:
066:            /**
067:             * Get the column alias name for the column.
068:             *
069:             * @param i the column number (starting with 0)
070:             * @return the alias name
071:             */
072:            String getAlias(int i);
073:
074:            /**
075:             * Get the schema name for the column, if one exists.
076:             *
077:             * @param i the column number (starting with 0)
078:             * @return the schema name or null
079:             */
080:            String getSchemaName(int i);
081:
082:            /**
083:             * Get the table name for the column, if one exists.
084:             *
085:             * @param i the column number (starting with 0)
086:             * @return the table name or null
087:             */
088:            String getTableName(int i);
089:
090:            /**
091:             * Get the column name.
092:             *
093:             * @param i the column number (starting with 0)
094:             * @return the column name
095:             */
096:            String getColumnName(int i);
097:
098:            /**
099:             * Get the column data type.
100:             *
101:             * @param i the column number (starting with 0)
102:             * @return the column data type
103:             */
104:            int getColumnType(int i);
105:
106:            /**
107:             * Get the precision for this column.
108:             *
109:             * @param i the column number (starting with 0)
110:             * @return the precision
111:             */
112:            long getColumnPrecision(int i);
113:
114:            /**
115:             * Get the scale for this column.
116:             *
117:             * @param i the column number (starting with 0)
118:             * @return the scale
119:             */
120:            int getColumnScale(int i);
121:
122:            /**
123:             * Get the display size for this column.
124:             *
125:             * @param i the column number (starting with 0)
126:             * @return the display size
127:             */
128:            int getDisplaySize(int i);
129:
130:            /**
131:             * Check if this is an auto-increment column.
132:             *
133:             * @param i the column number (starting with 0)
134:             * @return true for auto-increment columns
135:             */
136:            boolean isAutoIncrement(int i);
137:
138:            /**
139:             * Check if this column is nullable.
140:             *
141:             * @param i the column number (starting with 0)
142:             * @return Column.NULLABLE_*
143:             */
144:            int getNullable(int i);
145:
146:            /**
147:             * Check if this result is in fact an update count.
148:             *
149:             * @return if it is an update count
150:             */
151:            boolean isUpdateCount();
152:
153:            /**
154:             * Get the update count for this result.
155:             *
156:             * @return the update count
157:             */
158:            int getUpdateCount();
159:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.