All Downloads are FREE. Search and download functionalities are using the official Maven repository.

oracle.RefListElement Maven / Gradle / Ivy

There is a newer version: shw-air-terminal-vertical-1.0.57
Show newest version
/**
 * ADempiere contribution
 * Author: Karsten Thiemann, [email protected]
 * Compiere/Adempiere migration script generation.
*/

package oracle;


public class RefListElement {
	private int id;

	private String value;

	private String name;

	public RefListElement(int id, String value, String name) {
		super();
		this.id = id;
		this.value = value;
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getUpdateString() {
		return "UPDATE AD_Ref_List SET value='" + value + "', name='" + name + "'"
				+ " WHERE AD_Ref_List_ID=" + id + ";";
	}

	public String getInsertString() {
		return ""; // TODO create insert string?
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof RefListElement)) {
			return false;
		} else {
			RefListElement comp = (RefListElement) object;
			return (comp.getId() == id && comp.getName().equals(name) && comp.getValue()
					.equals(value));
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy