|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.model.Author
public class Author
An author.
Each author has the following attributes:
works
.
Constructor Summary | |
---|---|
Author()
Creates a new author. |
Method Summary | |
---|---|
void |
addWork(Work work)
Adds a work. |
void |
addWorks(java.util.Collection works)
Adds a collection of works. |
void |
addWorks(Work[] works)
Adds an array of works. |
void |
appendDescription(TextLine line,
FontInfo romanFontInfo,
FontInfo[] fontInfo)
Appends a description to a text line. |
boolean |
equals(java.lang.Object obj)
Returns true if some other object is equal to this one. |
java.lang.Integer |
getBirthYear()
Gets the author's birth year. |
java.lang.Integer |
getDeathYear()
Gets the author's death year. |
java.lang.Integer |
getEarliestWorkYear()
Gets the author's earliest work year. |
Spelling |
getGroupingSpelling(int numHits)
Gets the spelling of the grouping object. |
java.lang.Long |
getId()
Gets the unique id. |
java.lang.Class |
getJoinClass()
Gets the join class. |
java.lang.Integer |
getLatestWorkYear()
Gets the author's latest work year. |
Spelling |
getName()
Gets the author's name. |
int |
getNumWorks()
Gets the number of works by the author. |
Spelling |
getOriginalName()
Gets the author's name in the original language. |
java.lang.String |
getReportPhrase()
Gets the report phrase. |
SearchCriterion |
getSearchDefault(java.lang.Class cls)
Gets a search criterion default value. |
java.lang.String |
getWhereClause()
Gets the Hibernate where clause. |
java.util.Set |
getWorks()
Gets the works. |
int |
hashCode()
Returns a hash code for the object. |
void |
removeWork(Work work)
Removes a work. |
void |
setArg(org.hibernate.Query q,
org.hibernate.Session session)
Sets the Hibernate query argument. |
void |
setBirthYear(java.lang.Integer birthYear)
Sets the author's birth year. |
void |
setDeathYear(java.lang.Integer deathYear)
Sets the author's death year. |
void |
setEarliestWorkYear(java.lang.Integer earliestWorkYear)
Sets the author's earliest work year. |
void |
setLatestWorkYear(java.lang.Integer latestWorkYear)
Sets the author's latest work year. |
void |
setName(Spelling name)
Sets the author's name. |
void |
setOriginalName(Spelling originalName)
Sets the author's name in the original language. |
java.lang.String |
toString()
Gets a string representation of the author. |
java.lang.String |
toStringDetailed()
Gets a detailed string representation of the author. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Author()
Method Detail |
---|
public java.lang.Long getId()
getId
in interface PersistentObject
public Spelling getName()
public void setName(Spelling name)
name
- The author's name. public Spelling getOriginalName()
public void setOriginalName(Spelling originalName)
originalName
- The author's name in the original language. public java.lang.Integer getBirthYear()
public void setBirthYear(java.lang.Integer birthYear)
birthYear
- The birth year, or null if not available. public java.lang.Integer getDeathYear()
public void setDeathYear(java.lang.Integer deathYear)
deathYear
- The death year, or null if not available. public java.lang.Integer getEarliestWorkYear()
public void setEarliestWorkYear(java.lang.Integer earliestWorkYear)
earliestWorkYear
- The earliest work year, or null if not available. public java.lang.Integer getLatestWorkYear()
public void setLatestWorkYear(java.lang.Integer latestWorkYear)
latestWorkYear
- The latest work year, or null if not available. public java.util.Set getWorks()
public void addWork(Work work)
work
- The new work. public void removeWork(Work work)
work
- The work. public void addWorks(java.util.Collection works)
works
- The new works. public void addWorks(Work[] works)
works
- The new works. public int getNumWorks()
public SearchCriterion getSearchDefault(java.lang.Class cls)
getSearchDefault
in interface SearchDefaults
cls
- Model class of search criterion.
public java.lang.Class getJoinClass()
getJoinClass
in interface SearchCriterion
public java.lang.String getWhereClause()
getWhereClause
in interface SearchCriterion
public void setArg(org.hibernate.Query q, org.hibernate.Session session)
setArg
in interface SearchCriterion
q
- Hibernate query.session
- Hibernate session. public void appendDescription(TextLine line, FontInfo romanFontInfo, FontInfo[] fontInfo)
appendDescription
in interface SearchCriterion
line
- Text line.romanFontInfo
- Roman font info.fontInfo
- Array of font info indexed by character
set. public java.lang.String getReportPhrase()
getReportPhrase
in interface GroupingObject
public Spelling getGroupingSpelling(int numHits)
getGroupingSpelling
in interface GroupingObject
numHits
- Number of hits.
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringDetailed()
public boolean equals(java.lang.Object obj)
The two authors are equal if their names are equal.
equals
in interface GroupingObject
equals
in class java.lang.Object
obj
- The other object.
public int hashCode()
hashCode
in interface GroupingObject
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |