com.codbex.kronos.parser.xsodata.model.XSODataRepositoryObject Maven / Gradle / Ivy
/*
* 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.Objects;
/**
* The Class HDBXSODataRepositoryObject.
*/
public class XSODataRepositoryObject {
/**
* Catalog object name
* The name can represent repoobject or catalogobject.
* Repoobject is represented as "repopackage '/' reponame '.' repoextension"
* * {@code
* service {
* "teamdemo/MY_REPO_NAME.REPO_NAME" as "MyTable";
* }
* }
* Catalogobject is represented as "catalogobjectschema '.' catalogobjectname"
* {@code
* service {
* "MY_SCHEMA"."sample.odata::table" as "MyTable";
* }
* }
*/
private String catalogObjectName;
/** The catalog object schema. */
private String catalogObjectSchema;
/**
* Gets the catalog object name.
*
* @return the catalog object name
*/
public String getCatalogObjectName() {
return catalogObjectName;
}
/**
* Sets the catalog object name.
*
* @param catalogObjectName the catalog object name
* @return the HDBXSO data repository object
*/
public XSODataRepositoryObject setCatalogObjectName(String catalogObjectName) {
this.catalogObjectName = catalogObjectName;
return this;
}
/**
* Gets the catalog object schema.
*
* @return the catalog object schema
*/
public String getCatalogObjectSchema() {
return catalogObjectSchema;
}
/**
* Sets the catalog object schema.
*
* @param catalogObjectSchema the catalog object schema
* @return the HDBXSO data repository object
*/
public XSODataRepositoryObject setCatalogObjectSchema(String catalogObjectSchema) {
this.catalogObjectSchema = catalogObjectSchema;
return this;
}
/**
* 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;
XSODataRepositoryObject that = (XSODataRepositoryObject) o;
return Objects.equals(catalogObjectName, that.catalogObjectName) && Objects.equals(catalogObjectSchema, that.catalogObjectSchema);
}
/**
* Hash code.
*
* @return the int
*/
@Override
public int hashCode() {
return Objects.hash(catalogObjectName, catalogObjectSchema);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy