Java Doc for Result.java in  » Database-DBMS » hsql » org » hsqldb » 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 » hsql » org.hsqldb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.hsqldb.Result

Result
public class Result (Code)
The primary unit of comunication between Connection, Server and Session objects. An HSQLDB Result object encapsulates all requests (such as to alter or query session settings, to allocate and execute statements, etc.) and all responses (such as exception indications, update counts, result sets and result set metadata). It also implements the HSQL wire protocol for comunicating all such requests and responses across the network. Extensively rewritten and extended in successive versions of HSQLDB.
author:
   Thomas Mueller (Hypersonic SQL Group)
version:
   1.8.0
since:
   Hypersonic SQL

Inner Class :public static class ResultMetaData

Field Summary
 intdatabaseID
    
 StringmainString
    
public  ResultMetaDatametaData
    
public  intmode
    
public  RecordrRoot
    
 intsessionID
    
 intstatementID
    
 StringsubString
    
 StringsubSubString
    
 intupdateCount
    

Constructor Summary
public  Result(int type)
    
 Result(ResultMetaData md)
    
 Result(String error, String state, int code)
    
 Result(int type, int columns)
    
public  Result(int type, int[] types, int id)
    
 Result(RowInputBinary in)
    
public  Result(Throwable t, String statement)
    

Method Summary
public  voidadd(Object[] d)
    
 voidaddAll(Result r)
    
 voidappend(Result a)
     Append Result argument to this.
public  voidclear()
    
public  intgetColumnCount()
    
 intgetConnectionAttrType()
    
 intgetEndTranType()
    
public  ThrowablegetException()
    
public  StringgetMainString()
    
 Object[]getParameterData()
    
public  intgetSize()
    
public  intgetStatementID()
    
public  intgetStatementType()
    
public  StringgetSubString()
    
public  intgetType()
    
public  intgetUpdateCount()
    
public  int[]getUpdateCounts()
    
public  booleanisData()
    
public  booleanisEmpty()
    
public  booleanisError()
    
public  booleanisUpdateCount()
    
public  Iteratoriterator()
    
static  ResultnewExecuteDirectRequest(String sql)
    
public static  ResultnewFreeStmtRequest(int statementID)
    
static  ResultnewParameterDescriptionResult(int len)
    
static  ResultnewPrepareResponse(int csid, Result rsmd, Result pmd)
    
public static  ResultnewReleaseSavepointRequest(String name)
    
public static  ResultnewRollbackToSavepointRequest(String name)
    
static  ResultnewSessionAttributesResult()
    
public static  ResultnewSetSavepointRequest(String name)
    
static  ResultnewSingleColumnResult(String colName, int colType)
    
public static  Resultread(RowInputBinary rowin, DataInput datain)
     Convenience method for reading, shared by Server side.
 voidreadMultiResult(RowInputBinary in)
    
 voidremoveDifferent(Session session, Result r2, int columnCount)
     Removes all duplicate rows then removes all rows that are not shared between this and the other result, based on comparing the first columnCount columns of each result.
 voidremoveDuplicates(Session session)
     Removes duplicate rows on the basis of comparing the singificant columns of the rows in the result.
 voidremoveDuplicates(Session session, int columnCount)
     Removes duplicate rows on the basis of comparing the first columnCount columns of rows in the result.
 voidremoveSecond(Session session, Result minus, int columnCount)
     Removes duplicates then removes the contents of the second result from this one base on first columnCount of the rows in each result.
 voidsetColumnCount(int columns)
    
 voidsetConnectionAttrType(int type)
    
 voidsetEndTranType(int type)
    
public  voidsetMainString(String sql)
    
public  voidsetMaxRows(int count)
    
public  voidsetParameterData(Object[] data)
    
public  voidsetResultType(int type)
    
 voidsetRows(Result a)
    
 voidsetStatementID(int id)
    
public  voidsetStatementType(int type)
    
 voidsortResult(Session session, int[] order, int[] way)
    
 voidtrimResult(int limitstart, int limitcount)
    
 voidwrite(RowOutputBinary out)
    
public static  voidwrite(Result r, RowOutputBinary rowout, OutputStream dataout)
     Convenience method for writing, shared by Server side.

Field Detail
databaseID
int databaseID(Code)



mainString
String mainString(Code)



metaData
public ResultMetaData metaData(Code)



mode
public int mode(Code)



rRoot
public Record rRoot(Code)



sessionID
int sessionID(Code)



statementID
int statementID(Code)



subString
String subString(Code)



subSubString
String subSubString(Code)



updateCount
int updateCount(Code)




Constructor Detail
Result
public Result(int type)(Code)
General constructor



Result
Result(ResultMetaData md)(Code)



Result
Result(String error, String state, int code)(Code)
Constructor for errors
Parameters:
  error - error message
Parameters:
  state - sql state
Parameters:
  code - vendor code



