org.jangband.db
Class Gender

java.lang.Object
  extended by org.jangband.db.Gender

public class Gender
extends java.lang.Object

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

id

private int id
Database primary key (PK) for player_races table row.


gender

private java.lang.String gender
Human readable name of the gender.

Constructor Detail

Gender

public Gender()
Creates an object that needs to be populated using the getters and setters.


Gender

public Gender(int id,
              java.lang.String gender)
Creates a fully populated object.

Parameters:
id -
gender -
Method Detail

getId

public int getId()
Gets the primary key of this row in the database.

Returns:
the id

setId

public void setId(int id)
Should only be set with data from the database.

Parameters:
id - the id to set

getGender

public java.lang.String getGender()
Returns a human readable String representing the gender of the character.

Returns:
the gender

setGender

public void setGender(java.lang.String gender)
Should only be set with data from the database.

Parameters:
gender - the gender to set




SourceForge.net Logo

Server provided by Gene Davis Software.