Java Doc for SimpleJdbcInsertOperations.java in  » J2EE » spring-framework-2.5 » org » springframework » jdbc » core » simple » 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 » J2EE » spring framework 2.5 » org.springframework.jdbc.core.simple 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.jdbc.core.simple.SimpleJdbcInsertOperations

All known Subclasses:   org.springframework.jdbc.core.simple.SimpleJdbcInsert,
SimpleJdbcInsertOperations
public interface SimpleJdbcInsertOperations (Code)
Interface specifying the API for a Simple JDBC Insert implemented by SimpleJdbcInsert . This interface is not often used directly, but provides the option to enhance testability, as it can easily be mocked or stubbed.
author:
   Thomas Risberg
since:
   2.5




Method Summary
 intexecute(Map<String, Object> args)
     Execute the insert using the values passed in.
 intexecute(SqlParameterSource parameterSource)
     Execute the insert using the values passed in.
 NumberexecuteAndReturnKey(Map<String, Object> args)
     Execute the insert using the values passed in and return the generated key.
 NumberexecuteAndReturnKey(SqlParameterSource parameterSource)
     Execute the insert using the values passed in and return the generated key.
 KeyHolderexecuteAndReturnKeyHolder(Map<String, Object> args)
     Execute the insert using the values passed in and return the generated keys.
 KeyHolderexecuteAndReturnKeyHolder(SqlParameterSource parameterSource)
     Execute the insert using the values passed in and return the generated keys.
 int[]executeBatch(Map<String, Object>[] batch)
     Execute a batch insert using the batch of values passed in.
 int[]executeBatch(SqlParameterSource[] batch)
     Execute a batch insert using the batch of values passed in.
 SimpleJdbcInsertOperationsusingColumns(String... columnNames)
     Specify the column names that the insert statement should be limited to use.
 SimpleJdbcInsertOperationsusingGeneratedKeyColumns(String... columnNames)
     Specify the name sof any columns that have auto generated keys.
 SimpleJdbcInsertOperationswithCatalogName(String catalogName)
     Specify the catalog name, if any, to be used for the insert.
 SimpleJdbcInsertOperationswithSchemaName(String schemaName)
     Specify the shema name, if any, to be used for the insert.
 SimpleJdbcInsertOperationswithTableName(String tableName)
     Specify the table name to be used for the insert.



Method Detail
execute
int execute(Map<String, Object> args)(Code)
Execute the insert using the values passed in.
Parameters:
  args - Map containing column names and corresponding value the number of rows affected as returned by the JDBC driver



execute
int execute(SqlParameterSource parameterSource)(Code)
Execute the insert using the values passed in.
Parameters:
  parameterSource - SqlParameterSource containing values to use for insert the number of rows affected as returned by the JDBC driver



executeAndReturnKey
Number executeAndReturnKey(Map<String, Object> args)(Code)
Execute the insert using the values passed in and return the generated key. This requires that the name of the columns with auto generated keys have been specified. This method will always return a key or throw an exception if a key was not returned.
Parameters:
  args - Map containing column names and corresponding value the generated key value



executeAndReturnKey
Number executeAndReturnKey(SqlParameterSource parameterSource)(Code)
Execute the insert using the values passed in and return the generated key. This requires that the name of the columns with auto generated keys have been specified. This method will always return a key or throw an exception if a key was not returned.
Parameters:
  parameterSource - SqlParameterSource containing values to use for insert the generated key value.



executeAndReturnKeyHolder
KeyHolder executeAndReturnKeyHolder(Map<String, Object> args)(Code)
Execute the insert using the values passed in and return the generated keys. This requires that the name of the columns with auto generated keys have been specified. This method will always return a KeyHolder but the caller must verify that it actually contains the generated keys.
Parameters:
  args - Map containing column names and corresponding value the KeyHolder containing all generated keys



executeAndReturnKeyHolder
KeyHolder executeAndReturnKeyHolder(SqlParameterSource parameterSource)(Code)
Execute the insert using the values passed in and return the generated keys. This requires that the name of the columns with auto generated keys have been specified. This method will always return a KeyHolder but the caller must verify that it actually contains the generated keys.
Parameters:
  parameterSource - SqlParameterSource containing values to use for insert the KeyHolder containing all generated keys



executeBatch
int[] executeBatch(Map<String, Object>[] batch)(Code)
Execute a batch insert using the batch of values passed in.
Parameters:
  batch - an array of Maps containing a batch of column names and corresponding value the array of number of rows affected as returned by the JDBC driver



executeBatch
int[] executeBatch(SqlParameterSource[] batch)(Code)
Execute a batch insert using the batch of values passed in.
Parameters:
  batch - an array of SqlParameterSource containing values for the batch the array of number of rows affected as returned by the JDBC driver



usingColumns
SimpleJdbcInsertOperations usingColumns(String... columnNames)(Code)
Specify the column names that the insert statement should be limited to use.
Parameters:
  columnNames - one or more column names the instance of this SimpleJdbcInsert



usingGeneratedKeyColumns
SimpleJdbcInsertOperations usingGeneratedKeyColumns(String... columnNames)(Code)
Specify the name sof any columns that have auto generated keys.
Parameters:
  columnNames - one or more column names the instance of this SimpleJdbcInsert



withCatalogName
SimpleJdbcInsertOperations withCatalogName(String catalogName)(Code)
Specify the catalog name, if any, to be used for the insert.
Parameters:
  catalogName - the name of the catalog the instance of this SimpleJdbcInsert



withSchemaName
SimpleJdbcInsertOperations withSchemaName(String schemaName)(Code)
Specify the shema name, if any, to be used for the insert.
Parameters:
  schemaName - the name of the schema the instance of this SimpleJdbcInsert



withTableName
SimpleJdbcInsertOperations withTableName(String tableName)(Code)
Specify the table name to be used for the insert.
Parameters:
  tableName - the name of the stored table the instance of this SimpleJdbcInsert



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.