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

org.sagacity.quickvo.model.TableConstractModel Maven / Gradle / Ivy

The newest version!
/**
 * 
 */
package org.sagacity.quickvo.model;

import java.io.Serializable;

/**
 * @project sagacity-quickvo
 * @description 表关联的数据模型
 * @author zhongxuchen
 * @version v1.0,2009-04-19
 */
public class TableConstractModel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5297814770562062800L;

	/**
	 * 外键名称
	 */
	private String fkName;

	/**
	 * 关联主键表名称
	 */
	private String fkRefTableName;

	private String fkRefJavaTableName;

	private String pkRefTableName;

	private String pkRefTableJavaName;

	private String pkRefColName;

	private String pkRefColJavaName;

	/**
	 * 关联表主键列名称
	 */
	private String pkColName;

	private String pkColJavaName;

	/**
	 * 外键列名
	 */
	private String fkColName;

	private String fkColJavaName;

	/**
	 * 主表的主键值跟子表的外键值对比字符串
	 */
	private String pkEqualsFkStr;

	/**
	 * @return the pkEqualsFkStr
	 */
	public String getPkEqualsFkStr() {
		return pkEqualsFkStr;
	}

	/**
	 * @param pkEqualsFkStr the pkEqualsFkStr to set
	 */
	public void setPkEqualsFkStr(String pkEqualsFkStr) {
		this.pkEqualsFkStr = pkEqualsFkStr;
	}

	/**
	 * 主键修改对外键的影响 importedKeyNoAction (3)importedKeyCascade (0)importedKeySetNull
	 * (2) importedKeySetDefault (4)importedKeyRestrict(1)
	 */
	private int updateRule;

	/**
	 * 主键记录删除对外键的影响 importedKeyNoAction (3)importedKeyCascade (0) importedKeySetNull
	 * (2)importedKeySetDefault (4)importedKeyRestrict (1)
	 */
	private int deleteRule;

	/**
	 * 级联删除
	 */
	private int cascade = 0;

	/**
	 * 自动加载
	 */
	private String load;

	/**
	 * 排序
	 */
	private String orderBy;

	/**
	 * 自动保存
	 */
	private int autoSave = 1;

	/**
	 * 修改自动先删除子表
	 */
	private String updateSql;

	/**
	 * @return the pkColJavaName
	 */
	public String getPkColJavaName() {
		return pkColJavaName;
	}

	/**
	 * @param pkColJavaName the pkColJavaName to set
	 */
	public void setPkColJavaName(String pkColJavaName) {
		this.pkColJavaName = pkColJavaName;
	}

	/**
	 * @return the fkColJavaName
	 */
	public String getFkColJavaName() {
		return fkColJavaName;
	}

	/**
	 * @param fkColJavaName the fkColJavaName to set
	 */
	public void setFkColJavaName(String fkColJavaName) {
		this.fkColJavaName = fkColJavaName;
	}

	/**
	 * @return the fkRefTableName
	 */
	public String getFkRefTableName() {
		return fkRefTableName;
	}

	/**
	 * @param fkRefTableName the fkRefTableName to set
	 */
	public void setFkRefTableName(String fkRefTableName) {
		this.fkRefTableName = fkRefTableName;
	}

	/**
	 * @return the pkColName
	 */
	public String getPkColName() {
		return pkColName;
	}

	/**
	 * @param pkColName the pkColName to set
	 */
	public void setPkColName(String pkColName) {
		this.pkColName = pkColName;
	}

	/**
	 * @return the fkColName
	 */
	public String getFkColName() {
		return fkColName;
	}

	/**
	 * @param fkColName the fkColName to set
	 */
	public void setFkColName(String fkColName) {
		this.fkColName = fkColName;
	}

	/**
	 * @return the fkRefJavaTableName
	 */
	public String getFkRefJavaTableName() {
		return fkRefJavaTableName;
	}

	/**
	 * @param fkRefJavaTableName the fkRefJavaTableName to set
	 */
	public void setFkRefJavaTableName(String fkRefJavaTableName) {
		this.fkRefJavaTableName = fkRefJavaTableName;
	}

	/**
	 * @return the updateRule
	 */
	public int getUpdateRule() {
		return updateRule;
	}

	/**
	 * @param updateRule the updateRule to set
	 */
	public void setUpdateRule(int updateRule) {
		this.updateRule = updateRule;
	}

	/**
	 * @return the deleteRule
	 */
	public int getDeleteRule() {
		return deleteRule;
	}

	/**
	 * @param deleteRule the deleteRule to set
	 */
	public void setDeleteRule(int deleteRule) {
		this.deleteRule = deleteRule;
	}

	/**
	 * @return the pkRefTableName
	 */
	public String getPkRefTableName() {
		return pkRefTableName;
	}

	/**
	 * @param pkRefTableName the pkRefTableName to set
	 */
	public void setPkRefTableName(String pkRefTableName) {
		this.pkRefTableName = pkRefTableName;
	}

	/**
	 * @return the pkRefTableJavaName
	 */
	public String getPkRefTableJavaName() {
		return pkRefTableJavaName;
	}

	/**
	 * @param pkRefTableJavaName the pkRefTableJavaName to set
	 */
	public void setPkRefTableJavaName(String pkRefTableJavaName) {
		this.pkRefTableJavaName = pkRefTableJavaName;
	}

	/**
	 * @return the pkRefColName
	 */
	public String getPkRefColName() {
		return pkRefColName;
	}

	/**
	 * @param pkRefColName the pkRefColName to set
	 */
	public void setPkRefColName(String pkRefColName) {
		this.pkRefColName = pkRefColName;
	}

	/**
	 * @return the pkRefJavaColName
	 */
	public String getPkRefColJavaName() {
		return pkRefColJavaName;
	}

	/**
	 * @param pkRefJavaColName the pkRefJavaColName to set
	 */
	public void setPkRefColJavaName(String pkRefColJavaName) {
		this.pkRefColJavaName = pkRefColJavaName;
	}

	/**
	 * @return the load
	 */
	public String getLoad() {
		return load;
	}

	/**
	 * @param load the load to set
	 */
	public void setLoad(String load) {
		this.load = load;
	}

	/**
	 * @return the autoSave
	 */
	public int getAutoSave() {
		return autoSave;
	}

	/**
	 * @param autoSave the autoSave to set
	 */
	public void setAutoSave(int autoSave) {
		this.autoSave = autoSave;
	}

	/**
	 * @return the cascade
	 */
	public int getCascade() {
		return cascade;
	}

	/**
	 * @param cascade the cascade to set
	 */
	public void setCascade(int cascade) {
		this.cascade = cascade;
	}

	/**
	 * @return the updateSql
	 */
	public String getUpdateSql() {
		return updateSql;
	}

	/**
	 * @param updateSql the updateSql to set
	 */
	public void setUpdateSql(String updateSql) {
		this.updateSql = updateSql;
	}

	/**
	 * @return the orderBy
	 */
	public String getOrderBy() {
		return orderBy;
	}

	/**
	 * @param orderBy the orderBy to set
	 */
	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}

	public String getFkName() {
		return fkName;
	}

	public void setFkName(String fkName) {
		this.fkName = fkName;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy