Java Doc for NoRowsResultSetImpl.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » impl » sql » execute » 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 » db derby 10.2 » org.apache.derby.impl.sql.execute 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derby.impl.sql.execute.NoRowsResultSetImpl

All known Subclasses:   org.apache.derby.impl.sql.execute.MiscResultSet,  org.apache.derby.impl.sql.execute.DMLWriteResultSet,  org.apache.derby.impl.sql.execute.CallStatementResultSet,
NoRowsResultSetImpl
abstract class NoRowsResultSetImpl implements ResultSet(Code)
This implementation of ResultSet is meant to be overridden by subtypes in the execution engine. Its primary users will be DDL, which only need to define a constructor to create the DDL object being defined. All other ResultSet operations will be handled by this superclass -- i.e., nothing is allowed to be done to a DDL Result Set, since it has no rows to provide.

This abstract class does not define the entire ResultSet interface, but leaves the 'get' half of the interface for subtypes to implement. It is package-visible only, with its methods being public for exposure by its subtypes.


author:
   ames



Field Summary
final  Activationactivation
    
protected  longbeginExecutionTime
    
protected  longbeginTime
    
protected  longendExecutionTime
    
protected  longendTime
    
protected  Stringindent
    
final  LanguageConnectionContextlcc
    
protected  intsourceDepth
    
protected  StringsubIndent
    
 NoPutResultSet[]subqueryTrackingArray
    

Constructor Summary
 NoRowsResultSetImpl(Activation activation)
    

Method Summary
public  booleancheckRowPosition(int isType)
     Determine if the cursor is before the first row in the result set.
final public  voidclearCurrentRow()
     Clear the current row.
public  voidclose()
    
public  booleandoesCommit()
     Does this ResultSet cause a commit or rollback.
public static  voidevaluateACheckConstraint(GeneratedMethod checkGM, String checkName, long heapConglom, Activation activation)
     Run a check constraint against the current row.
public static  voidevaluateCheckConstraints(GeneratedMethod checkGM, Activation activation)
     Run check constraints against the current row.
public  voidfinish()
     doesn't need to do anything, as no calls are made that need to be restricted once the result set is 'finished'.
public  ExecRowgetAbsoluteRow(int row)
     Returns the row at the absolute position from the query, and returns NULL when there is no such position.
final public  ActivationgetActivation()
    
public  ResultSetgetAutoGeneratedKeysResultset()
    
public  TimestampgetBeginExecutionTimestamp()
     Get the Timestamp for the beginning of execution.
final protected  longgetCurrentTimeMillis()
     Return the current time in milliseconds, if DEBUG and RunTimeStats is on, else return 0.
public  StringgetCursorName()
     Return the cursor name, null in this case.
public  TimestampgetEndExecutionTimestamp()
     Get the Timestamp for the end of execution.
public  longgetExecuteTime()
     Get the execution time in milliseconds.
public  ExecRowgetFirstRow()
     Returns the first row from the query, and returns NULL when there are no rows.
public  ExecRowgetLastRow()
     Returns the last row from the query, and returns NULL when there are no rows.
public  ExecRowgetNextRow()
     No rows to return, so throw an exception.
public  ExecRowgetPreviousRow()
     Returns the previous row from the query, and returns NULL when there are no more previous rows.
public  StringgetQueryPlanText(int depth)
     RESOLVE - This method will go away once it is overloaded in all subclasses. Return the query plan as a String.
Parameters:
  depth - Indentation level.
public  ExecRowgetRelativeRow(int row)
     Returns the row at the relative position from the current cursor position, and returns NULL when there is no such position.
public  ResultDescriptiongetResultDescription()
     Returns null.
public  intgetRowNumber()
     Returns the row number of the current row.
final public  NoPutResultSet[]getSubqueryTrackingArray(int numSubqueries)
    
public  longgetTimeSpent(int type)
     Return the total amount of time spent in this ResultSet
Parameters:
  type - CURRENT_RESULTSET_ONLY - time spent only in this ResultSetENTIRE_RESULTSET_TREE - time spent in this ResultSet and below.
