| java.lang.Object com.triactive.jdo.model.test.widgets.Widget com.triactive.jdo.model.test.widgets.BinaryWidget
All known Subclasses: com.triactive.jdo.model.test.widgets.FloatWidget, com.triactive.jdo.model.test.widgets.DateWidget,
BinaryWidget | public class BinaryWidget extends Widget (Code) | | An object used to test persistence of binary fields, in addition to those
in
Widget .
author: Mike Martin version: $Revision: 1.4 $ |
Constructor Summary | |
public | BinaryWidget() 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. |
BinaryWidget | public BinaryWidget()(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 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. |
|
|