当前位置: 首页>>代码示例>>Java>>正文


Java CsdlEntityContainerInfo.setContainerName方法代码示例

本文整理汇总了Java中org.apache.olingo.commons.api.edm.provider.CsdlEntityContainerInfo.setContainerName方法的典型用法代码示例。如果您正苦于以下问题:Java CsdlEntityContainerInfo.setContainerName方法的具体用法?Java CsdlEntityContainerInfo.setContainerName怎么用?Java CsdlEntityContainerInfo.setContainerName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.olingo.commons.api.edm.provider.CsdlEntityContainerInfo的用法示例。


在下文中一共展示了CsdlEntityContainerInfo.setContainerName方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.provider.CsdlEntityContainerInfo; //导入方法依赖的package包/类
@Override
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName fqn) throws ODataException {
  CsdlSchema schema = null;

  if (fqn == null) {
    for (CsdlSchema s : this.edmSchemas) {
      if (s.getEntityContainer() != null) {
        schema = s;
        break;
      }
    }
  } else {
    schema = getSchema(fqn.getNamespace());
  }

  if (schema != null) {
    CsdlEntityContainer ec = schema.getEntityContainer();
    if (ec != null) {
      CsdlEntityContainerInfo info = new CsdlEntityContainerInfo();
      info.setContainerName(new FullQualifiedName(schema.getNamespace(), ec.getName()));
      if (schema.getEntityContainer().getExtendsContainer() != null) {
        info.setExtendsContainer(new FullQualifiedName(schema.getEntityContainer().getExtendsContainer()));
      }
      return info;
    }
  }
  return null;
}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:29,代码来源:SchemaBasedEdmProvider.java

示例2: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.provider.CsdlEntityContainerInfo; //导入方法依赖的package包/类
@Override
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) {
  // This method is invoked when displaying the service document at 
  // e.g. http://localhost:8080/DemoService/DemoService.svc
  if(entityContainerName == null || entityContainerName.equals(CONTAINER)){
    CsdlEntityContainerInfo entityContainerInfo = new CsdlEntityContainerInfo();
    entityContainerInfo.setContainerName(CONTAINER);
    return entityContainerInfo;
  }

  return null;
}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:13,代码来源:DemoEdmProvider.java

示例3: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.provider.CsdlEntityContainerInfo; //导入方法依赖的package包/类
@Override
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) {
  // This method is invoked when displaying the service document 
  // at e.g. http://localhost:8080/DemoService/DemoService.svc
  if(entityContainerName == null || entityContainerName.equals(CONTAINER)){
    CsdlEntityContainerInfo entityContainerInfo = new CsdlEntityContainerInfo();
    entityContainerInfo.setContainerName(CONTAINER);
    return entityContainerInfo;
  }

  return null;

}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:14,代码来源:DemoEdmProvider.java

示例4: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.provider.CsdlEntityContainerInfo; //导入方法依赖的package包/类
@Override
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) {

  // This method is invoked when displaying the service document at
  // e.g. http://localhost:8080/DemoService/DemoService.svc
  if (entityContainerName == null || entityContainerName.equals(CONTAINER)) {
    CsdlEntityContainerInfo entityContainerInfo = new CsdlEntityContainerInfo();
    entityContainerInfo.setContainerName(CONTAINER);
    return entityContainerInfo;
  }
  return null;
}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:13,代码来源:DemoEdmProvider.java

示例5: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.provider.CsdlEntityContainerInfo; //导入方法依赖的package包/类
@Override
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) {
  // This method is invoked when displaying the service document at 
  // e.g. http://localhost:8080/DemoService/DemoService.svc
  if(entityContainerName == null || entityContainerName.equals(CONTAINER)){
    CsdlEntityContainerInfo entityContainerInfo = new CsdlEntityContainerInfo();
    entityContainerInfo.setContainerName(CONTAINER);
    return entityContainerInfo;
  }

  return null;

}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:14,代码来源:DemoEdmProvider.java

示例6: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.provider.CsdlEntityContainerInfo; //导入方法依赖的package包/类
@Override
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) {

  // This method is invoked when displaying the service document at
  // e.g. http://localhost:8080/DemoService/DemoService.svc
  if (entityContainerName == null || entityContainerName.equals(CONTAINER)) {
    CsdlEntityContainerInfo entityContainerInfo = new CsdlEntityContainerInfo();
    entityContainerInfo.setContainerName(CONTAINER);
    return entityContainerInfo;
  }

  return null;
}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:14,代码来源:DemoEdmProvider.java

示例7: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.provider.CsdlEntityContainerInfo; //导入方法依赖的package包/类
@Override
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) {

  // This method is invoked when displaying the service document at e.g. http://localhost:8080/DemoService/DemoService.svc
  if(entityContainerName == null || entityContainerName.equals(CONTAINER)){
    CsdlEntityContainerInfo entityContainerInfo = new CsdlEntityContainerInfo();
    entityContainerInfo.setContainerName(CONTAINER);
    return entityContainerInfo;
  }

  return null;
}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:13,代码来源:DemoEdmProvider.java

示例8: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.provider.CsdlEntityContainerInfo; //导入方法依赖的package包/类
@Override
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) {
  // This method is invoked when displaying the service document at
  // e.g. http://localhost:8080/DemoService/DemoService.svc
  if (entityContainerName == null || entityContainerName.equals(CONTAINER)) {
    CsdlEntityContainerInfo entityContainerInfo = new CsdlEntityContainerInfo();
    entityContainerInfo.setContainerName(CONTAINER);
    return entityContainerInfo;
  }

  return null;

}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:14,代码来源:DemoEdmProvider.java

示例9: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.provider.CsdlEntityContainerInfo; //导入方法依赖的package包/类
@Override
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) throws ODataException {
	CsdlEntityContainerInfo entityContainerInfo = new CsdlEntityContainerInfo();
	entityContainerInfo.setContainerName( container );      
	return entityContainerInfo;
}
 
开发者ID:jbaliuka,项目名称:sql-analytic,代码行数:7,代码来源:SQLEdmProvider.java


注:本文中的org.apache.olingo.commons.api.edm.provider.CsdlEntityContainerInfo.setContainerName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。