| java.lang.Object com.triactive.jdo.model.test.widgets.Widget
All known Subclasses: com.triactive.jdo.model.test.widgets.SelfReferencingWidget, com.triactive.jdo.model.test.widgets.BinaryWidget,
Widget | public class Widget (Code) | | An object used to test persistence of primitive and String fields.
author: Mike Martin version: $Revision: 1.5 $ |
Constructor Summary | |
public | Widget() Constructs an empty test object. |
Method Summary | |
public static void | assertValidMetaData(ClassMetaData cmd, Assert test) Asserts that the given metadata is correct for an object of this class. | public boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. | public void | fillRandom() Fills all of the object's fields with random data values. | public int | hashCode() Returns a hash code value for this object. | public String | toString() Returns a string representation for this object. |
Widget | public Widget()(Code) | | Constructs an empty test object.
|
assertValidMetaData | public static void assertValidMetaData(ClassMetaData cmd, Assert test)(Code) | | Asserts that the given metadata is correct for an object of this class.
Parameters: cmd - the class metadata to be tested. Parameters: test - the test to be used to call assert methods. |
equals | public boolean equals(Object obj)(Code) | | Indicates whether some other object is "equal to" this one. By comparing
against an original copy of the object, equals() can be
used to verify that the object has been written to a database and read
back correctly.
Parameters: obj - the reference object with which to compare true if this object is equal to the obj argument;false otherwise. |
fillRandom | public void fillRandom()(Code) | | Fills all of the object's fields with random data values. Any non-
primitive fields (with the exception of id ) will also be
assigned null on a random basis.
|
hashCode | public int hashCode()(Code) | | Returns a hash code value for this object.
a hash code value for this object. |
toString | public String toString()(Code) | | Returns a string representation for this object. All of the field
values are included in the string for debugging purposes.
a string representation for this object. |
|
|