| 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.
|
Method Summary | |
public boolean | autoLockingDisabled() | public void | booleanFieldChanged(String classname, String fieldname, boolean newValue, int index) | public void | byteFieldChanged(String classname, String fieldname, byte newValue, int index) | public void | charFieldChanged(String classname, String fieldname, char newValue, int index) | public ArrayIndexOutOfBoundsException | checkArrayIndex(int index) | public void | clearReference(String fieldName) | public int | clearReferences(int toClear) | public boolean | dehydrateIfNew(DNAWriter writer) | public void | disableAutoLocking() Turns off auto locking. | public void | doubleFieldChanged(String classname, String fieldname, double newValue, int index) | public void | floatFieldChanged(String classname, String fieldname, float newValue, int index) | public String | getFieldNameByOffset(long fieldOffset) | public TLinkable | getNext() | public ObjectID | getObjectID() | public Object | getPeerObject() The Object that this TCObject is wrapping. | public TLinkable | getPrevious() | public Object | getResolveLock() Get an object to lock on to modify this object. | public TCClass | getTCClass() The TCClass for this TCObject. | public long | getVersion() | public void | hydrate(DNA from, boolean force) Takes a DNA strand and hydrates the object with it. | public void | intFieldChanged(String classname, String fieldname, int newValue, int index) | public boolean | isFieldPortableByOffset(long fieldOffset) | public boolean | isNew() | public boolean | isShared() | public void | literalValueChanged(Object newValue, Object oldValue) | public void | logicalInvoke(int method, String methodSignature, Object[] params) | public void | longFieldChanged(String classname, String fieldname, long newValue, int index) | public void | objectArrayChanged(int startPos, Object[] array, int length) | public void | objectFieldChanged(String classname, String fieldname, Object newValue, int index) | public void | objectFieldChangedByOffset(String classname, long fieldOffset, Object newValue, int index) | public void | primitiveArrayChanged(int startPos, Object array, int length) | public void | resolveAllReferences() | public void | resolveArrayReference(int index) | public void | resolveReference(String fieldName) | public void | setArrayReference(int index, ObjectID id) | public void | setIsNew() | public void | setLiteralValue(Object newValue) | public void | setNext(TLinkable link) | public void | setPrevious(TLinkable link) | public ObjectID | setReference(String fieldName, ObjectID id) | public void | setValue(String fieldName, Object obj) | public void | setVersion(long version) | public void | shortFieldChanged(String classname, String fieldname, short newValue, int index) |
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
|
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 |
|
|