Java Doc for AbstractOutParameterResultSetHandler.java in  » Testing » mockrunner-0.4 » com » mockrunner » jdbc » 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 » Testing » mockrunner 0.4 » com.mockrunner.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.mockrunner.jdbc.AbstractResultSetHandler
      com.mockrunner.jdbc.AbstractParameterResultSetHandler
         com.mockrunner.jdbc.AbstractOutParameterResultSetHandler

All known Subclasses:   com.mockrunner.jdbc.CallableStatementResultSetHandler,
AbstractOutParameterResultSetHandler
abstract public class AbstractOutParameterResultSetHandler extends AbstractParameterResultSetHandler (Code)
Abstract base class for all statement types that support out parameters, i.e. CallableStatement.




Method Summary
public  voidclearOutParameter()
     Clears the out parameters.
public  MapgetGlobalOutParameter()
     Returns the global out parameter Map.
public  booleangetMustRegisterOutParameters()
     Get if out parameter must be registered to be returned.
public  MapgetOutParameter(String sql)
     Returns the first out parameter Map that matches the specified SQL string.
public  MapgetOutParameter(String sql, Map parameters)
     Returns the first out parameter Map that matches the specified SQL string and the specified parameters.
public  voidprepareGlobalOutParameter(Map outParameters)
     Prepares the global out parameter Map.
public  voidprepareOutParameter(String sql, Map outParameters)
     Prepare an out parameter Map for a specified SQL string.
public  voidprepareOutParameter(String sql, Map outParameters, Object[] parameters)
     Prepare an out parameter Map for a specified SQL string and the specified parameters.
public  voidprepareOutParameter(String sql, Map outParameters, List parameters)
     Prepare an out parameter Map for a specified SQL string and the specified parameters.
public  voidprepareOutParameter(String sql, Map outParameters, Map parameters)
     Prepare an out parameter Map for a specified SQL string and the specified parameters.
public  voidsetMustRegisterOutParameters(boolean mustOutParameterBeRegistered)
     Set if out parameters must be registered to be returned. The default is false, i.e.



Method Detail
clearOutParameter
public void clearOutParameter()(Code)
Clears the out parameters.



getGlobalOutParameter
public Map getGlobalOutParameter()(Code)
Returns the global out parameter Map. the global out parameter Map



getMustRegisterOutParameters
public boolean getMustRegisterOutParameters()(Code)
Get if out parameter must be registered to be returned. must out parameter be registered



getOutParameter
public Map getOutParameter(String sql)(Code)
Returns the first out parameter Map that matches the specified SQL string. Please note that you can modify the match parameters with AbstractOutParameterResultSetHandler.setCaseSensitive , AbstractOutParameterResultSetHandler.setExactMatch and AbstractOutParameterResultSetHandler.setUseRegularExpressions .
Parameters:
  sql - the SQL string the corresponding out parameter Map



getOutParameter
public Map getOutParameter(String sql, Map parameters)(Code)
Returns the first out parameter Map that matches the specified SQL string and the specified parameters. Please note that you can modify the match parameters with AbstractOutParameterResultSetHandler.setCaseSensitive , AbstractOutParameterResultSetHandler.setExactMatch and AbstractOutParameterResultSetHandler.setUseRegularExpressions and the match parameters for the specified parameter list with AbstractOutParameterResultSetHandler.setExactMatchParameter .
Parameters:
  sql - the SQL string
Parameters:
  parameters - the parameters the corresponding out parameter Map



prepareGlobalOutParameter
public void prepareGlobalOutParameter(Map outParameters)(Code)
Prepares the global out parameter Map.
Parameters:
  outParameters - the global out parameter Map



prepareOutParameter
public void prepareOutParameter(String sql, Map outParameters)(Code)
Prepare an out parameter Map for a specified SQL string. Please note that you can modify the match parameters with AbstractOutParameterResultSetHandler.setCaseSensitive , AbstractOutParameterResultSetHandler.setExactMatch and AbstractOutParameterResultSetHandler.setUseRegularExpressions .
Parameters:
  sql - the SQL string
Parameters:
  outParameters - the out parameter Map



prepareOutParameter
public void prepareOutParameter(String sql, Map outParameters, Object[] parameters)(Code)
Prepare an out parameter Map for a specified SQL string and the specified parameters. The specified parameters array must contain the parameters in the correct order starting with index 0 for the first parameter. Please keep in mind that parameters in CallableStatement objects start with 1 as the first parameter. So parameters[0] maps to the parameter with index 1. Please note that you can modify the match parameters with AbstractOutParameterResultSetHandler.setCaseSensitive , AbstractOutParameterResultSetHandler.setExactMatch and AbstractOutParameterResultSetHandler.setUseRegularExpressions and the match parameters for the specified parameter list with AbstractOutParameterResultSetHandler.setExactMatchParameter .
Parameters:
  sql - the SQL string
Parameters:
  outParameters - the corresponding out parameter Map
Parameters:
  parameters - the parameters



prepareOutParameter
public void prepareOutParameter(String sql, Map outParameters, List parameters)(Code)
Prepare an out parameter Map for a specified SQL string and the specified parameters. The specified parameters array must contain the parameters in the correct order starting with index 0 for the first parameter. Please keep in mind that parameters in CallableStatement objects start with 1 as the first parameter. So parameters.get(0) maps to the parameter with index 1. Please note that you can modify the match parameters with AbstractOutParameterResultSetHandler.setCaseSensitive , AbstractOutParameterResultSetHandler.setExactMatch and AbstractOutParameterResultSetHandler.setUseRegularExpressions and the match parameters for the specified parameter list with AbstractOutParameterResultSetHandler.setExactMatchParameter .
Parameters:
  sql - the SQL string
Parameters:
  outParameters - the corresponding out parameter Map
Parameters:
  parameters - the parameters



prepareOutParameter
public void prepareOutParameter(String sql, Map outParameters, Map parameters)(Code)
Prepare an out parameter Map for a specified SQL string and the specified parameters. The specified parameters Map must contain the parameters by mapping Integer or String objects to the corresponding parameter. An Integer object is the index of the parameter. A String is the name of the parameter. Please note that you can modify the match parameters with AbstractOutParameterResultSetHandler.setCaseSensitive , AbstractOutParameterResultSetHandler.setExactMatch and AbstractOutParameterResultSetHandler.setUseRegularExpressions and the match parameters for the specified parameter list with AbstractOutParameterResultSetHandler.setExactMatchParameter .
Parameters:
  sql - the SQL string
Parameters:
  outParameters - the corresponding out parameter Map
Parameters:
  parameters - the parameters



setMustRegisterOutParameters
public void setMustRegisterOutParameters(boolean mustOutParameterBeRegistered)(Code)
Set if out parameters must be registered to be returned. The default is false, i.e. if there are matching out parameters prepared, they are returned even if the registerOutParameter methods of CallableStatement have not been called. If set to true, registerOutParameter must be called.
Parameters:
  mustOutParameterBeRegistered - must out parameter be registered



