Java Doc for InsertResultSet.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.InsertResultSet

InsertResultSet
class InsertResultSet extends DMLWriteResultSet implements TargetResultSet(Code)
Insert the rows from the source into 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 insert plan.

Inner Class :class MyRowAllocator implements GeneratedMethod

Field Summary
protected  booleanautoincrementGenerated
     If set to true, implies that this (rep)insertresultset has generated autoincrement values.
protected  booleanbulkInsert
    
 booleanbulkInsertPerformed
    
 InsertConstantActionconstants
    
protected  DataDictionarydd
    
 NoPutResultSetsavedSource
    
protected  TableDescriptortd
    
 booleanuserSpecifiedBulkInsert
    

Constructor Summary
 InsertResultSet(NoPutResultSet source, GeneratedMethod checkGM, Activation activation)
    

Method Summary
public  voidchangedRow(ExecRow execRow, RowLocation rowLocation)
    
public  voidcleanUp()
    
public  voidfinish()
    
public  ResultSetgetAutoGeneratedKeysResultset()
    
public  ResultDescriptiongetResultDescription()
     Returns the description of the inserted rows.
public  NumberDataValuegetSetAutoincrementValue(int columnPosition, long increment)
     getSetAutoincrementValue will get the autoincrement value of the columnPosition specified for the target table.
public  voidopen()
    
public  ExecRowpreprocessSourceRow(ExecRow execRow)
     Preprocess the source row.
protected  booleanverifyBulkInsert()
     Verify that bulkInsert is allowed on this table.

Field Detail
autoincrementGenerated
protected boolean autoincrementGenerated(Code)
If set to true, implies that this (rep)insertresultset has generated autoincrement values. During refresh for example, the autoincrement values are not generated but sent from the source to target or vice-versa.



bulkInsert
protected boolean bulkInsert(Code)



bulkInsertPerformed
boolean bulkInsertPerformed(Code)



constants
InsertConstantAction constants(Code)



dd
protected DataDictionary dd(Code)



savedSource
NoPutResultSet savedSource(Code)



td
protected TableDescriptor td(Code)



userSpecifiedBulkInsert
boolean userSpecifiedBulkInsert(Code)




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

exception:
  StandardException - Thrown on error




Method Detail
changedRow
public void changedRow(ExecRow execRow, RowLocation rowLocation) throws StandardException(Code)

See Also:   TargetResultSet.changedRow
exception:
  StandardException - thrown if cursor finish ed.



cleanUp
public void cleanUp() throws StandardException(Code)

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



finish
public void finish() throws StandardException(Code)



getAutoGeneratedKeysResultset
public ResultSet getAutoGeneratedKeysResultset()(Code)

See Also:   ResultSet.getAutoGeneratedKeysResultset



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



getSetAutoincrementValue
public NumberDataValue getSetAutoincrementValue(int columnPosition, long increment) throws StandardException(Code)
getSetAutoincrementValue will get the autoincrement value of the columnPosition specified for the target table. If increment is non-zero we will also update the autoincrement value.
Parameters:
  columnPosition - position of the column in the table (1-based)
Parameters:
  increment - amount of increment.
exception:
  StandardException - if anything goes wrong.



open
public void open() throws StandardException(Code)

exception:
  StandardException - Standard Cloudscape error policy



preprocessSourceRow
public ExecRow preprocessSourceRow(ExecRow execRow) throws StandardException(Code)
Preprocess the source row. Apply any check constraints here. Do an inplace cloning of all key columns. For triggers, if we have a before row trigger, we fire it here if we can. This is useful for bulk insert where the store stands between the source and us.
Parameters:
  execRow - The source row. The preprocessed source row.
exception:
  StandardException - thrown on error



verifyBulkInsert
protected boolean verifyBulkInsert() throws StandardException(Code)
Verify that bulkInsert is allowed on this table. The execution time check to see if bulkInsert is allowed simply consists of checking to see if this is not a deferred mode insert and that the table is empty if this is not replace. A side effect of calling this method is to get an exclusive table lock on the table. Whether or not bulkInsert is allowed on this table.
exception:
  StandardException - Thrown on error



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.