Class GuildrankPK

Object
GuildrankPK
All Implemented Interfaces:
Serializable

@Embeddable public class GuildrankPK extends Object implements Serializable
The composite primary key for a Guildrank.
Author:
maartenl
See Also:
  • Constructor Details

    • GuildrankPK

      public GuildrankPK()
    • GuildrankPK

      public GuildrankPK(int guildlevel, String guildname)
  • Method Details

    • getGuildlevel

      public int getGuildlevel()
      Returns the rank number in the guild. Guideline here could be that the lower the number, the higher the rank. Rank 0 is the most important rank, and is usually the guild master.
      Returns:
      the rank
    • setGuildlevel

      public void setGuildlevel(int guildlevel)
    • getGuildname

      public String getGuildname()
    • setGuildname

      public void setGuildname(String guildname)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object