本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}