public  java.sql.SQLWarninggetWarnings()
    
public  booleanisClosed()
     Just report that it is always closed. RESOLVE: if we don't report that we are closed, then we will wind up with a dependency problem when we send an invalidateFor on our own Statement.
public  intmodifiedRowCount()
     Returns zero.
final public  booleanreturnsRows()
    
public  ExecRowsetAfterLastRow()
     Sets the current position to after the last row and returns NULL because there is no current row.
public  ExecRowsetBeforeFirstRow()
     Sets the current position to before the first row and returns NULL because there is no current row.

Field Detail
activation
final Activation activation(Code)



beginExecutionTime
protected long beginExecutionTime(Code)



beginTime
protected long beginTime(Code)



endExecutionTime
protected long endExecutionTime(Code)



endTime
protected long endTime(Code)



indent
protected String indent(Code)



lcc
final LanguageConnectionContext lcc(Code)



sourceDepth
protected int sourceDepth(Code)



subIndent
protected String subIndent(Code)



subqueryTrackingArray
NoPutResultSet[] subqueryTrackingArray(Code)




Constructor Detail
NoRowsResultSetImpl
NoRowsResultSetImpl(Activation activation) throws StandardException(Code)




Method Detail
checkRowPosition
public boolean checkRowPosition(int isType)(Code)
Determine if the cursor is before the first row in the result set. true if before the first row, false otherwise. Returnsfalse when the result set contains no rows.



clearCurrentRow
final public void clearCurrentRow()(Code)
Clear the current row. This is done after a commit on holdable result sets. This is a no-op on result set which do not provide rows.



close
public void close() throws StandardException(Code)
No rows to return, does nothing
exception:
  StandardException - thrown on error



doesCommit
public boolean doesCommit()(Code)
Does this ResultSet cause a commit or rollback. Whether or not this ResultSet cause a commit or rollback.



evaluateACheckConstraint
public static void evaluateACheckConstraint(GeneratedMethod checkGM, String checkName, long heapConglom, Activation activation) throws StandardException(Code)
Run a check constraint against the current row. Raise an error if the check constraint is violated.
Parameters:
  checkGM - Generated code to run the check constraint.
Parameters:
  checkName - Name of the constraint to check.
Parameters:
  heapConglom - Number of heap conglomerate.
Parameters:
  activation - Class in which checkGM lives.
exception:
  StandardException - thrown on error



evaluateCheckConstraints
public static void evaluateCheckConstraints(GeneratedMethod checkGM, Activation activation) throws StandardException(Code)
Run check constraints against the current row. Raise an error if a check constraint is violated.
Parameters:
  checkGM - Generated code to run the check constraint.
Parameters:
  activation - Class in which checkGM lives.
exception:
  StandardException - thrown on error



finish
public void finish() throws StandardException(Code)
doesn't need to do anything, as no calls are made that need to be restricted once the result set is 'finished'.
exception:
  StandardException - on error



getAbsoluteRow
public ExecRow getAbsoluteRow(int row) throws StandardException(Code)
Returns the row at the absolute position from the query, and returns NULL when there is no such position. (Negative position means from the end of the result set.) Moving the cursor to an invalid position leaves the cursor positioned either before the first row (negative position) or after the last row (positive position). NOTE: An exception will be thrown on 0.
Parameters:
  row - The position. The row at the absolute position, or NULL if no such position.
exception:
  StandardException - Thrown on failure
See Also:   Row



getActivation
final public Activation getActivation()(Code)



getAutoGeneratedKeysResultset
public ResultSet getAutoGeneratedKeysResultset()(Code)

See Also:   ResultSet.getAutoGeneratedKeysResultset



getBeginExecutionTimestamp
public Timestamp getBeginExecutionTimestamp()(Code)
Get the Timestamp for the beginning of execution. Timestamp The Timestamp for the beginning of execution.



getCurrentTimeMillis
final protected long getCurrentTimeMillis()(Code)
Return the current time in milliseconds, if DEBUG and RunTimeStats is on, else return 0. (Only pay price of system call if need to.) long Current time in milliseconds.



getCursorName
public String getCursorName()(Code)
Return the cursor name, null in this case.
See Also:   ResultSet.getCursorName



getEndExecutionTimestamp
public Timestamp getEndExecutionTimestamp()(Code)
Get the Timestamp for the end of execution. Timestamp The Timestamp for the end of execution.



getExecuteTime
public long getExecuteTime()(Code)
Get the execution time in milliseconds. long The execution time in milliseconds.



getFirstRow
public ExecRow getFirstRow() throws StandardException(Code)
Returns the first row from the query, and returns NULL when there are no rows. The first row, or NULL if no rows.
exception:
  StandardException - Thrown on failure
See Also:   Row



getLastRow
public ExecRow getLastRow() throws StandardException(Code)
Returns the last row from the query, and returns NULL when there are no rows. The last row, or NULL if no rows.
exception:
  StandardException - Thrown on failure
See Also:   Row



getNextRow
public ExecRow getNextRow() throws StandardException(Code)
No rows to return, so throw an exception.
exception:
  StandardException - Always throws aStandardException to indicatethat this method is not intended tobe used.



getPreviousRow
public ExecRow getPreviousRow() throws StandardException(Code)
Returns the previous row from the query, and returns NULL when there are no more previous rows. The previous row, or NULL if no more previous rows.
exception:
  StandardException - Thrown on failure
See Also:   Row



getQueryPlanText
public String getQueryPlanText(int depth)(Code)
RESOLVE - This method will go away once it is overloaded in all subclasses. Return the query plan as a String.
Parameters:
  depth - Indentation level. String The query plan as a String.



getRelativeRow
public ExecRow getRelativeRow(int row) throws StandardException(Code)
Returns the row at the relative position from the current cursor position, and returns NULL when there is no such position. (Negative position means toward the beginning of the result set.) Moving the cursor to an invalid position leaves the cursor positioned either before the first row (negative position) or after the last row (positive position). NOTE: 0 is valid. NOTE: An exception is thrown if the cursor is not currently positioned on a row.
Parameters:
  row - The position. The row at the relative position, or NULL if no such position.
exception:
  StandardException - Thrown on failure
See Also:   Row



getResultDescription
public ResultDescription getResultDescription()(Code)
Returns null.



getRowNumber
public int getRowNumber()(Code)
Returns the row number of the current row. Row numbers start from 1 and go to 'n'. Corresponds to row numbering used to position current row in the result set (as per JDBC). the row number, or 0 if not on a row



getSubqueryTrackingArray
final public NoPutResultSet[] getSubqueryTrackingArray(int numSubqueries)(Code)

See Also:   ResultSet.getSubqueryTrackingArray



getTimeSpent
public long getTimeSpent(int type)(Code)
Return the total amount of time spent in this ResultSet
Parameters:
  type - CURRENT_RESULTSET_ONLY - time spent only in this ResultSetENTIRE_RESULTSET_TREE - time spent in this ResultSet and below. long The total amount of time spent (in milliseconds).



getWarnings
public java.sql.SQLWarning getWarnings()(Code)



isClosed
public boolean isClosed()(Code)
Just report that it is always closed. RESOLVE: if we don't report that we are closed, then we will wind up with a dependency problem when we send an invalidateFor on our own Statement. It will call lcc.verifyNoOpenResultSets(), which is really supposed to be verify that there are no read only result sets that are open.



modifiedRowCount
public int modifiedRowCount()(Code)
Returns zero.



returnsRows
final public boolean returnsRows()(Code)
Returns FALSE



setAfterLastRow
public ExecRow setAfterLastRow() throws StandardException(Code)
Sets the current position to after the last row and returns NULL because there is no current row. NULL.
exception:
  StandardException - Thrown on failure
See Also:   Row



setBeforeFirstRow
public ExecRow setBeforeFirstRow() throws StandardException(Code)
Sets the current position to before the first row and returns NULL because there is no current row. NULL.
exception:
  StandardException - Thrown on failure
See Also:   Row



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.