| |
|
| java.lang.Object org.ow2.easybeans.examples.ear.Book
Book | public class Book (Code) | | Define a book.
author: Florent Benoit |
Constructor Summary | |
public | Book() Default constructor. | public | Book(String title, Author author) Constructor. |
Book | public Book()(Code) | | Default constructor.
|
Book | public Book(String title, Author author)(Code) | | Constructor. Build a new Book with the given title and written by the
given author.
Parameters: title - the given title Parameters: author - the given author. |
getAuthor | public Author getAuthor()(Code) | | the Author of this Book. |
getId | public long getId()(Code) | | an id for this object (incremented automatically) |
getTitle | public String getTitle()(Code) | | the title of this book. |
setAuthor | public void setAuthor(Author author)(Code) | | Sets the author of this book.
Parameters: author - the given author. |
setId | public void setId(long id)(Code) | | Sets the id of this author object.
Parameters: id - the given id of this author |
setTitle | public void setTitle(String title)(Code) | | Set the title of the book.
Parameters: title - - the title of the book |
toString | public String toString()(Code) | | String representation of this entity object. |
|
|
|