Java Doc for Tuplizer.java in  » Database-ORM » hibernate » org » hibernate » tuple » 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 » hibernate » org.hibernate.tuple 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.hibernate.tuple.Tuplizer

Tuplizer
public interface Tuplizer (Code)
A tuplizer defines the contract for things which know how to manage a particular representation of a piece of data, given that representation's org.hibernate.EntityMode (the entity-mode essentially defining which representation).

If that given piece of data is thought of as a data structure, then a tuplizer is the thing which knows how to
  • create such a data structure appropriately
  • extract values from and inject values into such a data structure

For example, a given piece of data might be represented as a POJO class. Here, it's representation and entity-mode is POJO. Well a tuplizer for POJO entity-modes would know how to
  • create the data structure by calling the POJO's constructor
  • extract and inject values through getters/setter, or by direct field access, etc

That same piece of data might also be represented as a DOM structure, using the tuplizer associated with the DOM4J entity-mode, which would generate instances of org.dom4j.Element as the data structure and know how to access the values as either nested org.dom4j.Element s or as org.dom4j.Attribute s.
See Also:   org.hibernate.tuple.entity.EntityTuplizer
See Also:   org.hibernate.tuple.component.ComponentTuplizer
author:
   Steve Ebersole




Method Summary
public  ClassgetMappedClass()
     Return the pojo class managed by this tuplizer.
public  ObjectgetPropertyValue(Object entity, int i)
     Extract the value of a particular property from the given entity.
Parameters:
  entity - The entity from which to extract the property value.
Parameters:
  i - The index of the property for which to extract the value.
public  Object[]getPropertyValues(Object entity)
     Extract the current values contained on the given entity.
Parameters:
  entity - The entity from which to extract values.
public  Objectinstantiate()
     Generate a new, empty entity.
public  booleanisInstance(Object object)
     Is the given object considered an instance of the the entity (acconting for entity-mode) managed by this tuplizer.
Parameters:
  object - The object to be checked.
public  voidsetPropertyValues(Object entity, Object[] values)
     Inject the given values into the given entity.



Method Detail
getMappedClass
public Class getMappedClass()(Code)
Return the pojo class managed by this tuplizer.

Need to determine how to best handle this for the Tuplizers for EntityModes other than POJO.

todo : be really nice to not have this here since it is essentially pojo specific... The persistent class.



getPropertyValue
public Object getPropertyValue(Object entity, int i) throws HibernateException(Code)
Extract the value of a particular property from the given entity.
Parameters:
  entity - The entity from which to extract the property value.
Parameters:
  i - The index of the property for which to extract the value. The current value of the given property on the given entity.
throws:
  HibernateException -



getPropertyValues
public Object[] getPropertyValues(Object entity) throws HibernateException(Code)
Extract the current values contained on the given entity.
Parameters:
  entity - The entity from which to extract values. The current property values.
throws:
  HibernateException -



instantiate
public Object instantiate() throws HibernateException(Code)
Generate a new, empty entity. The new, empty entity instance.
throws:
  HibernateException -



isInstance
public boolean isInstance(Object object)(Code)
Is the given object considered an instance of the the entity (acconting for entity-mode) managed by this tuplizer.
Parameters:
  object - The object to be checked. True if the object is considered as an instance of this entitywithin the given mode.



setPropertyValues
public void setPropertyValues(Object entity, Object[] values) throws HibernateException(Code)
Inject the given values into the given entity.
Parameters:
  entity - The entity.
Parameters:
  values - The values to be injected.
throws:
  HibernateException -



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