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

jp.co.tis.gsp.tools.db.beans.ForeignKey Maven / Gradle / Ivy

Go to download

To automate the routine work of the DBA, it is a tool to be able to concentrate on the data modeling work.

There is a newer version: 5.0.0
Show newest version
/*
 * Copyright (C) 2015 coastland
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package jp.co.tis.gsp.tools.db.beans;

import java.util.ArrayList;
import java.util.List;

public class ForeignKey {
	private String name;

	private List columnList;
	private Entity referenceEntity;
	private List referenceColumnList;

	private Relation relation;

	public ForeignKey() {
		columnList = new ArrayList();
		referenceColumnList = new ArrayList();
	}

	public String getName() {
		return name;
	}

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

	public List getColumnList() {
		return columnList;
	}
	
	public void addColumn(Column column) {
		this.columnList.add(column);
	}

	public void setColumnList(List columnList) {
		this.columnList = columnList;
	}

	public Entity getReferenceEntity() {
		return referenceEntity;
	}

	public void setReferenceEntity(Entity referenceEntity) {
		this.referenceEntity = referenceEntity;
	}

	public List getReferenceColumnList() {
		return referenceColumnList;
	}
	
	public void addReferenceColumn(Column column) {
		this.referenceColumnList.add(column);
	}

	public void setReferenceColumnList(List referenceColumnList) {
		this.referenceColumnList = referenceColumnList;
	}

	public Relation getRelation() {
		return relation;
	}

	public void setRelation(Relation relation) {
		this.relation = relation;
	}

	public Boolean hasName() {
		return false;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy