com.ivata.mask.web.demo.valueobject
Class DemoValueObject

java.lang.Object
  extended bycom.ivata.mask.web.demo.valueobject.DemoValueObject
All Implemented Interfaces:
java.io.Serializable, com.ivata.mask.valueobject.ValueObject
Direct Known Subclasses:
CustomerDO, OrderDO, OrderItemDO, ProductDO

public abstract class DemoValueObject
extends java.lang.Object
implements com.ivata.mask.valueobject.ValueObject

Inherited by all value objects in this demo.

Since:
ivata masks 0.2 (2004-05-24)
Version:
$Revision: 1.4 $
Author:
Colin MacLeod colin.macleod@ivata.com
See Also:
Serialized Form

Constructor Summary
DemoValueObject()
           Construct a new value object marked as invalid.
DemoValueObject(int idParam)
           Construct a new value object with the given id value.
 
Method Summary
 int getId()
          Get the unique identifier of this value object, in its internal form: int.
 java.lang.String getIdString()
          Get the unique identifier of the value object, as a string.
 void setId(int idParam)
          Get the unique identifier of this value object, in its internal form: int.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ivata.mask.valueobject.ValueObject
getDisplayValue
 

Constructor Detail

DemoValueObject

public DemoValueObject()

Construct a new value object marked as invalid.


DemoValueObject

public DemoValueObject(int idParam)

Construct a new value object with the given id value.

Parameters:
idParam - unique identifier of the object.
Method Detail

getIdString

public final java.lang.String getIdString()
Get the unique identifier of the value object, as a string.

Specified by:
getIdString in interface com.ivata.mask.valueobject.ValueObject
See Also:
com.ivata.mask.ValueObject#getIdString()

getId

public final int getId()
Get the unique identifier of this value object, in its internal form: int.

Returns:
unique identifier as an int.

setId

public final void setId(int idParam)
Get the unique identifier of this value object, in its internal form: int.

Parameters:
idParam - unique identifier of this value object, as an int.


Copyright © 2001-2005 ivata limited. All Rights Reserved.