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


java.lang.Object
   org.springframework.jdbc.core.metadata.CallMetaDataContext

CallMetaDataContext
public class CallMetaDataContext (Code)
Class to manage context metadata used for the configuration and execution of the call.
author:
   Thomas Risberg
since:
   2.5


Field Summary
final protected  Loglogger
    


Method Summary
public  StringcreateCallString()
    
public  SqlParametercreateReturnResultSetParameter(String parameterName, RowMapper rowMapper)
     Create a ReturnResultSetParameter/SqlOutParameter depending on the support provided by the JDBC driver used for the database in use.
Parameters:
  parameterName - the name of the parameter.
public  List<SqlParameter>getCallParameters()
    
public  StringgetCatalogName()
     Get the name of the catalog.
public  StringgetFunctionReturnName()
     Get the name used for the return value of the function.
public  Set<String>getLimitedInParameterNames()
     Get a limited set of in parameters to be used.
public  List<String>getOutParameterNames()
     Get a list of the out parameter names.
public  StringgetProcedureName()
     Get the name of the procedure.
public  StringgetScalarOutParameterName()
     Get the name of the single out parameter for this call.
public  StringgetSchemaName()
     Get the name of the schema.
public  voidinitializeMetaData(DataSource dataSource)
    
public  booleanisAccessCallParameterMetaData()
     Check whether call parameter metadata should be accessed.
public  booleanisFunction()
     Check whether this call is a function call.
public  booleanisReturnValueRequired()
     Check whether a return value is required.
public  Map<String, Object>matchInParameterValuesWithCallParameters(SqlParameterSource parameterSource)
    
public  Map<String, Object>matchInParameterValuesWithCallParameters(Map<String, Object> inParameters)
    
public  voidprocessParameters(List<SqlParameter> parameters)
    
public  voidsetAccessCallParameterMetaData(boolean accessCallParameterMetaData)
     Specify whether call parameter metadata should be accessed.
public  voidsetCatalogName(String catalogName)
     Specify the name of the catalog.
public  voidsetFunction(boolean function)
     Specify whether this call is a function call.
public  voidsetFunctionReturnName(String functionReturnName)
     Specify the name used for the return value of the function.
public  voidsetLimitedInParameterNames(Set<String> limitedInParameterNames)
     Specify a limited set of in parameters to be used.
public  voidsetOutParameterNames(List<String> outParameterNames)
     Specify the names of the out parameters.
public  voidsetProcedureName(String procedureName)
     Specify the name of the procedure.
public  voidsetReturnValueRequired(boolean returnValueRequired)
     Specify whether a return value is required.
public  voidsetSchemaName(String schemaName)
     Secify the name of the schema.

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





Method Detail
createCallString
public String createCallString()(Code)
Build the call string based on configuration and metadata information the call string to be used



createReturnResultSetParameter
public SqlParameter createReturnResultSetParameter(String parameterName, RowMapper rowMapper)(Code)
Create a ReturnResultSetParameter/SqlOutParameter depending on the support provided by the JDBC driver used for the database in use.
Parameters:
  parameterName - the name of the parameter. Also be used as the name of the List returned in the output.
Parameters:
  rowMapper - a RowMapper iplementation used to map the data retuned in the result set the appropriate SqlParameter



getCallParameters
public List<SqlParameter> getCallParameters()(Code)
Get the List of SqlParameter objects to be used in call execution



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



getFunctionReturnName
public String getFunctionReturnName()(Code)
Get the name used for the return value of the function.



getLimitedInParameterNames
public Set<String> getLimitedInParameterNames()(Code)
Get a limited set of in parameters to be used.



getOutParameterNames
public List<String> getOutParameterNames()(Code)
Get a list of the out parameter names.



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



getScalarOutParameterName
public String getScalarOutParameterName()(Code)
Get the name of the single out parameter for this call. If there are multiple parameters then the name of the first one is returned.



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



initializeMetaData
public void initializeMetaData(DataSource dataSource)(Code)
Initialize this class with metadata from the database
Parameters:
  dataSource - the DataSource used to retrieve metadata



isAccessCallParameterMetaData
public boolean isAccessCallParameterMetaData()(Code)
Check whether call parameter metadata should be accessed.



isFunction
public boolean isFunction()(Code)
Check whether this call is a function call.



isReturnValueRequired
public boolean isReturnValueRequired()(Code)
Check whether a return value is required.



matchInParameterValuesWithCallParameters
public Map<String, Object> matchInParameterValuesWithCallParameters(SqlParameterSource parameterSource)(Code)
Match input parameter values with the parameters declared to be used in the call
Parameters:
  parameterSource - the input values a Map containing the matched parameter names with the value taken from the input



matchInParameterValuesWithCallParameters
public Map<String, Object> matchInParameterValuesWithCallParameters(Map<String, Object> inParameters)(Code)
Match input parameter values with the parameters declared to be used in the call
Parameters:
  inParameters - the input values a Map containing the matched parameter names with the value taken from the input



processParameters
public void processParameters(List<SqlParameter> parameters)(Code)
Process the list of parameters provided and if procedure column metedata is used the parameters will be matched against the metadata information and any missing ones will be automatically included
Parameters:
  parameters - the list of parameters ti use as a base



setAccessCallParameterMetaData
public void setAccessCallParameterMetaData(boolean accessCallParameterMetaData)(Code)
Specify whether call parameter metadata should be accessed.



setCatalogName
public void setCatalogName(String catalogName)(Code)
Specify the name of the catalog.



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



setFunctionReturnName
public void setFunctionReturnName(String functionReturnName)(Code)
Specify the name used for the return value of the function.



setLimitedInParameterNames
public void setLimitedInParameterNames(Set<String> limitedInParameterNames)(Code)
Specify a limited set of in parameters to be used.



setOutParameterNames
public void setOutParameterNames(List<String> outParameterNames)(Code)
Specify the names of the out parameters.



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



setReturnValueRequired
public void setReturnValueRequired(boolean returnValueRequired)(Code)
Specify whether a return value is required.



setSchemaName
public void setSchemaName(String schemaName)(Code)
Secify the name of the schema.



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.