com.codbex.kronos.parser.xsodata.model.XSODataAssociation Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2022 codbex or an codbex affiliate company and contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: 2022 codbex or an codbex affiliate company and contributors
* SPDX-License-Identifier: EPL-2.0
*/
package com.codbex.kronos.parser.xsodata.model;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* The Class HDBXSODataAssociation.
*/
public class XSODataAssociation {
/** The name. */
private String name;
/** The with referential constraint. */
private boolean withReferentialConstraint;
/** The principal. */
private XSODataBinding principal;
/** The dependent. */
private XSODataBinding dependent;
/** The association table. */
private XSODataAssociationTable associationTable;
/** The storage. */
private XSODataStorage storage;
/** The modifications. */
private List modifications = new ArrayList<>();
/**
* Gets the name.
*
* @return the name
*/
public String getName() {
return name;
}
/**
* Sets the name.
*
* @param name the new name
*/
public void setName(String name) {
this.name = name;
}
/**
* Checks if is with referential constraint.
*
* @return true, if is with referential constraint
*/
public boolean isWithReferentialConstraint() {
return withReferentialConstraint;
}
/**
* Sets the with referential constraint.
*
* @param withReferentialConstraint the new with referential constraint
*/
public void setWithReferentialConstraint(boolean withReferentialConstraint) {
this.withReferentialConstraint = withReferentialConstraint;
}
/**
* Gets the principal.
*
* @return the principal
*/
public XSODataBinding getPrincipal() {
return principal;
}
/**
* Sets the principal.
*
* @param principal the new principal
*/
public void setPrincipal(XSODataBinding principal) {
this.principal = principal;
}
/**
* Gets the dependent.
*
* @return the dependent
*/
public XSODataBinding getDependent() {
return dependent;
}
/**
* Sets the dependent.
*
* @param dependent the new dependent
*/
public void setDependent(XSODataBinding dependent) {
this.dependent = dependent;
}
/**
* Gets the association table.
*
* @return the association table
*/
public XSODataAssociationTable getAssociationTable() {
return associationTable;
}
/**
* Sets the association table.
*
* @param associationTable the new association table
*/
public void setAssociationTable(XSODataAssociationTable associationTable) {
this.associationTable = associationTable;
}
/**
* Gets the storage.
*
* @return the storage
*/
public XSODataStorage getStorage() {
return storage;
}
/**
* Sets the storage.
*
* @param storage the new storage
*/
public void setStorage(XSODataStorage storage) {
this.storage = storage;
}
/**
* Gets the modifications.
*
* @return the modifications
*/
public List getModifications() {
return modifications;
}
/**
* Sets the modifications.
*
* @param modifications the new modifications
*/
public void setModifications(List modifications) {
this.modifications = modifications;
}
/**
* Equals.
*
* @param o the o
* @return true, if successful
*/
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
XSODataAssociation that = (XSODataAssociation) o;
return withReferentialConstraint == that.withReferentialConstraint && Objects.equals(name, that.name) && Objects.equals(principal,
that.principal) && Objects.equals(dependent, that.dependent) && Objects.equals(associationTable, that.associationTable)
&& Objects.equals(storage, that.storage) && Objects.equals(modifications, that.modifications);
}
/**
* Hash code.
*
* @return the int
*/
@Override
public int hashCode() {
return Objects.hash(name, withReferentialConstraint, principal, dependent, associationTable, storage, modifications);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy