Java Doc for TCObject.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.TCObject

All known Subclasses:   com.tc.object.tx.optimistic.TCObjectClone,  com.tc.object.MockTCObject,  com.tc.object.bytecode.NullTCObject,  com.tc.object.TCObjectImpl,  com.tc.object.TestTCObject,
TCObject
public interface TCObject extends Cacheable(Code)
Terracotta class attached to each shared instance Object. The TCObject may be a simple object value or may have TCFields representing internal field values.


Field Summary
final public static  intNULL_INDEX
    
final public static  LongNULL_OBJECT_ID
    


Method Summary
public  booleanautoLockingDisabled()
    
public  voidbooleanFieldChanged(String classname, String fieldname, boolean newValue, int index)
    
public  voidbyteFieldChanged(String classname, String fieldname, byte newValue, int index)
    
public  voidcharFieldChanged(String classname, String fieldname, char newValue, int index)
    
public  ArrayIndexOutOfBoundsExceptioncheckArrayIndex(int index)
    
public  voidclearReference(String fieldName)
    
public  intclearReferences(int toClear)
    
public  booleandehydrateIfNew(DNAWriter writer)
    
public  voiddisableAutoLocking()
     Turns off auto locking.
public  voiddoubleFieldChanged(String classname, String fieldname, double newValue, int index)
    
public  voidfloatFieldChanged(String classname, String fieldname, float newValue, int index)
    
public  StringgetFieldNameByOffset(long fieldOffset)
    
public  TLinkablegetNext()
    
public  ObjectIDgetObjectID()
    
public  ObjectgetPeerObject()
     The Object that this TCObject is wrapping.
public  TLinkablegetPrevious()
    
public  ObjectgetResolveLock()
     Get an object to lock on to modify this object.
public  TCClassgetTCClass()
     The TCClass for this TCObject.
public  longgetVersion()
    
public  voidhydrate(DNA from, boolean force)
     Takes a DNA strand and hydrates the object with it.
public  voidintFieldChanged(String classname, String fieldname, int newValue, int index)
    
public  booleanisFieldPortableByOffset(long fieldOffset)
    
public  booleanisNew()
    
public  booleanisShared()
    
public  voidliteralValueChanged(Object newValue, Object oldValue)
    
public  voidlogicalInvoke(int method, String methodSignature, Object[] params)
    
public  voidlongFieldChanged(String classname, String fieldname, long newValue, int index)
    
public  voidobjectArrayChanged(int startPos, Object[] array, int length)
    
public  voidobjectFieldChanged(String classname, String fieldname, Object newValue, int index)
    
public  voidobjectFieldChangedByOffset(String classname, long fieldOffset, Object newValue, int index)
    
public  voidprimitiveArrayChanged(int startPos, Object array, int length)
    
public  voidresolveAllReferences()
    
public  voidresolveArrayReference(int index)
    
public  voidresolveReference(String fieldName)
    
public  voidsetArrayReference(int index, ObjectID id)
    
public  voidsetIsNew()
    
public  voidsetLiteralValue(Object newValue)
    
public  voidsetNext(TLinkable link)
    
public  voidsetPrevious(TLinkable link)
    
public  ObjectIDsetReference(String fieldName, ObjectID id)
    
public  voidsetValue(String fieldName, Object obj)
    
public  voidsetVersion(long version)
    
public  voidshortFieldChanged(String classname, String fieldname, short newValue, int index)
    

Field Detail
NULL_INDEX
final public static int NULL_INDEX(Code)
Indicates null field index



NULL_OBJECT_ID
final public static Long NULL_OBJECT_ID(Code)
Indicates null object identifier





Method Detail
autoLockingDisabled
public boolean autoLockingDisabled()(Code)
True if auto locking enabled.



booleanFieldChanged
public void booleanFieldChanged(String classname, String fieldname, boolean newValue, int index)(Code)
Indicate that a boolean field has changed
Parameters:
  classname - The class name
Parameters:
  fieldname - The field name
Parameters:
  newValue - The new value
Parameters:
  index - If an array, the index into the array



byteFieldChanged
public void byteFieldChanged(String classname, String fieldname, byte newValue, int index)(Code)
Indicate that a byte field has changed
Parameters:
  classname - The class name
Parameters:
  fieldname - The field name
Parameters:
  newValue - The new value
Parameters:
  index - If an array, the index into the array



charFieldChanged
public void charFieldChanged(String classname, String fieldname, char newValue, int index)(Code)
Indicate that a char field has changed
Parameters:
  classname - The class name
Parameters:
  fieldname - The field name
Parameters:
  newValue - The new value
Parameters:
  index - If an array, the index into the array



checkArrayIndex
public ArrayIndexOutOfBoundsException checkArrayIndex(int index)(Code)
Check whether the specified index is valid
Parameters:
  index - The array index to check An exception if invalid



clearReference
public void clearReference(String fieldName)(Code)
Clear the reference for the given field
Parameters:
  fieldName -



clearReferences
public int clearReferences(int toClear)(Code)
Clear memory references up to toClear limit
Parameters:
  toClear - - the number of references to clear atmost - the number of references actually cleared



dehydrateIfNew
public boolean dehydrateIfNew(DNAWriter writer)(Code)
Writes all of the object data to the given DNAWriter, iff object is new
Parameters:
  writer - The writer True if written



disableAutoLocking
public void disableAutoLocking()(Code)
Turns off auto locking.



doubleFieldChanged
public void doubleFieldChanged(String classname, String fieldname, double newValue, int index)(Code)
Indicate that a double field has changed
Parameters:
  classname - The class name
Parameters:
  fieldname - The field name
Parameters:
  newValue - The new value
Parameters:
  index - If an array, the index into the array



floatFieldChanged
public void floatFieldChanged(String classname, String fieldname, float newValue, int index)(Code)
Indicate that a float field has changed
Parameters:
  classname - The class name
Parameters:
  fieldname - The field name
Parameters:
  newValue - The new value
Parameters:
  index - If an array, the index into the array



getFieldNameByOffset
public String getFieldNameByOffset(long fieldOffset)(Code)
Get field name from field offset
Parameters:
  fieldOffset - The offset for the field Field name



getNext
public TLinkable getNext()(Code)
For Cacheable interface, get next linked item Next link



getObjectID
public ObjectID getObjectID()(Code)
Get the object identifier Object identifier



getPeerObject
public Object getPeerObject()(Code)
The Object that this TCObject is wrapping. This value will be null if the peer Object is null.



getPrevious
public TLinkable getPrevious()(Code)
For Cacheable interface, get previous linked item Next link



getResolveLock
public Object getResolveLock()(Code)
Get an object to lock on to modify this object. The lock object



getTCClass
public TCClass getTCClass()(Code)
The TCClass for this TCObject. The TCClass is a peer of the Class of the peer Object.



getVersion
public long getVersion()(Code)
Get version of this object instance Version



hydrate
public void hydrate(DNA from, boolean force) throws ClassNotFoundException(Code)
Takes a DNA strand and hydrates the object with it.
Parameters:
  force - true if the DNA should be applied w/o any version checking
throws:
  ClassNotFoundException - If class not found



intFieldChanged
public void intFieldChanged(String classname, String fieldname, int newValue, int index)(Code)
Indicate that an int field has changed
Parameters:
  classname - The class name
Parameters:
  fieldname - The field name
Parameters:
  newValue - The new value
Parameters:
  index - If an array, the index into the array



isFieldPortableByOffset
public boolean isFieldPortableByOffset(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



isNew
public boolean isNew()(Code)
True if new



isShared
public boolean isShared()(Code)
True if shared (pretty much always right now)



literalValueChanged
public void literalValueChanged(Object newValue, Object oldValue)(Code)
Indicate that a literal value changed
Parameters:
  oldValue - The old value
Parameters:
  newValue - The new value



logicalInvoke
public void logicalInvoke(int method, String methodSignature, Object[] params)(Code)
Invoke logical method
Parameters:
  method - Method indicator, as defined in com.tc.object.SerializationUtil
Parameters:
  methodSignature - The signature description
Parameters:
  params - The parameter values



longFieldChanged
public void longFieldChanged(String classname, String fieldname, long newValue, int index)(Code)
Indicate that a long field has changed
Parameters:
  classname - The class name
Parameters:
  fieldname - The field name
Parameters:
  newValue - The new value
Parameters:
  index - If an array, the index into the array



objectArrayChanged
public void objectArrayChanged(int startPos, Object[] array, int length)(Code)
Indicate that an object array changed
Parameters:
  startPos - The starting position of the change
Parameters:
  array - The changed array
Parameters:
  length - The length of the changed array



objectFieldChanged
public void objectFieldChanged(String classname, String fieldname, Object newValue, int index)(Code)
Indicate that an object field has changed
Parameters:
  classname - The class name
Parameters:
  fieldname - The field name
Parameters:
  newValue - The new value
Parameters:
  index - If an array, the index into the array



objectFieldChangedByOffset
public void objectFieldChangedByOffset(String classname, long fieldOffset, Object newValue, int index)(Code)
Set a field value change by offset
Parameters:
  classname - Class name
Parameters:
  fieldOffset - The offset into this object's fields
Parameters:
  newValue - New object value
Parameters:
  index - The index if this peer object is an array



primitiveArrayChanged
public void primitiveArrayChanged(int startPos, Object array, int length)(Code)
Indicate that primitive array changed
Parameters:
  startPos - The starting position of the change
Parameters:
  array - The changed array
Parameters:
  length - The length of the changed array



resolveAllReferences
public void resolveAllReferences()(Code)
Fault in all references



resolveArrayReference
public void resolveArrayReference(int index)(Code)
Fault in an array reference
Parameters:
  index - Index when the peer object is an array



resolveReference
public void resolveReference(String fieldName)(Code)
Fault in field object if necessary
Parameters:
  fieldName - Fully-qualified fieldn name



setArrayReference
public void setArrayReference(int index, ObjectID id)(Code)
Set an array index reference
Parameters:
  index - The index in this array
Parameters:
  id - The new reference for that index



setIsNew
public void setIsNew()(Code)
Set whether this object is new



setLiteralValue
public void setLiteralValue(Object newValue)(Code)
Set new literal value
Parameters:
  newValue - The new value



setNext
public void setNext(TLinkable link)(Code)
For Cacheable interface, set next linked item
Parameters:
  link - Next link



setPrevious
public void setPrevious(TLinkable link)(Code)
For Cacheable interface, set previous linked item
Parameters:
  link - Previous link



setReference
public ObjectID setReference(String fieldName, ObjectID id)(Code)
Set a reference for a field in this object
Parameters:
  fieldName - Field in this object
Parameters:
  id - New reference for this field



setValue
public void setValue(String fieldName, Object obj)(Code)
Set new value for a field of this object
Parameters:
  fieldName - The field name
Parameters:
  obj - The object to set for this field



setVersion
public void setVersion(long version)(Code)
Set a new version for this object
Parameters:
  version - New version



shortFieldChanged
public void shortFieldChanged(String classname, String fieldname, short newValue, int index)(Code)
Indicate that a short field has changed
Parameters:
  classname - The class name
Parameters:
  fieldname - The field name
Parameters:
  newValue - The new value
Parameters:
  index - If an array, the index into the array



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