|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jangband.db.Gender
public class Gender
Represents a row in the database from the genders table. This data should only be set with information from the database.
| Field Summary | |
|---|---|
private java.lang.String |
gender
Human readable name of the gender. |
private int |
id
Database primary key (PK) for player_races table row. |
| Constructor Summary | |
|---|---|
Gender()
Creates an object that needs to be populated using the getters and setters. |
|
Gender(int id,
java.lang.String gender)
Creates a fully populated object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getGender()
Returns a human readable String representing the gender of the character. |
int |
getId()
Gets the primary key of this row in the database. |
void |
setGender(java.lang.String gender)
Should only be set with data from the database. |
void |
setId(int id)
Should only be set with data from the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int id
private java.lang.String gender
| Constructor Detail |
|---|
public Gender()
public Gender(int id,
java.lang.String gender)
id - gender - | Method Detail |
|---|
public int getId()
public void setId(int id)
id - the id to setpublic java.lang.String getGender()
public void setGender(java.lang.String gender)
gender - the gender to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||