Java Doc for NoPutResultSetImpl.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.BasicNoPutResultSetImpl
      org.apache.derby.impl.sql.execute.NoPutResultSetImpl

All known Subclasses:   org.apache.derby.impl.sql.execute.GenericAggregateResultSet,  org.apache.derby.impl.sql.execute.SetOpResultSet,  org.apache.derby.impl.sql.execute.RowResultSet,  org.apache.derby.impl.sql.execute.SortResultSet,  org.apache.derby.impl.sql.execute.AnyResultSet,  org.apache.derby.impl.sql.execute.DependentResultSet,  org.apache.derby.impl.sql.execute.OnceResultSet,  org.apache.derby.impl.sql.execute.NormalizeResultSet,  org.apache.derby.impl.sql.execute.VTIResultSet,  org.apache.derby.impl.sql.execute.IndexRowToBaseRowResultSet,  org.apache.derby.impl.sql.execute.JoinResultSet,  org.apache.derby.impl.sql.execute.ScrollInsensitiveResultSet,  org.apache.derby.impl.sql.execute.UnionResultSet,  org.apache.derby.impl.sql.execute.CurrentOfResultSet,  org.apache.derby.impl.sql.execute.TableScanResultSet,  org.apache.derby.impl.sql.execute.HashTableResultSet,  org.apache.derby.impl.sql.execute.ProjectRestrictResultSet,  org.apache.derby.impl.sql.execute.HashScanResultSet,  org.apache.derby.impl.sql.execute.LastIndexKeyResultSet,  org.apache.derby.impl.sql.execute.MaterializedResultSet,
NoPutResultSetImpl
abstract class NoPutResultSetImpl extends BasicNoPutResultSetImpl (Code)
Abstract ResultSet with built in Activation support for operations that return rows but do not allow the caller to put data on output pipes. This implementation of ResultSet is meant to be overridden by subtypes in the execution engine. Its primary users will be DML operations that do not put data on output pipes, but simply return it due to being result sets themselves.

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.



Field Summary
 GeneratedMethodcheckGM
    
protected  int[]checkNullCols
    
protected  ExecRowclonedExecRow
    
protected  intcncLen
    
 longheapConglomerate
    
protected  Stringindent
    
final public  intresultSetNumber
    
protected  intsourceDepth
    
protected  StringsubIndent
    
protected  TargetResultSettargetResultSet
    

Constructor Summary
 NoPutResultSetImpl(Activation activation, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost)
    

Method Summary
final public  voidclearCurrentRow()
    
protected  voidclearOrderableCache(Qualifier[][] qualifiers)
     Clear the Orderable cache for each qualifier.
public  voidclose()
     Close needs to invalidate any dependent statements, if this is a cursor.
public  voidcloseRowSource()
    
public  StringgetCursorName()
     Return my cursor name for JDBC.
public  DataValueDescriptor[]getNextRowFromRowSource()
    
public  ResultDescriptiongetResultDescription()
    
public  FormatableBitSetgetValidColumns()
    
public  booleanisForUpdate()
    
public  voidmarkRowAsDeleted()
    
public  booleanneedsRowLocation()
    
public  booleanneedsToClone()
    
public  voidpositionScanAtRowLocation(RowLocation rl)
    
public static  StringprintQualifiers(Qualifier[][] qualifiers)
    
public  intresultSetNumber()
    
public  voidrowLocation(RowLocation rl)
    
protected  voidsetCheckConstraints(GeneratedMethod checkGM)
    
final public  voidsetCurrentRow(ExecRow row)
     Set the current row to the row passed in.
protected  voidsetHeapConglomerate(long heapConglomerate)
    
public  voidsetNeedsRowLocation(boolean needsRowLocation)
    
public  voidsetTargetResultSet(TargetResultSet trs)
    
protected  booleanskipRow(ExecRow row)
     Return true if we should skip the scan due to nulls in the row when the start or stop positioners on the columns containing null do not implement ordered null semantics.
protected  booleanskipScan(ExecIndexRow startPosition, ExecIndexRow stopPosition)
     Return true if we should skip the scan due to nulls in the start or stop position when the predicate on the column(s) in question do not implement ordered null semantics.
public  voidupdateRow(ExecRow row)
    

Field Detail
checkGM
GeneratedMethod checkGM(Code)



checkNullCols
protected int[] checkNullCols(Code)



clonedExecRow
protected ExecRow clonedExecRow(Code)



cncLen
protected int cncLen(Code)



heapConglomerate
long heapConglomerate(Code)



indent
protected String indent(Code)



resultSetNumber
final public int resultSetNumber(Code)



sourceDepth
protected int sourceDepth(Code)



subIndent
protected String subIndent(Code)



targetResultSet
protected TargetResultSet targetResultSet(Code)




Constructor Detail
NoPutResultSetImpl
NoPutResultSetImpl(Activation activation, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost)(Code)
Constructor
Parameters:
  activation - The activation
Parameters:
  resultSetNumber - The resultSetNumber
Parameters:
  optimizerEstimatedRowCount - The optimizer's estimated numberof rows.
Parameters:
  optimizerEstimatedCost - The optimizer's estimated cost




Method Detail
clearCurrentRow
final public void clearCurrentRow()(Code)
Clear the current row



clearOrderableCache
protected void clearOrderableCache(Qualifier[][] qualifiers) throws StandardException(Code)
Clear the Orderable cache for each qualifier. (This should be done each time a scan/conglomerate with qualifiers is reopened.)
Parameters:
  qualifiers - The Qualifiers to clear



close
public void close() throws StandardException(Code)
Close needs to invalidate any dependent statements, if this is a cursor. Must be called by any subclasses that override close().
exception:
  StandardException - on error



closeRowSource
public void closeRowSource()(Code)

See Also:   RowSource.closeRowSource



getCursorName
public String getCursorName()(Code)
Return my cursor name for JDBC. Can be null.



getNextRowFromRowSource
public DataValueDescriptor[] getNextRowFromRowSource() throws StandardException(Code)

See Also:   RowSource.getNextRowFromRowSource
exception:
  StandardException - on error



getResultDescription
public ResultDescription getResultDescription()(Code)
Returns the description of the table's rows



getValidColumns
public FormatableBitSet getValidColumns()(Code)

See Also:   RowSource.getValidColumns



isForUpdate
public boolean isForUpdate()(Code)
Is this ResultSet or it's source result set for update This method will be overriden in the inherited Classes if it is true Whether or not the result set is for update.



markRowAsDeleted
public void markRowAsDeleted() throws StandardException(Code)

See Also:   NoPutResultSet.markRowAsDeleted
See Also:   This method is result sets used for scroll insensitive updatable
See Also:   result sets for other result set it is a no-op.



needsRowLocation
public boolean needsRowLocation()(Code)

See Also:   RowLocationRetRowSource.needsRowLocation



needsToClone
public boolean needsToClone()(Code)

See Also:   RowSource.needsToClone



positionScanAtRowLocation
public void positionScanAtRowLocation(RowLocation rl) throws StandardException(Code)

See Also:   NoPutResultSet.positionScanAtRowLocation
See Also:   This method is result sets used for scroll insensitive updatable
See Also:   result sets for other result set it is a no-op.



printQualifiers
public static String printQualifiers(Qualifier[][] qualifiers)(Code)
Return a 2-d array of Qualifiers as a String



resultSetNumber
public int resultSetNumber()(Code)

See Also:   NoPutResultSet.resultSetNumber
See Also:   



rowLocation
public void rowLocation(RowLocation rl) throws StandardException(Code)

See Also:   RowLocationRetRowSource.rowLocation
exception:
  StandardException - on error



setCheckConstraints
protected void setCheckConstraints(GeneratedMethod checkGM)(Code)
Set the GeneratedMethod for enforcing check constraints
Parameters:
  checkGM - The GeneratedMethod for enforcing any check constraints.



setCurrentRow
final public void setCurrentRow(ExecRow row)(Code)
Set the current row to the row passed in.
Parameters:
  row - the new current row



setHeapConglomerate
protected void setHeapConglomerate(long heapConglomerate)(Code)
Set the heap conglomerate number (used in enforcing check constraints)
Parameters:
  heapConglomerate - The heap conglomerate number.



setNeedsRowLocation
public void setNeedsRowLocation(boolean needsRowLocation)(Code)

See Also:   NoPutResultSet.setNeedsRowLocation
See Also:   



setTargetResultSet
public void setTargetResultSet(TargetResultSet trs)(Code)

See Also:   NoPutResultSet.setTargetResultSet
See Also:   



skipRow
protected boolean skipRow(ExecRow row) throws StandardException(Code)
Return true if we should skip the scan due to nulls in the row when the start or stop positioners on the columns containing null do not implement ordered null semantics.
Parameters:
  row - An index row true means skip the row because it has null



skipScan
protected boolean skipScan(ExecIndexRow startPosition, ExecIndexRow stopPosition) throws StandardException(Code)
Return true if we should skip the scan due to nulls in the start or stop position when the predicate on the column(s) in question do not implement ordered null semantics. beetle 4464, we also compact the areNullsOrdered flags into checkNullCols here.
Parameters:
  startPosition - An index row for the start position
Parameters:
  stopPosition - An index row for the stop position true means not to do the scan



updateRow
public void updateRow(ExecRow row) throws StandardException(Code)

See Also:   NoPutResultSet.updateRow
See Also:   This method is result sets used for scroll insensitive updatable
See Also:   result sets for other result set it is a no-op.



Fields inherited from org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl
protected Activation activation(Code)(Java Doc)
public long beginTime(Code)(Java Doc)
public long closeTime(Code)(Java Doc)
ExecRow compactRow(Code)(Java Doc)
public long constructorTime(Code)(Java Doc)
protected ExecRow currentRow(Code)(Java Doc)
protected long endExecutionTime(Code)(Java Doc)
protected boolean finished(Code)(Java Doc)
protected boolean isOpen(Code)(Java Doc)
protected boolean isTopResultSet(Code)(Java Doc)
protected LanguageConnectionContext lcc(Code)(Java Doc)
public long nextTime(Code)(Java Doc)
public int numOpens(Code)(Java Doc)
public long openTime(Code)(Java Doc)
public double optimizerEstimatedCost(Code)(Java Doc)
public double optimizerEstimatedRowCount(Code)(Java Doc)
ResultDescription resultDescription(Code)(Java Doc)
public int rowsFiltered(Code)(Java Doc)
public int rowsSeen(Code)(Java Doc)
protected long startExecutionTime(Code)(Java Doc)
public NoPutResultSet[] subqueryTrackingArray(Code)(Java Doc)

Methods inherited from org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl
final protected void addWarning(SQLWarning w)(Code)(Java Doc)
protected void attachStatementContext() throws StandardException(Code)(Java Doc)
public void checkCancellationFlag() throws StandardException(Code)(Java Doc)
public boolean checkRowPosition(int isType) throws StandardException(Code)(Java Doc)
public void cleanUp() throws StandardException(Code)(Java Doc)
final protected String dumpTimeStats(String indent, String subIndent)(Code)(Java Doc)
public void finish() throws StandardException(Code)(Java Doc)
final protected void finishAndRTS() throws StandardException(Code)(Java Doc)
public ExecRow getAbsoluteRow(int row) throws StandardException(Code)(Java Doc)
final public Activation getActivation()(Code)(Java Doc)
public ResultSet getAutoGeneratedKeysResultset()(Code)(Java Doc)
public Timestamp getBeginExecutionTimestamp()(Code)(Java Doc)
protected ExecRow getCompactRow(ExecRow candidate, FormatableBitSet accessedCols, FormatableBitSet otherCols, boolean isKeyed) throws StandardException(Code)(Java Doc)
final protected long getCurrentTimeMillis()(Code)(Java Doc)
final protected long getElapsedMillis(long beginTime)(Code)(Java Doc)
public Timestamp getEndExecutionTimestamp()(Code)(Java Doc)
public double getEstimatedRowCount()(Code)(Java Doc)
public long getExecuteTime()(Code)(Java Doc)
final ExecutionFactory getExecutionFactory()(Code)(Java Doc)
public ExecRow getFirstRow() throws StandardException(Code)(Java Doc)
final protected LanguageConnectionContext getLanguageConnectionContext()(Code)(Java Doc)
public ExecRow getLastRow() throws StandardException(Code)(Java Doc)
final public ExecRow getNextRow() throws StandardException(Code)(Java Doc)
abstract public ExecRow getNextRowCore() throws StandardException(Code)(Java Doc)
public int getPointOfAttachment()(Code)(Java Doc)
public ExecRow getPreviousRow() throws StandardException(Code)(Java Doc)
public ExecRow getRelativeRow(int row) throws StandardException(Code)(Java Doc)
public ResultDescription getResultDescription()(Code)(Java Doc)
public int getRowNumber()(Code)(Java Doc)
public int getScanIsolationLevel()(Code)(Java Doc)
final public NoPutResultSet[] getSubqueryTrackingArray(int numSubqueries)(Code)(Java Doc)
final TransactionController getTransactionController()(Code)(Java Doc)
final public SQLWarning getWarnings()(Code)(Java Doc)
public boolean isClosed()(Code)(Java Doc)
public boolean isForUpdate()(Code)(Java Doc)
public void markAsTopResultSet()(Code)(Java Doc)
final public int modifiedRowCount()(Code)(Java Doc)
final public void open() throws StandardException(Code)(Java Doc)
abstract public void openCore() throws StandardException(Code)(Java Doc)
public void reopenCore() throws StandardException(Code)(Java Doc)
public boolean requiresRelocking()(Code)(Java Doc)
public int resultSetNumber()(Code)(Java Doc)
public boolean returnsRows()(Code)(Java Doc)
public ExecRow setAfterLastRow() throws StandardException(Code)(Java Doc)
public ExecRow setBeforeFirstRow() throws StandardException(Code)(Java Doc)
protected ExecRow setCompactRow(ExecRow candidateRow, ExecRow compactRow)(Code)(Java Doc)
final protected void setCompatRow(ExecRow compactRow, Object[] sourceRow)(Code)(Java Doc)

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.