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

com.sap.cloud.sdk.service.csn2jpa.cds.model.CdsManagedAssociation Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
/*******************************************************************************
 * * © 2018 SAP SE or an SAP affiliate company. All rights reserved. *
 ******************************************************************************/
package com.sap.cloud.sdk.service.csn2jpa.cds.model;

import java.util.Collections;
import java.util.List;

import com.google.common.collect.Lists;

public class CdsManagedAssociation extends CdsAssociation {

	private List foreignKeys = Lists.newArrayList();

	public CdsManagedAssociation() {

	}

	public CdsManagedAssociation(String name) {
		super(name);
	}

	public List getForeignKeys() {
		return Collections.unmodifiableList(foreignKeys);
	}

	public void setForeignKeys(List foreignKeys) {
		this.foreignKeys = Lists.newArrayList(foreignKeys);
	}

	@Override
	public void accept(CdsVisitor visitor) {
		foreignKeys.forEach(fk -> fk.accept(visitor));

		visitor.visit(this);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy