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


java.lang.Object
   org.springframework.jdbc.core.simple.AbstractJdbcCall

All known Subclasses:   org.springframework.jdbc.core.simple.SimpleJdbcCall,
AbstractJdbcCall
abstract public class AbstractJdbcCall (Code)
Abstract class to provide base functionality for easy stored procedure calls based on configuration options and database metadata. This class provides the base SPI for SimpleJdbcCall .
author:
   Thomas Risberg
since:
   2.5


Field Summary
final protected  Loglogger
    

Constructor Summary
protected  AbstractJdbcCall(DataSource dataSource)
     Constructor to be used when initializing using a DataSource .
protected  AbstractJdbcCall(JdbcTemplate jdbcTemplate)
     Constructor to be used when initializing using a JdbcTemplate .

Method Summary
public  voidaddDeclaredParameter(SqlParameter parameter)
    
public  voidaddDeclaredRowMapper(String parameterName, ParameterizedRowMapper rowMapper)
    
protected  voidcheckCompiled()
     Check whether this operation has been compiled already; lazily compile it if not already compiled.
final public  voidcompile()
     Compile this JdbcCall using provided parameters and meta data plus other settings.
protected  voidcompileInternal()
     Method to perform the actual compilation.
protected  Map<String, Object>doExecute(SqlParameterSource parameterSource)
    
protected  Map<String, Object>doExecute(Map<String, Object> args)
    
protected  List<SqlParameter>getCallParameters()
     Get a List of all the call parameters to be used for call.
public  StringgetCallString()
    
protected  CallableStatementCreatorFactorygetCallableStatementFactory()
    
public  StringgetCatalogName()
     Get the catalog name used.
public  Set<String>getInParameterNames()
     Get the names of in parameters to be used.
public  JdbcTemplategetJdbcTemplate()
    
public  StringgetProcedureName()
     Get the name of the stored procedure.
protected  StringgetScalarOutParameterName()
     Get the name of a single out parameter or return value.
public  StringgetSchemaName()
     Get the schema name used.
public  booleanisCompiled()
    
public  booleanisFunction()
    
public  booleanisReturnValueRequired()
    
protected  Map<String, Object>matchInParameterValuesWithCallParameters(SqlParameterSource parameterSource)
     Match the provided in parameter values with regitered parameters and parameters defined via metedata processing.
protected  Map<String, Object>matchInParameterValuesWithCallParameters(Map<String, Object> args)
     Match the provided in parameter values with regitered parameters and parameters defined via metedata processing.
protected  voidonCompileInternal()
     Hook method that subclasses may override to react to compilation.
public  voidsetAccessCallParameterMetaData(boolean accessCallParameterMetaData)
     Specify whether the parameter metadata for the call should be used.
public  voidsetCatalogName(String catalogName)
     Set the catalog name to use.
public  voidsetFunction(boolean function)
     Specify whether this call is a function call.
public  voidsetInParameterNames(Set<String> inParameterNames)
     Set the names of in parameters to be used.
public  voidsetProcedureName(String procedureName)
     Set the name of the stored procedure.
public  voidsetReturnValueRequired(boolean b)
     Specify whether the call requires a rerurn value.
public  voidsetSchemaName(String schemaName)
    

Field Detail
logger
final protected Log logger(Code)
Logger available to subclasses




Constructor Detail
AbstractJdbcCall
protected AbstractJdbcCall(DataSource dataSource)(Code)
Constructor to be used when initializing using a DataSource .
Parameters:
  dataSource - the DataSource to be used



AbstractJdbcCall
protected AbstractJdbcCall(JdbcTemplate jdbcTemplate)(Code)
Constructor to be used when initializing using a JdbcTemplate .
Parameters:
  jdbcTemplate - the JdbcTemplate to use




Method Detail
addDeclaredParameter
public void addDeclaredParameter(SqlParameter parameter)(Code)
Add a declared parameter to teh list of parameters for the call
Parameters:
  parameter - the SqlParameter to add



addDeclaredRowMapper
public void addDeclaredRowMapper(String parameterName, ParameterizedRowMapper rowMapper)(Code)
Add a org.springframework.jdbc.core.RowMapper for the specified parameter or column
Parameters:
  parameterName - name of parameter or column
Parameters:
  rowMapper - the RowMapper implementation to use



checkCompiled
protected void checkCompiled()(Code)
Check whether this operation has been compiled already; lazily compile it if not already compiled.

Automatically called by doExecute.




compile
final public void compile() throws InvalidDataAccessApiUsageException(Code)
Compile this JdbcCall using provided parameters and meta data plus other settings. This finalizes the configuration for this object and subsequent attempts to compile are ignored. This will be implicitly called the first time an un-compiled call is executed.
throws:
  org.springframework.dao.InvalidDataAccessApiUsageException - if the object hasn'tbeen correctly initialized, for example if no DataSource has been provided



compileInternal
protected void compileInternal()(Code)
Method to perform the actual compilation. Subclasses can override this template method to perform their own compilation. Invoked after this base class's compilation is complete.



doExecute
protected Map<String, Object> doExecute(SqlParameterSource parameterSource)(Code)
Method that provides execution of the call using the passed in SqlParameterSource
Parameters:
  parameterSource - parameter names and values to be used in call Map of out parameters



doExecute
protected Map<String, Object> doExecute(Map<String, Object> args)(Code)
Method that provides execution of the call using the passed in Map of parameters
Parameters:
  args - Map of parameter name and values Map of out parameters



getCallParameters
protected List<SqlParameter> getCallParameters()(Code)
Get a List of all the call parameters to be used for call. This includes any parameters added based on meta data processing.



getCallString
public String getCallString()(Code)
Get the call string that should be used based on parameters and meta data



getCallableStatementFactory
protected CallableStatementCreatorFactory getCallableStatementFactory()(Code)
Get the CallableStatementCreatorFactory being used



getCatalogName
public String getCatalogName()(Code)
Get the catalog name used.



getInParameterNames
public Set<String> getInParameterNames()(Code)
Get the names of in parameters to be used.



getJdbcTemplate
public JdbcTemplate getJdbcTemplate()(Code)
Get the configured JdbcTemplate



getProcedureName
public String getProcedureName()(Code)
Get the name of the stored procedure.



getScalarOutParameterName
protected String getScalarOutParameterName()(Code)
Get the name of a single out parameter or return value. Used for functions or procedures with one out parameter



getSchemaName
public String getSchemaName()(Code)
Get the schema name used.



isCompiled
public boolean isCompiled()(Code)
Is this operation "compiled"? whether this operation is compiled, and ready to use.



isFunction
public boolean isFunction()(Code)
Is this call a function call?



isReturnValueRequired
public boolean isReturnValueRequired()(Code)
Does the call require a return value?



matchInParameterValuesWithCallParameters
protected Map<String, Object> matchInParameterValuesWithCallParameters(SqlParameterSource parameterSource)(Code)
Match the provided in parameter values with regitered parameters and parameters defined via metedata processing.
Parameters:
  parameterSource - the parameter vakues provided as a SqlParameterSource Map with parameter names and values



matchInParameterValuesWithCallParameters
protected Map<String, Object> matchInParameterValuesWithCallParameters(Map<String, Object> args)(Code)
Match the provided in parameter values with regitered parameters and parameters defined via metedata processing.
Parameters:
  args - the parameter values provided in a Map Map with parameter names and values



onCompileInternal
protected void onCompileInternal()(Code)
Hook method that subclasses may override to react to compilation. This implementation does nothing.



setAccessCallParameterMetaData
public void setAccessCallParameterMetaData(boolean accessCallParameterMetaData)(Code)
Specify whether the parameter metadata for the call should be used. The default is true.



setCatalogName
public void setCatalogName(String catalogName)(Code)
Set the catalog name to use.



setFunction
public void setFunction(boolean function)(Code)
Specify whether this call is a function call.



setInParameterNames
public void setInParameterNames(Set<String> inParameterNames)(Code)
Set the names of in parameters to be used.



setProcedureName
public void setProcedureName(String procedureName)(Code)
Set the name of the stored procedure.



setReturnValueRequired
public void setReturnValueRequired(boolean b)(Code)
Specify whether the call requires a rerurn value.



setSchemaName
public void setSchemaName(String schemaName)(Code)
Set the schema name to use,



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.