Result
Result(int type, int columns)(Code)
Only used with DATA and PARAM_META_DATA results
Parameters:
  columns -



Result
public Result(int type, int[] types, int id)(Code)
For BATCHEXECUTE and BATCHEXECDIRECT



Result
Result(RowInputBinary in) throws HsqlException(Code)
Constructor declaration
Parameters:
  in -
exception:
  HsqlException - Description of the Exception



Result
public Result(Throwable t, String statement)(Code)




Method Detail
add
public void add(Object[] d)(Code)
Method declaration
Parameters:
  d -



addAll
void addAll(Result r)(Code)



append
void append(Result a)(Code)
Append Result argument to this.
Parameters:
  a -



clear
public void clear()(Code)



getColumnCount
public int getColumnCount()(Code)
Method declaration



getConnectionAttrType
int getConnectionAttrType()(Code)



getEndTranType
int getEndTranType()(Code)



getException
public Throwable getException()(Code)



getMainString
public String getMainString()(Code)



getParameterData
Object[] getParameterData()(Code)



getSize
public int getSize()(Code)
Method declaration



getStatementID
public int getStatementID()(Code)



getStatementType
public int getStatementType()(Code)



getSubString
public String getSubString()(Code)



getType
public int getType()(Code)



getUpdateCount
public int getUpdateCount()(Code)



getUpdateCounts
public int[] getUpdateCounts()(Code)



isData
public boolean isData()(Code)



isEmpty
public boolean isEmpty()(Code)



isError
public boolean isError()(Code)



isUpdateCount
public boolean isUpdateCount()(Code)



iterator
public Iterator iterator()(Code)



newExecuteDirectRequest
static Result newExecuteDirectRequest(String sql)(Code)



newFreeStmtRequest
public static Result newFreeStmtRequest(int statementID)(Code)



newParameterDescriptionResult
static Result newParameterDescriptionResult(int len)(Code)



newPrepareResponse
static Result newPrepareResponse(int csid, Result rsmd, Result pmd)(Code)



newReleaseSavepointRequest
public static Result newReleaseSavepointRequest(String name)(Code)



newRollbackToSavepointRequest
public static Result newRollbackToSavepointRequest(String name)(Code)



newSessionAttributesResult
static Result newSessionAttributesResult()(Code)
Result structure used for set/get session attributes



newSetSavepointRequest
public static Result newSetSavepointRequest(String name)(Code)



newSingleColumnResult
static Result newSingleColumnResult(String colName, int colType)(Code)



read
public static Result read(RowInputBinary rowin, DataInput datain) throws IOException, HsqlException(Code)
Convenience method for reading, shared by Server side.



readMultiResult
void readMultiResult(RowInputBinary in) throws HsqlException, IOException(Code)



removeDifferent
void removeDifferent(Session session, Result r2, int columnCount) throws HsqlException(Code)
Removes all duplicate rows then removes all rows that are not shared between this and the other result, based on comparing the first columnCount columns of each result.
Parameters:
  r2 -
throws:
  HsqlException -



removeDuplicates
void removeDuplicates(Session session) throws HsqlException(Code)
Removes duplicate rows on the basis of comparing the singificant columns of the rows in the result.
throws:
  HsqlException -



removeDuplicates
void removeDuplicates(Session session, int columnCount) throws HsqlException(Code)
Removes duplicate rows on the basis of comparing the first columnCount columns of rows in the result.
throws:
  HsqlException -



removeSecond
void removeSecond(Session session, Result minus, int columnCount) throws HsqlException(Code)
Removes duplicates then removes the contents of the second result from this one base on first columnCount of the rows in each result.
Parameters:
  minus -
throws:
  HsqlException -



setColumnCount
void setColumnCount(int columns)(Code)
Method declaration
Parameters:
  columns -



setConnectionAttrType
void setConnectionAttrType(int type)(Code)



setEndTranType
void setEndTranType(int type)(Code)



setMainString
public void setMainString(String sql)(Code)



setMaxRows
public void setMaxRows(int count)(Code)



setParameterData
public void setParameterData(Object[] data)(Code)



setResultType
public void setResultType(int type)(Code)



setRows
void setRows(Result a)(Code)
Method declaration
Parameters:
  a -



setStatementID
void setStatementID(int id)(Code)



setStatementType
public void setStatementType(int type)(Code)



sortResult
void sortResult(Session session, int[] order, int[] way) throws HsqlException(Code)
Method declaration
Parameters:
  order -
Parameters:
  way -
throws:
  HsqlException -



trimResult
void trimResult(int limitstart, int limitcount)(Code)
Method declaration
Parameters:
  limitstart - number of records to discard at the head
Parameters:
  limitcount - number of records to keep, all the rest if 0



write
void write(RowOutputBinary out) throws IOException, HsqlException(Code)



write
public static void write(Result r, RowOutputBinary rowout, OutputStream dataout) throws IOException, HsqlException(Code)
Convenience method for writing, shared by Server side.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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