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

UpdateResultSet
class UpdateResultSet extends DMLWriteResultSet (Code)
Update the rows from the specified base table. This will cause constraints to be checked and triggers to be executed based on the c's and t's compiled into the update plan.
author:
   ames


Field Summary
 booleanbeforeUpdateCopyRequired
    
 UpdateConstantActionconstants
    
 booleandeferred
    
protected  ConglomerateControllerdeferredBaseCC
    
protected  ConglomerateControllerdeferredUniqueCC
    
protected  long[]deferredUniqueCIDs
    
protected  boolean[]deferredUniqueCreated
    
protected  ScanController[]deferredUniqueScans
    
 intlockMode
    
 NoPutResultSetsavedSource
    

Constructor Summary
 UpdateResultSet(NoPutResultSet source, GeneratedMethod checkGM, Activation activation)
    
 UpdateResultSet(NoPutResultSet source, GeneratedMethod checkGM, Activation activation, int constantActionItem, int rsdItem)
    
 UpdateResultSet(NoPutResultSet source, GeneratedMethod checkGM, Activation activation, ConstantAction passedInConstantAction, ResultDescription passedInRsd)
    

Method Summary
public  voidcleanUp()
    
public  booleancollectAffectedRows()
    
protected static  intdecodeLockMode(LanguageConnectionContext lcc, int lockMode)
     Decode the update lock mode.

The value for update lock mode is in the 2nd 2 bytes for ExecutionContext.SERIALIZABLE_ISOLATION_LEVEL isolation level.

 voidfireAfterTriggers()
    
 voidfireBeforeTriggers()
    
public static  booleanfoundRow(ExecRow checkRow, int[] colsToCheck, TemporaryRowHolderImpl rowHolder)
    
public  ResultDescriptiongetResultDescription()
     Returns the description of the updated rows.
public  voidopen()
    
 voidrowChangerFinish()
    
 voidrunChecker(boolean restrictCheckOnly)
    
 voidsetup()
    
 voidupdateDeferredRows()
    

Field Detail
beforeUpdateCopyRequired
boolean beforeUpdateCopyRequired(Code)



constants
UpdateConstantAction constants(Code)



deferred
boolean deferred(Code)



deferredBaseCC
protected ConglomerateController deferredBaseCC(Code)



deferredUniqueCC
protected ConglomerateController deferredUniqueCC(Code)



deferredUniqueCIDs
protected long[] deferredUniqueCIDs(Code)



deferredUniqueCreated
protected boolean[] deferredUniqueCreated(Code)



deferredUniqueScans
protected ScanController[] deferredUniqueScans(Code)



lockMode
int lockMode(Code)



savedSource
NoPutResultSet savedSource(Code)




Constructor Detail
UpdateResultSet
UpdateResultSet(NoPutResultSet source, GeneratedMethod checkGM, Activation activation) throws StandardException(Code)

Parameters:
  source - update rows come from source
Parameters:
  checkGM - Generated method for enforcing check constraints
exception:
  StandardException - thrown on error



UpdateResultSet
UpdateResultSet(NoPutResultSet source, GeneratedMethod checkGM, Activation activation, int constantActionItem, int rsdItem) throws StandardException(Code)

Parameters:
  source - update rows come from source
Parameters:
  checkGM - Generated method for enforcing check constraints
Parameters:
  activation - Activation
Parameters:
  constantActionItem - id of the update constant action saved objec
Parameters:
  rsdItem - id of the Result Description saved object
exception:
  StandardException - thrown on error



UpdateResultSet
UpdateResultSet(NoPutResultSet source, GeneratedMethod checkGM, Activation activation, ConstantAction passedInConstantAction, ResultDescription passedInRsd) throws StandardException(Code)

Parameters:
  source - update rows come from source
Parameters:
  checkGM - Generated method for enforcing check constraints
exception:
  StandardException - thrown on error




Method Detail
cleanUp
public void cleanUp() throws StandardException(Code)

See Also:   ResultSet.cleanUp
exception:
  StandardException - Thrown on error



collectAffectedRows
public boolean collectAffectedRows() throws StandardException(Code)



decodeLockMode
protected static int decodeLockMode(LanguageConnectionContext lcc, int lockMode)(Code)
Decode the update lock mode.

The value for update lock mode is in the 2nd 2 bytes for ExecutionContext.SERIALIZABLE_ISOLATION_LEVEL isolation level. Otherwise (REPEATABLE READ, READ COMMITTED, and READ UNCOMMITTED) the lock mode is located in the first 2 bytes.

This is done to override the optimizer choice to provide maximum concurrency of record level locking except in SERIALIZABLE where table level locking is required in heap scans for correctness.

See Compilation!QueryTree!FromBaseTable for encoding of the lockmode.

The lock mode (record or table) to use to open the result set.
Parameters:
  lcc - The context to look for current isolation level.
Parameters:
  lockMode - The compiled encoded lock mode for this query.
exception:
  StandardException - Standard exception policy.




fireAfterTriggers
void fireAfterTriggers() throws StandardException(Code)



fireBeforeTriggers
void fireBeforeTriggers() throws StandardException(Code)



foundRow
public static boolean foundRow(ExecRow checkRow, int[] colsToCheck, TemporaryRowHolderImpl rowHolder) throws StandardException(Code)



getResultDescription
public ResultDescription getResultDescription()(Code)
Returns the description of the updated rows. REVISIT: Do we want this to return NULL instead?



open
public void open() throws StandardException(Code)

exception:
  StandardException - Standard Cloudscape error policy



rowChangerFinish
void rowChangerFinish() throws StandardException(Code)



runChecker
void runChecker(boolean restrictCheckOnly) throws StandardException(Code)



setup
void setup() throws StandardException(Code)

exception:
  StandardException - Standard Cloudscape error policy



updateDeferredRows
void updateDeferredRows() throws StandardException(Code)



Fields inherited from org.apache.derby.impl.sql.execute.DMLWriteResultSet
protected int[] baseRowReadMap(Code)(Java Doc)
protected WriteCursorConstantAction constantAction(Code)(Java Doc)
protected ExecRow deferredSparseRow(Code)(Java Doc)
protected DynamicCompiledOpenConglomInfo heapDCOCI(Code)(Java Doc)
protected DynamicCompiledOpenConglomInfo[] indexDCOCIs(Code)(Java Doc)
public int rowCount(Code)(Java Doc)
protected int[] streamStorableHeapColIds(Code)(Java Doc)

Methods inherited from org.apache.derby.impl.sql.execute.DMLWriteResultSet
String getIndexNameFromCID(long indexCID)(Code)(Java Doc)
protected ExecRow getNextRowCore(NoPutResultSet source) throws StandardException(Code)(Java Doc)
protected ExecRow makeDeferredSparseRow(ExecRow deferredBaseRow, FormatableBitSet baseRowReadList, LanguageConnectionContext lcc) throws StandardException(Code)(Java Doc)
final public int modifiedRowCount()(Code)(Java Doc)

Fields inherited from org.apache.derby.impl.sql.execute.NoRowsResultSetImpl
final Activation activation(Code)(Java Doc)
protected long beginExecutionTime(Code)(Java Doc)
protected long beginTime(Code)(Java Doc)
protected long endExecutionTime(Code)(Java Doc)
protected long endTime(Code)(Java Doc)
protected String indent(Code)(Java Doc)
final LanguageConnectionContext lcc(Code)(Java Doc)
protected int sourceDepth(Code)(Java Doc)
protected String subIndent(Code)(Java Doc)
NoPutResultSet[] subqueryTrackingArray(Code)(Java Doc)

Methods inherited from org.apache.derby.impl.sql.execute.NoRowsResultSetImpl
public boolean checkRowPosition(int isType)(Code)(Java Doc)
final public void clearCurrentRow()(Code)(Java Doc)
public void close() throws StandardException(Code)(Java Doc)
public boolean doesCommit()(Code)(Java Doc)
public static void evaluateACheckConstraint(GeneratedMethod checkGM, String checkName, long heapConglom, Activation activation) throws StandardException(Code)(Java Doc)
public static void evaluateCheckConstraints(GeneratedMethod checkGM, Activation activation) throws StandardException(Code)(Java Doc)
public void finish() 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)
final protected long getCurrentTimeMillis()(Code)(Java Doc)
public String getCursorName()(Code)(Java Doc)
public Timestamp getEndExecutionTimestamp()(Code)(Java Doc)
public long getExecuteTime()(Code)(Java Doc)
public ExecRow getFirstRow() throws StandardException(Code)(Java Doc)
public ExecRow getLastRow() throws StandardException(Code)(Java Doc)
public ExecRow getNextRow() throws StandardException(Code)(Java Doc)
public ExecRow getPreviousRow() throws StandardException(Code)(Java Doc)
public String getQueryPlanText(int depth)(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)
final public NoPutResultSet[] getSubqueryTrackingArray(int numSubqueries)(Code)(Java Doc)
public long getTimeSpent(int type)(Code)(Java Doc)
public java.sql.SQLWarning getWarnings()(Code)(Java Doc)
public boolean isClosed()(Code)(Java Doc)
public int modifiedRowCount()(Code)(Java Doc)
final public boolean returnsRows()(Code)(Java Doc)
public ExecRow setAfterLastRow() throws StandardException(Code)(Java Doc)
public ExecRow setBeforeFirstRow() throws StandardException(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.