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


com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactory

ResultObjectFactory
public interface ResultObjectFactory (Code)
iBATIS uses an implementation of this interface to create result objects after the execution of a statement. To use, specify your implementation class as the type for the "resultObjectFactory" element in the SqlMapConfig. Any implementation of this interface must have a public no argument constructor. Note that iBATIS makes use of this interface through the ResultObjectFactoryUtil class.
author:
   Jeff Butler




Method Summary
 ObjectcreateInstance(String statementId, Class clazz)
     Returns a new instance of the requested class. iBATIS will call this method in these circumstances:
  • When processing a result set - to create new instances of result objects
  • When processing the output parameters of a stored procedure - to create instances of OUTPUT parameters
  • When processing a nested select - to create instances of parameter objects on the nested select
  • When processing result maps with nested result maps.
 voidsetProperty(String name, String value)
     Called for each property configured in the SqlMapCong file.



Method Detail
createInstance
Object createInstance(String statementId, Class clazz) throws InstantiationException, IllegalAccessException(Code)
Returns a new instance of the requested class. iBATIS will call this method in these circumstances:
  • When processing a result set - to create new instances of result objects
  • When processing the output parameters of a stored procedure - to create instances of OUTPUT parameters
  • When processing a nested select - to create instances of parameter objects on the nested select
  • When processing result maps with nested result maps. iBATIS will ask the factory to create an instance of the nested object. If the nested object is some implementation of java.util.Collection then iBATIS will supply default implementations of the common interfaces if the factory chooses not to create the object. If the embedded object is a java.util.List or java.util.Collection the default behavior is to create an java.util.ArrayList. If the embedded object is a java.util.Set the default behavior is to create a java.util.HashSet.
If you return null from this method, iBATIS will attempt to create in instance of the class with it's normal mechanism. This means that you can selectively choose which objects to create with this interface. In the event that you choose not to create an object, iBATIS will translate some common interfaces to their common implementations. If the requested class is List or Collection iBATIS will create an ArrayList. If the requested class is Set then iBATIS will create a HashSet. But these rules only apply if you choose not to create the object. So you can use this factory to supply custom implementations of those interfaces if you so desire.
Parameters:
  statementId - the ID of the statement that generated the call to this method
Parameters:
  clazz - the type of object to create a new instance of the specified class. The instance mustbe castable to the specified class. If you return null,iBATIS will attempt to create the instance using it's normal mechanism.
throws:
  InstantiationException - if the instance cannot be created. If youthrow this Exception, iBATIS will throw a runtime exception in response andwill end.
throws:
  IllegalAccessException - if the constructor cannot be accessed. If youthrow this Exception, iBATIS will throw a runtime exception in response andwill end.



setProperty
void setProperty(String name, String value)(Code)
Called for each property configured in the SqlMapCong file. All the properties will be set before any call is made to createInstance
Parameters:
  name -
Parameters:
  value -



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