Methods inherited from com.mockrunner.jdbc.AbstractParameterResultSetHandler
public void addParameterMapForExecutedStatement(String sql, Map parameters)(Code)(Java Doc)
public void clearGeneratedKeys()(Code)(Java Doc)
public void clearResultSets()(Code)(Java Doc)
public void clearThrowsSQLException()(Code)(Java Doc)
public void clearUpdateCounts()(Code)(Java Doc)
public Map getExecutedStatementParameter()(Code)(Java Doc)
public Map getExecutedStatementParameterMap()(Code)(Java Doc)
public MockResultSet getGeneratedKeys(String sql, Map parameters)(Code)(Java Doc)
protected ParameterWrapper getMatchingParameterWrapper(String sql, Map parameters, Map statementMap)(Code)(Java Doc)
public ParameterSets getParametersForExecutedStatement(String sql)(Code)(Java Doc)
public MockResultSet getResultSet(String sql, Map parameters)(Code)(Java Doc)
public MockResultSet[] getResultSets(String sql, Map parameters)(Code)(Java Doc)
public SQLException getSQLException(String sql, Map parameters)(Code)(Java Doc)
public boolean getThrowsSQLException(String sql, Map parameters)(Code)(Java Doc)
public Integer getUpdateCount(String sql, Map parameters)(Code)(Java Doc)
public Integer[] getUpdateCounts(String sql, Map parameters)(Code)(Java Doc)
public boolean hasMultipleResultSets(String sql, Map parameters)(Code)(Java Doc)
public boolean hasMultipleUpdateCounts(String sql, Map parameters)(Code)(Java Doc)
public void prepareGeneratedKeys(String sql, MockResultSet generatedKeysResult, Object[] parameters)(Code)(Java Doc)
public void prepareGeneratedKeys(String sql, MockResultSet generatedKeysResult, List parameters)(Code)(Java Doc)
public void prepareGeneratedKeys(String sql, MockResultSet generatedKeysResult, Map parameters)(Code)(Java Doc)
public void prepareResultSet(String sql, MockResultSet resultSet, Object[] parameters)(Code)(Java Doc)
public void prepareResultSet(String sql, MockResultSet resultSet, List parameters)(Code)(Java Doc)
public void prepareResultSet(String sql, MockResultSet resultSet, Map parameters)(Code)(Java Doc)
public void prepareResultSets(String sql, MockResultSet[] resultSets, Object[] parameters)(Code)(Java Doc)
public void prepareResultSets(String sql, MockResultSet[] resultSets, List parameters)(Code)(Java Doc)
public void prepareResultSets(String sql, MockResultSet[] resultSets, Map parameters)(Code)(Java Doc)
public void prepareThrowsSQLException(String sql, Object[] parameters)(Code)(Java Doc)
public void prepareThrowsSQLException(String sql, List parameters)(Code)(Java Doc)
public void prepareThrowsSQLException(String sql, Map parameters)(Code)(Java Doc)
public void prepareThrowsSQLException(String sql, SQLException exc, Object[] parameters)(Code)(Java Doc)
public void prepareThrowsSQLException(String sql, SQLException exc, List parameters)(Code)(Java Doc)
public void prepareThrowsSQLException(String sql, SQLException exc, Map parameters)(Code)(Java Doc)
public void prepareUpdateCount(String sql, int updateCount, Object[] parameters)(Code)(Java Doc)
public void prepareUpdateCount(String sql, int updateCount, List parameters)(Code)(Java Doc)
public void prepareUpdateCount(String sql, int updateCount, Map parameters)(Code)(Java Doc)
public void prepareUpdateCounts(String sql, int[] updateCounts, Object[] parameters)(Code)(Java Doc)
public void prepareUpdateCounts(String sql, int[] updateCounts, List parameters)(Code)(Java Doc)
public void prepareUpdateCounts(String sql, int[] updateCounts, Map parameters)(Code)(Java Doc)
public void setExactMatchParameter(boolean exactMatchParameter)(Code)(Java Doc)

Methods inherited from com.mockrunner.jdbc.AbstractResultSetHandler
public void addExecutedStatement(String sql)(Code)(Java Doc)
public void addReturnedResultSet(MockResultSet resultSet)(Code)(Java Doc)
public void addReturnedResultSets(MockResultSet[] resultSets)(Code)(Java Doc)
public void clearGeneratedKeys()(Code)(Java Doc)
public void clearGlobalGeneratedKeys()(Code)(Java Doc)
public void clearGlobalResultSet()(Code)(Java Doc)
public void clearGlobalUpdateCount()(Code)(Java Doc)
public void clearResultSets()(Code)(Java Doc)
public void clearReturnsResultSet()(Code)(Java Doc)
public void clearThrowsSQLException()(Code)(Java Doc)
public void clearUpdateCounts()(Code)(Java Doc)
public MockResultSet createResultSet()(Code)(Java Doc)
public MockResultSet createResultSet(String id)(Code)(Java Doc)
public MockResultSet createResultSet(ResultSetFactory factory)(Code)(Java Doc)
public MockResultSet createResultSet(String id, ResultSetFactory factory)(Code)(Java Doc)
protected boolean getCaseSensitive()(Code)(Java Doc)
public boolean getContinueProcessingOnBatchFailure()(Code)(Java Doc)
protected boolean getExactMatch()(Code)(Java Doc)
public List getExecutedStatements()(Code)(Java Doc)
public MockResultSet getGeneratedKeys(String sql)(Code)(Java Doc)
public Map getGeneratedKeysMap()(Code)(Java Doc)
public MockResultSet getGlobalGeneratedKeys()(Code)(Java Doc)
public MockResultSet getGlobalResultSet()(Code)(Java Doc)
public MockResultSet[] getGlobalResultSets()(Code)(Java Doc)
public int getGlobalUpdateCount()(Code)(Java Doc)
public int[] getGlobalUpdateCounts()(Code)(Java Doc)
public MockResultSet getResultSet(String sql)(Code)(Java Doc)
public Map getResultSetMap()(Code)(Java Doc)
public MockResultSet[] getResultSets(String sql)(Code)(Java Doc)
public List getReturnedResultSets()(Code)(Java Doc)
public Boolean getReturnsResultSet(String sql)(Code)(Java Doc)
public SQLException getSQLException(String sql)(Code)(Java Doc)
public boolean getThrowsSQLException(String sql)(Code)(Java Doc)
public Integer getUpdateCount(String sql)(Code)(Java Doc)
public Map getUpdateCountMap()(Code)(Java Doc)
public Integer[] getUpdateCounts(String sql)(Code)(Java Doc)
protected boolean getUseRegularExpressions()(Code)(Java Doc)
public boolean hasMultipleGlobalResultSets()(Code)(Java Doc)
public boolean hasMultipleGlobalUpdateCounts()(Code)(Java Doc)
public boolean hasMultipleResultSets(String sql)(Code)(Java Doc)
public boolean hasMultipleUpdateCounts(String sql)(Code)(Java Doc)
public void prepareGeneratedKeys(String sql, MockResultSet generatedKeysResult)(Code)(Java Doc)
public void prepareGlobalGeneratedKeys(MockResultSet generatedKeysResult)(Code)(Java Doc)
public void prepareGlobalResultSet(MockResultSet resultSet)(Code)(Java Doc)
public void prepareGlobalResultSets(MockResultSet[] resultSets)(Code)(Java Doc)
public void prepareGlobalUpdateCount(int updateCount)(Code)(Java Doc)
public void prepareGlobalUpdateCounts(int[] updateCounts)(Code)(Java Doc)
public void prepareResultSet(String sql, MockResultSet resultSet)(Code)(Java Doc)
public void prepareResultSets(String sql, MockResultSet[] resultSets)(Code)(Java Doc)
public void prepareReturnsResultSet(String sql, boolean returnsResultSet)(Code)(Java Doc)
public void prepareThrowsSQLException(String sql)(Code)(Java Doc)
public void prepareThrowsSQLException(String sql, SQLException exc)(Code)(Java Doc)
public void prepareUpdateCount(String sql, int updateCount)(Code)(Java Doc)
public void prepareUpdateCounts(String sql, int[] updateCounts)(Code)(Java Doc)
public void setCaseSensitive(boolean caseSensitive)(Code)(Java Doc)
public void setContinueProcessingOnBatchFailure(boolean continueProcessingOnBatchFailure)(Code)(Java Doc)
public void setExactMatch(boolean exactMatch)(Code)(Java Doc)
public void setUseRegularExpressions(boolean useRegularExpressions)(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.