categoryattributepk.java

来自「噶额外噶外骨骼感广泛高热感 就 啊啊」· Java 代码 · 共 59 行

JAVA
59
字号
  /*
   * @author                        : Neelesh
   * @Version                       : 1.0
   *
   * Development Environment        : Oracle9i JDeveloper
   * Name of the File               : CategoryAttributePK.java
   * Creation/Modification History  :
   *
   * Neelesh   11-Jan-2003      Created
   *
   */
  package oracle.otnsamples.vsm.entities;

  import java.io.Serializable;

  /**
   * Primary key for CategoryAttribute. The primary key is a composition of
   * language id, category id and the attribute's label.   Generated by Oracle9i
   * JDeveloper Tool.
   */
  public class CategoryAttributePK implements Serializable {
    public String catID;
    public String label;
    public String langID;

    public CategoryAttributePK(  ) {
    }

    public CategoryAttributePK( String catID, String langID, String label ) {
      this.catID = catID;
      this.langID = langID;
      this.label = label;
    }

    public boolean equals( Object other ) {
      if ( other instanceof CategoryAttributePK ) {
        final CategoryAttributePK otherCategoryAttributePK = (CategoryAttributePK) other;

        // The following assignment statement is auto-maintained and overwritten
        boolean areEqual = ( otherCategoryAttributePK.catID.equals( catID ) &&
                             otherCategoryAttributePK.langID.equals( langID ) &&
                             otherCategoryAttributePK.label.equals( label ) );

        return areEqual;
      }

      return false;
    }

    public int hashCode(  ) {
      // Add custom hashCode() impl here
      return ( catID + langID + label ).hashCode(  );
    }

    public String toString(){
      return "[langid="+langID+",label="+label+"Catid="+catID+"]";
    }
  }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?