Java Doc for PoValueTransformer.java in  » Database-ORM » ODAL » com » completex » objective » components » persistency » ocache » impl » 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 » ODAL » com.completex.objective.components.persistency.ocache.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.completex.objective.components.persistency.ocache.impl.PoValueTransformer

PoValueTransformer
public class PoValueTransformer implements ValueTransformer(Code)
ValueTransformer implementation that optionally clones and flattens/unflattes AbstractPersistentObject instances
author:
   Gennady Krizhevsky



Constructor Summary
public  PoValueTransformer()
    
public  PoValueTransformer(boolean flatten, boolean clone)
    

Method Summary
public  ObjectafterGet(Object key, Object value)
     Optionally (depending on clone/flatten flags) clones and/or unflattens cached objects of 2 types: AbstractPersistentObject or Collection of AbstractPersistentObject instances.
public  ObjectbeforePut(Object key, Object value)
     Optionally (depending on flatten flag) flattens objects of 2 types: AbstractPersistentObject or Collection of AbstractPersistentObject instances before cachings.
protected  AbstractPersistentObjectcast(Object value)
    
protected  CollectioncloneCollection(Collection collection)
     Returns copy of a collection with cloned AbstractPersistentObject instances.
protected  AbstractPersistentObjectclonePersistent(AbstractPersistentObject persistent)
    
protected  CollectionflattenCollection(Collection collection)
     Optionally flattens collection of AbstractPersistentObject instances.
protected  AbstractPersistentObjectflattenPersistent(AbstractPersistentObject persistent)
    
public  booleanisClone()
    
public  booleanisFlatten()
    
 voidsetClone(boolean clone)
    
 voidsetFlatten(boolean flatten)
    
protected  CollectionunflattenCollection(Collection collection)
     Optionally unflattens collection of AbstractPersistentObject instances.
protected  AbstractPersistentObjectunflattenPersistent(AbstractPersistentObject persistent)
    


Constructor Detail
PoValueTransformer
public PoValueTransformer()(Code)



PoValueTransformer
public PoValueTransformer(boolean flatten, boolean clone)(Code)

Parameters:
  flatten - if true then the object is stored in its flattened form and gets unflattened when retrieved from the cache
Parameters:
  clone - if true then the object gets cloned before it is stored and retrieved from the cache




Method Detail
afterGet
public Object afterGet(Object key, Object value)(Code)
Optionally (depending on clone/flatten flags) clones and/or unflattens cached objects of 2 types: AbstractPersistentObject or Collection of AbstractPersistentObject instances. Does nothing if the value is not of AbstractPersistentObject type.
See Also:   ValueTransformer.afterGet(ObjectObject)



beforePut
public Object beforePut(Object key, Object value)(Code)
Optionally (depending on flatten flag) flattens objects of 2 types: AbstractPersistentObject or Collection of AbstractPersistentObject instances before cachings. Does nothing if the value is not of AbstractPersistentObject type.
See Also:   ValueTransformer.afterGet(ObjectObject)



cast
protected AbstractPersistentObject cast(Object value)(Code)
Casts the value to AbstractPersistentObject type
Parameters:
  value - AbstractPersistentObject



cloneCollection
protected Collection cloneCollection(Collection collection)(Code)
Returns copy of a collection with cloned AbstractPersistentObject instances. If the collection is not of AbstractPersistentObject instances then returns a copy of the collection referencing the same objects as the original one. Does nothing if clone == false
Parameters:
  collection - collection to clone Returns copy of a collection with cloned AbstractPersistentObject instances.If the collection is not of AbstractPersistentObject instances then returns a copy of the collection referencing the same objects as the original one.
throws:
  OdalRuntimeException - if the collection is not instance of Cloneable



clonePersistent
protected AbstractPersistentObject clonePersistent(AbstractPersistentObject persistent)(Code)



flattenCollection
protected Collection flattenCollection(Collection collection)(Code)
Optionally flattens collection of AbstractPersistentObject instances. Does nothing if flatten == false
Parameters:
  collection -



flattenPersistent
protected AbstractPersistentObject flattenPersistent(AbstractPersistentObject persistent)(Code)



isClone
public boolean isClone()(Code)



isFlatten
public boolean isFlatten()(Code)



setClone
void setClone(boolean clone)(Code)



setFlatten
void setFlatten(boolean flatten)(Code)



unflattenCollection
protected Collection unflattenCollection(Collection collection)(Code)
Optionally unflattens collection of AbstractPersistentObject instances. Does nothing if flatten == false
Parameters:
  collection - collection to unflatten - gets unflatted in process unflatten collection



unflattenPersistent
protected AbstractPersistentObject unflattenPersistent(AbstractPersistentObject persistent)(Code)



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)

w___w__w.j_a_v_a__2_s___._c___o__m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.