com.sap.cloud.sdk.service.prov.model.internal.CSNEntityModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
SAP Cloud Platform SDK for service development
/*******************************************************************************
* (c) 201X SAP SE or an SAP affiliate company. All rights reserved.
******************************************************************************/
package com.sap.cloud.sdk.service.prov.model.internal;
import java.util.List;
public class CSNEntityModel {
private String entityName = "";
private String parentService = "";
private List elements = null;
private List annotations = null;
private List queries = null;
private List associations = null;
private List functions = null;
private List actions = null;
private boolean cdsPersistenceSkipAnnotationEnabled = false;
private boolean isInsertable = false;
private boolean isUpdatable = false;
private boolean isDeletable = false;
private boolean isDraftEnabled = false;
public boolean isCdsPersistenceSkipAnnotationEnabled() {
return cdsPersistenceSkipAnnotationEnabled;
}
public void setCdsPersistenceSkipAnnotationEnabled(boolean cdsPersistenceSkipAnnotationEnabled) {
this.cdsPersistenceSkipAnnotationEnabled = cdsPersistenceSkipAnnotationEnabled;
}
public boolean isInsertable() {
for(CSNAnnotationModel annotation : annotations){
if(CSNConstants.ANNOTATION_ISINSERTABLE.equals(annotation.getName())){
if(annotation.getValue() instanceof Boolean) {
isInsertable = (Boolean) annotation.getValue();
break;
}
}
}
return isInsertable;
}
public boolean isUpdatable() {
for(CSNAnnotationModel annotation : annotations){
if(CSNConstants.ANNOTATION_ISUPDATABLE.equals(annotation.getName())){
if(annotation.getValue() instanceof Boolean) {
isUpdatable = (Boolean) annotation.getValue();
break;
}
}
}
return isUpdatable;
}
public boolean isDeletable() {
for(CSNAnnotationModel annotation : annotations){
if(CSNConstants.ANNOTATION_ISDELETABLE.equals(annotation.getName())){
if(annotation.getValue() instanceof Boolean) {
isDeletable = (Boolean) annotation.getValue();
break;
}
}
}
return isDeletable;
}
public String getEntityName() {
return entityName;
}
public void setEntityName(String entityName) {
this.entityName = entityName;
}
public String getParentService() {
return parentService;
}
public void setParentService(String parentService) {
this.parentService = parentService;
}
public List getElements() {
return elements;
}
public void setElements(List elements) {
this.elements = elements;
}
public List getAnnotations() {
return annotations;
}
public void setAnnotations(List annotations) {
this.annotations = annotations;
}
public List getQueries() {
return queries;
}
public void setQueries(List queries) {
this.queries = queries;
}
public List getAssociations() {
return associations;
}
public void setAssociations(List associations) {
this.associations = associations;
}
public List getFunctions() {
return functions;
}
public void setFunctions(List functions) {
this.functions = functions;
}
public List getActions() {
return actions;
}
public void setActions(List actions) {
this.actions = actions;
}
public boolean isDraftEnabled() {
return isDraftEnabled;
}
public void setDraftEnabled(boolean isDraftEnabled) {
this.isDraftEnabled = isDraftEnabled;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy