⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fieldtype.java

📁 一个OR Mapping 工具
💻 JAVA
字号:
package org.dbgen.view;/** * This class was generated by a SmartGuide. * */public class FieldType {  int fieldType = 0;  protected transient java.beans.PropertyChangeSupport propertyChange = new java.beans.PropertyChangeSupport(this);  /**   * This method was created by a SmartGuide.   * @param type int   */  public FieldType(int type) {    setType(type);  }  /**   * The addPropertyChangeListener method was generated to support the propertyChange field.   */  public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener listener) {    propertyChange.addPropertyChangeListener(listener);  }  /**   * Compares two Objects for equality.   * <p>   * The <code>equals</code> method implements an equivalence relation:   * <ul>   * <li>It is <i>reflexive</i>: for any reference value <code>x</code>,   *     <code>x.equals(x)</code> should return <code>true</code>.   * <li>It is <i>symmetric</i>: for any reference values <code>x</code> and   *     <code>y</code>, <code>x.equals(y)</code> should return   *     <code>true</code> if and only if <code>y.equals(x)</code> returns   *     <code>true</code>.   * <li>It is <i>transitive</i>: for any reference values <code>x</code>,   *     <code>y</code>, and <code>z</code>, if <code>x.equals(y)</code>   *     returns  <code>true</code> and <code>y.equals(z)</code> returns   *     <code>true</code>, then <code>x.equals(z)</code> should return   *     <code>true</code>.   * <li>It is <i>consistent</i>: for any reference values <code>x</code>   *     and <code>y</code>, multiple invocations of <code>x.equals(y)</code>   *     consistently return <code>true</code> or consistently return   *     <code>false</code>.   * <li>For any reference value <code>x</code>, <code>x.equals(null)</code>   *     should return <code>false</code>.   * </ul>   * <p>   * The equals method for class <code>Object</code> implements the most   * discriminating possible equivalence relation on objects; that is,   * for any reference values <code>x</code> and <code>y</code>, this   * method returns <code>true</code> if and only if <code>x</code> and   * <code>y</code> refer to the same object (<code>x==y</code> has the   * value <code>true</code>).   *   * @param   obj   the reference object with which to compare.   * @return  <code>true</code> if this object is the same as the obj   *          argument; <code>false</code> otherwise.   * @see     java.lang.Boolean#hashCode()   * @see     java.util.Hashtable   * @since   JDK1.0   */  public boolean equals(Object obj) {    if (obj == null)      return false;    else      return (this.getType() == ((FieldType) obj).getType());  }  /**   * The firePropertyChange method was generated to support the propertyChange field.   */  public void firePropertyChange(String propertyName, Object oldValue, Object newValue) {    propertyChange.firePropertyChange(propertyName, oldValue, newValue);  }  /**   * Gets the type property (int) value.   * @return The type property value.   * @see #setType   */  public int getType() {    /* Returns the type property value. */    return fieldType;  }  /**   * The removePropertyChangeListener method was generated to support the propertyChange field.   */  public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener listener) {    propertyChange.removePropertyChangeListener(listener);  }  /**   * Sets the type property (int) value.   * @param type The new value for the property.   * @see #getType   */  public void setType(int type) {    /* Get the old property value for fire property change event. */    int oldValue = fieldType;    /* Set the type property (attribute) to the new value. */    fieldType = type;    /* Fire (signal/notify) the type property change event. */    firePropertyChange("type", new Integer(oldValue), new Integer(type));    return;  }  /**   * This method was created by a SmartGuide.   * @return java.lang.String   */  public String toString() {    return org.dbgen.FieldTypes.id2string(getType());  }}

⌨️ 快捷键说明

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