org.apache.aries.samples.blog.persistence.jpa.entity
Class EntryImpl

java.lang.Object
  extended by org.apache.aries.samples.blog.persistence.jpa.entity.EntryImpl
All Implemented Interfaces:
Entry

@Entity(name="BLOGENTRY")
public class EntryImpl
extends Object
implements Entry

This class represents a blog entry


Constructor Summary
EntryImpl()
           
 
Method Summary
 AuthorImpl getAuthor()
          Get the author of this blog post
 String getBlogText()
          Get the text for this blog post
 long getId()
          get the Blog post id
 Date getPublishDate()
          Get the publish date of this blog post
 List<String> getTags()
          Get the tags for this blog post
 String getTitle()
          Get the title of this blog post
 Date getUpdatedDate()
           
 void setAuthor(AuthorImpl author)
          Set the author of this blog post
 void setBlogText(String blogText)
          Set the text for this blog post
 void setId(Long id)
          Set the id
 void setPublishDate(Date publishDate)
          Set the publish date of this blog post
 void setTags(List<String> tags)
          Set the tags for this blog post
 void setTitle(String title)
          Set the title of this blog post
 void setUpdatedDate(Date updatedDate)
          Set the date that the blog post was last updated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryImpl

public EntryImpl()
Method Detail

getAuthor

public AuthorImpl getAuthor()
Get the author of this blog post

Specified by:
getAuthor in interface Entry

setAuthor

public void setAuthor(AuthorImpl author)
Set the author of this blog post


getPublishDate

public Date getPublishDate()
Get the publish date of this blog post

Specified by:
getPublishDate in interface Entry

setPublishDate

public void setPublishDate(Date publishDate)
Set the publish date of this blog post


getTitle

public String getTitle()
Get the title of this blog post

Specified by:
getTitle in interface Entry

setTitle

public void setTitle(String title)
Set the title of this blog post


getTags

public List<String> getTags()
Get the tags for this blog post

Specified by:
getTags in interface Entry

setTags

public void setTags(List<String> tags)
Set the tags for this blog post


getBlogText

public String getBlogText()
Get the text for this blog post

Specified by:
getBlogText in interface Entry

setBlogText

public void setBlogText(String blogText)
Set the text for this blog post


getId

public long getId()
get the Blog post id

Specified by:
getId in interface Entry

setId

public void setId(Long id)
Set the id


getUpdatedDate

public Date getUpdatedDate()
Specified by:
getUpdatedDate in interface Entry
Returns:
The date of the last update to this blog or null if it has never been modified

setUpdatedDate

public void setUpdatedDate(Date updatedDate)
Set the date that the blog post was last updated

Parameters:
updatedDate -


Copyright © 2009-2010 The Apache Software Foundation. All Rights Reserved.