Java Doc for SqlExecutor.java in  » Database-ORM » iBATIS » com » ibatis » sqlmap » engine » execution » 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 ORM » iBATIS » com.ibatis.sqlmap.engine.execution 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibatis.sqlmap.engine.execution.SqlExecutor

SqlExecutor
public class SqlExecutor (Code)
Class responsible for executing the SQL


Field Summary
final public static  intNO_MAXIMUM_RESULTS
    
final public static  intNO_SKIPPED_RESULTS
    


Method Summary
public  voidaddBatch(RequestScope request, Connection conn, String sql, Object[] parameters)
    
public  voidcleanup(SessionScope session)
    
public  intexecuteBatch(SessionScope session)
    
public  ListexecuteBatchDetailed(SessionScope session)
     Execute a batch of statements
Parameters:
  session - - the session scope - a List of BatchResult objects (may be null if no batchhas been initiated).
public  voidexecuteQuery(RequestScope request, Connection conn, String sql, Object[] parameters, int skipResults, int maxResults, RowHandlerCallback callback)
    
public  voidexecuteQueryProcedure(RequestScope request, Connection conn, String sql, Object[] parameters, int skipResults, int maxResults, RowHandlerCallback callback)
    
public  intexecuteUpdate(RequestScope request, Connection conn, String sql, Object[] parameters)
    
public  intexecuteUpdateProcedure(RequestScope request, Connection conn, String sql, Object[] parameters)
    

Field Detail
NO_MAXIMUM_RESULTS
final public static int NO_MAXIMUM_RESULTS(Code)
Constant to let us know to include all records



NO_SKIPPED_RESULTS
final public static int NO_SKIPPED_RESULTS(Code)
Constant to let us know not to skip anything





Method Detail
addBatch
public void addBatch(RequestScope request, Connection conn, String sql, Object[] parameters) throws SQLException(Code)
Adds a statement to a batch
Parameters:
  request - - the request scope
Parameters:
  conn - - the database connection
Parameters:
  sql - - the sql statement
Parameters:
  parameters - - the parameters for the statement
throws:
  SQLException - - if the statement fails



cleanup
public void cleanup(SessionScope session)(Code)
Clean up any batches on the session
Parameters:
  session - - the session to clean up



executeBatch
public int executeBatch(SessionScope session) throws SQLException(Code)
Execute a batch of statements
Parameters:
  session - - the session scope - the number of rows impacted by the batch
throws:
  SQLException - - if a statement fails



executeBatchDetailed
public List executeBatchDetailed(SessionScope session) throws SQLException, BatchException(Code)
Execute a batch of statements
Parameters:
  session - - the session scope - a List of BatchResult objects (may be null if no batchhas been initiated). There will be one BatchResult object in thelist for each sub-batch executed
throws:
  SQLException - if a database access error occurs, or the drivedoes not support batch statements
throws:
  BatchException - if the driver throws BatchUpdateException



executeQuery
public void executeQuery(RequestScope request, Connection conn, String sql, Object[] parameters, int skipResults, int maxResults, RowHandlerCallback callback) throws SQLException(Code)
Long form of the method to execute a query
Parameters:
  request - - the request scope
Parameters:
  conn - - the database connection
Parameters:
  sql - - the SQL statement to execute
Parameters:
  parameters - - the parameters for the statement
Parameters:
  skipResults - - the number of results to skip
Parameters:
  maxResults - - the maximum number of results to return
Parameters:
  callback - - the row handler for the query
throws:
  SQLException - - if the query fails



executeQueryProcedure
public void executeQueryProcedure(RequestScope request, Connection conn, String sql, Object[] parameters, int skipResults, int maxResults, RowHandlerCallback callback) throws SQLException(Code)
Execute a stored procedure
Parameters:
  request - - the request scope
Parameters:
  conn - - the database connection
Parameters:
  sql - - the sql to call the procedure
Parameters:
  parameters - - the parameters for the procedure
Parameters:
  skipResults - - the number of results to skip
Parameters:
  maxResults - - the maximum number of results to return
Parameters:
  callback - - a row handler for processing the results
throws:
  SQLException - - if the procedure fails



executeUpdate
public int executeUpdate(RequestScope request, Connection conn, String sql, Object[] parameters) throws SQLException(Code)
Execute an update
Parameters:
  request - - the request scope
Parameters:
  conn - - the database connection
Parameters:
  sql - - the sql statement to execute
Parameters:
  parameters - - the parameters for the sql statement - the number of records changed
throws:
  SQLException - - if the update fails



executeUpdateProcedure
public int executeUpdateProcedure(RequestScope request, Connection conn, String sql, Object[] parameters) throws SQLException(Code)
Execute a stored procedure that updates data
Parameters:
  request - - the request scope
Parameters:
  conn - - the database connection
Parameters:
  sql - - the SQL to call the procedure
Parameters:
  parameters - - the parameters for the procedure - the rows impacted by the procedure
throws:
  SQLException - - if the procedure fails



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.