org.strutsme.wishlist.common.dto
Class WishDtoImpl

java.lang.Object
  extended by org.strutsme.common.serialization.SerializationBase
      extended by org.strutsme.wishlist.common.dto.BaseDtoImpl
          extended by org.strutsme.wishlist.common.dto.WishDtoImpl

public class WishDtoImpl
extends BaseDtoImpl

Author:
lbusmann used to hold the data or state of an Article.

Constructor Summary
WishDtoImpl()
          Each class should have one 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. Also it has to set the version under the Constants.VERSION key. mwolff: checklipse warning is ok here.
 java.lang.String getAuthorId()
          Get the id of the author.
 java.lang.String getBody()
          Get the body text of the wish.
 java.lang.Short getPriority()
          gets the priority of the wish.
 java.lang.String getSubject()
          Get the subject.
 java.lang.String getTitle()
           
 void setAuthorId(java.lang.String authorId)
          Set the id of the author.
 void setBody(java.lang.String body)
          Set the body.
 void setPriority(java.lang.Short priority)
          Sets the priority of the wish.
 void setSubject(java.lang.String subject)
          Set the subject.
 void setTitle(java.lang.String title)
           
 
Methods inherited from class org.strutsme.wishlist.common.dto.BaseDtoImpl
getCreatedAt, getId, setCreatedAt, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WishDtoImpl

public WishDtoImpl()
Each class should have one Constructor.

Method Detail

getAuthorId

public final java.lang.String getAuthorId()
Get the id of the author.

Returns:
the if of the author

setAuthorId

public final void setAuthorId(java.lang.String authorId)
Set the id of the author.

Parameters:
authorId - the new authorId

getBody

public final java.lang.String getBody()
Get the body text of the wish.

Returns:
the new body of the wish

setBody

public final void setBody(java.lang.String body)
Set the body.

Parameters:
body - the new body of the wish

getSubject

public final java.lang.String getSubject()
Get the subject.

Returns:
the subject of the wish

setSubject

public final void setSubject(java.lang.String subject)
Set the subject.

Parameters:
subject - the new subject of the wish

copyValuesToBean

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

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

copyValuesToMap

public final 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.

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

getTitle

public final java.lang.String getTitle()
Returns:
the title

setTitle

public final void setTitle(java.lang.String title)
Parameters:
title - the title to set

getPriority

public final java.lang.Short getPriority()
gets the priority of the wish.

Returns:
the priority of the wish

setPriority

public final void setPriority(java.lang.Short priority)
Sets the priority of the wish.

Parameters:
priority - the priority to set