org.strutsme.wishlist.common.dto
Class BaseDtoImpl

java.lang.Object
  extended by org.strutsme.common.serialization.SerializationBase
      extended by org.strutsme.wishlist.common.dto.BaseDtoImpl
Direct Known Subclasses:
UserDtoImpl, WishDtoImpl

public class BaseDtoImpl
extends SerializationBase

BaseDtoImpl is the base object of all wishlist DTOs. It adds a creation date and a unique id.

Author:
lbusmann

Constructor Summary
BaseDtoImpl()
          the public default Constructor.
 
Method Summary
 void copyValuesToBean(SafeHashtable map)
          Update all properties of this bean from the given map. mwolff: checklipse warning is ok here.
 void copyValuesToMap(SafeHashtable map)
          Copy all properties from this bean into the given map. mwolff: checklipse warning is ok here.
 java.util.Date getCreatedAt()
          gets the creationdate of this instance.
 java.lang.String getId()
          gets the global id of this Beaninstance.
 void setCreatedAt(java.util.Date createdAt)
          sets the creationdate of this instance.
 void setId(java.lang.String id)
          sets the global Id of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseDtoImpl

public BaseDtoImpl()
the public default Constructor.

Method Detail

getId

public final java.lang.String getId()
gets the global id of this Beaninstance.

Returns:
the global id

setId

public final void setId(java.lang.String id)
sets the global Id of this instance.

Parameters:
id - the id to set

getCreatedAt

public final java.util.Date getCreatedAt()
gets the creationdate of this instance.

Returns:
the creationdate of this instance

setCreatedAt

public final void setCreatedAt(java.util.Date createdAt)
sets the creationdate of this instance.

Parameters:
createdAt - the creationdate to set

copyValuesToBean

public void copyValuesToBean(SafeHashtable map)
                      throws SerializationException
Update all properties of this bean from the given map. mwolff: checklipse warning is ok here.

Specified by:
copyValuesToBean in class SerializationBase
Parameters:
map - the SafeHashtable with the values of the properties
Throws:
SerializationException - in the case of a wrong serialization version

copyValuesToMap

public void copyValuesToMap(SafeHashtable map)
                     throws SerializationException
Copy all properties from this bean into the given map. Also it has to set the version under the Constants.VERSION key. mwolff: checklipse warning is ok here.

Specified by:
copyValuesToMap in class SerializationBase
Parameters:
map - the target SafeHashtable to be filled
Throws:
SerializationException - in the case of a wrong serialization version