org.apache.aries.samples.blog.comment.ejb
Class CommentImpl

java.lang.Object
  extended by org.apache.aries.samples.blog.comment.ejb.CommentImpl
All Implemented Interfaces:
Comment

@Entity(name="Comment")
public class CommentImpl
extends Object
implements Comment


Constructor Summary
CommentImpl(String comment, String authorId, long entryId)
           
 
Method Summary
 Author getAuthor()
           
 String getAuthorId()
           
 String getComment()
           
 Date getCreationDate()
           
 Entry getEntry()
           
 long getEntryId()
           
 int getId()
           
 void setAuthorId(String authorId)
           
 void setComment(String comment)
           
 void setCreationDate(Date creationDate)
           
 void setEntryId(long entryId)
           
 void setId(int id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentImpl

public CommentImpl(String comment,
                   String authorId,
                   long entryId)
Method Detail

getComment

public String getComment()
Specified by:
getComment in interface Comment

getCreationDate

public Date getCreationDate()
Specified by:
getCreationDate in interface Comment

getId

public int getId()
Specified by:
getId in interface Comment

getAuthor

public Author getAuthor()
Specified by:
getAuthor in interface Comment

getEntry

public Entry getEntry()
Specified by:
getEntry in interface Comment

getAuthorId

public String getAuthorId()

setAuthorId

public void setAuthorId(String authorId)

getEntryId

public long getEntryId()

setEntryId

public void setEntryId(long entryId)

setId

public void setId(int id)

setComment

public void setComment(String comment)

setCreationDate

public void setCreationDate(Date creationDate)


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