Java Doc for TCClass.java in  » Net » Terracotta » com » tc » object » 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 » Net » Terracotta » com.tc.object 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.tc.object.TCClass

All known Subclasses:   com.tc.object.MockTCClass,  com.tc.object.TCClassImpl,
TCClass
public interface TCClass (Code)
Interface for peer to java.lang.Class. The Class of every object under management is represented by an instance of TCClass. Keeping a peer of each Class object allows us to organize the class elements in useful ways and to cache that organization so we only have to do it once per class.

Important -- It is likely that we will enforce the Serializable contract and only manage those classes which implement Serializable.

TODO: Add support for using a serialized instance of classes with no nullary constructor to rehydrate into.

author:
   Orion Letizi





Method Summary
public  MapconnectedCopy(Object source, Object dest, Map visited, OptimisticTransactionManager txManager)
    
public  TCObjectcreateTCObject(ObjectID id, Object peer)
    
public  voiddehydrate(TCObject tcObject, DNAWriter writer, Object pojo)
    
public  ClassgetComponentType()
    
public  ConstructorgetConstructor()
    
public  StringgetDefiningLoaderDescription()
    
public  StringgetExtendingClassName()
    
public  TCFieldgetField(String name)
    
public  StringgetFieldNameByOffset(long fieldOffset)
    
public  StringgetName()
    
public  ObjectgetNewInstanceFromNonDefaultConstructor(DNA dna)
    
public  ClientObjectManagergetObjectManager()
    
public  StringgetOnLoadExecuteScript()
    
public  StringgetOnLoadMethod()
    
public  FieldgetParentField()
     If the class is an inner class, get the field referring to the parent "this object.
public  StringgetParentFieldName()
     If the class is an inner class, get the name of the field referring to the parent "this" object.
public  ClassgetPeerClass()
    
public  TCField[]getPortableFields()
    
public  TraversedReferencesgetPortableObjects(Object pojo, TraversedReferences addTo)
    
public  TCClassgetSuperclass()
    
public  booleanhasOnLoadExecuteScript()
    
public  booleanhasOnLoadMethod()
    
public  voidhydrate(TCObject tcObject, DNA dna, Object pojo, boolean force)
    
public  booleanisEnum()
    
public  booleanisIndexed()
    
public  booleanisLogical()
    
public  booleanisNonStaticInner()
    
public  booleanisPortableField(long fieldOffset)
    
public  booleanisProxyClass()
    
public  booleanisUseNonDefaultConstructor()
    



Method Detail
connectedCopy
public Map connectedCopy(Object source, Object dest, Map visited, OptimisticTransactionManager txManager)(Code)
Connects the original object to the copy object and creates new copies of referened objects but leaves them unconnected (mostly this is about doing a deep connected clone without recurrsion so that we don't get stack overflows
Parameters:
  source - Source object
Parameters:
  dest - Copy object
Parameters:
  visited - Note already visited objects
Parameters:
  txManager - Transaction manager Map of original to copy key that were cloned while executing the method



createTCObject
public TCObject createTCObject(ObjectID id, Object peer)(Code)
Create a new TCObject
Parameters:
  id - The object identifier
Parameters:
  peer - The object



dehydrate
public void dehydrate(TCObject tcObject, DNAWriter writer, Object pojo)(Code)
Write an object to DNA
Parameters:
  tcObject - The object manager
Parameters:
  writer - The writer to write to
Parameters:
  pojo - The instance to write



getComponentType
public Class getComponentType()(Code)
If this is an array, the type of array elements



getConstructor
public Constructor getConstructor() throws NoSuchMethodException, SecurityException(Code)
Get constructor for the class The constructor
throws:
  NoSuchMethodException - If there is no constructor
throws:
  SecurityException - If the constructor cannot be accessed in the current security model



getDefiningLoaderDescription
public String getDefiningLoaderDescription()(Code)
Name of defining classloader



getExtendingClassName
public String getExtendingClassName()(Code)
Returns special generated name for classes extending logical classes Special generated logical extending class name or just the normal class name if not extending logical



getField
public TCField getField(String name)(Code)
Get TCField for this class
Parameters:
  name - Field name TCField



getFieldNameByOffset
public String getFieldNameByOffset(long fieldOffset)(Code)
Get a field name by offset into an index of fields
Parameters:
  fieldOffset - The index The fully-qualified field name at that index



getName
public String getName()(Code)
Name of peer or proxy class



getNewInstanceFromNonDefaultConstructor
public Object getNewInstanceFromNonDefaultConstructor(DNA dna) throws IOException, ClassNotFoundException(Code)
Construct a new instance from a DNA strand using a non-default constructor
Parameters:
  dna - The DNA with the data to use The new instance
throws:
  IOException - Reading DNA
throws:
  ClassNotFoundException - Can't instantiate a class



getObjectManager
public ClientObjectManager getObjectManager()(Code)
The client object manager for this client



getOnLoadExecuteScript
public String getOnLoadExecuteScript()(Code)
Get script to execute on load Execute script



getOnLoadMethod
public String getOnLoadMethod()(Code)
Get name of method to execute on load Method name



getParentField
public Field getParentField()(Code)
If the class is an inner class, get the field referring to the parent "this object. The field referring to the parent this



getParentFieldName
public String getParentFieldName()(Code)
If the class is an inner class, get the name of the field referring to the parent "this" object. The field name referring to the parent this



getPeerClass
public Class getPeerClass()(Code)
Get the class this TCClass is a peer for Peer class, never null



getPortableFields
public TCField[] getPortableFields()(Code)
Get all portable fields in the class Fields, never null



getPortableObjects
public TraversedReferences getPortableObjects(Object pojo, TraversedReferences addTo)(Code)
Traverse a graph of objects to find the portable ones
Parameters:
  pojo - The object to walk
Parameters:
  addTo - The traversed references collected so far The addTo collection



getSuperclass
public TCClass getSuperclass()(Code)
TCClass of the super class of the peer



hasOnLoadExecuteScript
public boolean hasOnLoadExecuteScript()(Code)
Determine whether this class has a BeanShell script to execute on class load True if has script



hasOnLoadMethod
public boolean hasOnLoadMethod()(Code)
Determine whether this class has a method to execute on class loade True if has load method



hydrate
public void hydrate(TCObject tcObject, DNA dna, Object pojo, boolean force) throws IOException, ClassNotFoundException(Code)
Reconstitute object from DNA
Parameters:
  tcObject - The object manager
Parameters:
  dna - The DNA to read
Parameters:
  pojo - The new instance of the pojo to reconstitute (will be modified)
Parameters:
  force - Set to true to force an update to the DNA version, regardless of the local version



isEnum
public boolean isEnum()(Code)
True if this is an enum



isIndexed
public boolean isIndexed()(Code)
True if this is an array and indexed



isLogical
public boolean isLogical()(Code)
True if this is a logically instrumented class



isNonStaticInner
public boolean isNonStaticInner()(Code)
True if this is a non-static inner class and has a parent



isPortableField
public boolean isPortableField(long fieldOffset)(Code)
Returns true if the field represented by the offset is a portable field, i.e., not static and not dso transient
Parameters:
  fieldOffset - The index true if the field is portable and false otherwise



isProxyClass
public boolean isProxyClass()(Code)
True if this class uses a proxy class



isUseNonDefaultConstructor
public boolean isUseNonDefaultConstructor()(Code)
True if should use a non-default constructor when creating new instances



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