當前位置: 首頁>>代碼示例>>Java>>正文


Java EdmProperty.getFcTargetPath方法代碼示例

本文整理匯總了Java中org.odata4j.edm.EdmProperty.getFcTargetPath方法的典型用法代碼示例。如果您正苦於以下問題:Java EdmProperty.getFcTargetPath方法的具體用法?Java EdmProperty.getFcTargetPath怎麽用?Java EdmProperty.getFcTargetPath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.odata4j.edm.EdmProperty的用法示例。


在下文中一共展示了EdmProperty.getFcTargetPath方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: reportProperties

import org.odata4j.edm.EdmProperty; //導入方法依賴的package包/類
private static void reportProperties(Iterable<EdmProperty> properties) {
  for (EdmProperty property : properties) {
    String p = String.format("Property Name=%s Type=%s Nullable=%s", property.getName(), property.getType(), property.isNullable());
    if (property.getMaxLength() != null)
      p = p + " MaxLength=" + property.getMaxLength();
    if (property.getUnicode() != null)
      p = p + " Unicode=" + property.getUnicode();
    if (property.getFixedLength() != null)
      p = p + " FixedLength=" + property.getFixedLength();

    if (property.getStoreGeneratedPattern() != null)
      p = p + " StoreGeneratedPattern=" + property.getStoreGeneratedPattern();
    if (property.getConcurrencyMode() != null)
      p = p + " ConcurrencyMode=" + property.getConcurrencyMode();

    if (property.getFcTargetPath() != null)
      p = p + " TargetPath=" + property.getFcTargetPath();
    if (property.getFcContentKind() != null)
      p = p + " ContentKind=" + property.getFcContentKind();
    if (property.getFcKeepInContent() != null)
      p = p + " KeepInContent=" + property.getFcKeepInContent();
    if (property.getFcContentKind() != null)
      p = p + " EpmContentKind=" + property.getFcContentKind();
    if (property.getFcEpmKeepInContent() != null)
      p = p + " EpmKeepInContent=" + property.getFcEpmKeepInContent();
    report("    " + p);
  }
}
 
開發者ID:teiid,項目名稱:oreva,代碼行數:29,代碼來源:AbstractExample.java

示例2: writeProperties

import org.odata4j.edm.EdmProperty; //導入方法依賴的package包/類
private static void writeProperties(Iterable<EdmProperty> properties, XMLWriter2 writer) {
  for (EdmProperty prop : properties) {
    writer.startElement(new QName2("Property"));

    writer.writeAttribute("Name", prop.getName());
    writer.writeAttribute("Type", prop.getType().getFullyQualifiedTypeName());
    writer.writeAttribute("Nullable", Boolean.toString(prop.isNullable()));
    if (prop.getDefaultValue() != null) {
      writer.writeAttribute("DefaultValue", prop.getDefaultValue());
    }
    if (prop.getMaxLength() != null) {
      writer.writeAttribute("MaxLength", Integer.toString(prop.getMaxLength()));
    }
    if (prop.getFixedLength() != null) {
      writer.writeAttribute("FixedLength", Boolean.toString(prop.getFixedLength()));
    }
    if (!prop.getCollectionKind().equals(CollectionKind.NONE)) {
      writer.writeAttribute("CollectionKind", prop.getCollectionKind().toString());
    }

    if (prop.getPrecision() != null) {
      writer.writeAttribute("Precision", Integer.toString(prop.getPrecision()));
    }
    if (prop.getScale() != null) {
      writer.writeAttribute("Scale", Integer.toString(prop.getScale()));
    }
    if (prop.getCollation() != null) {
      writer.writeAttribute("Collation", prop.getCollation());
    }
    if (prop.getUnicode() != null) {
      writer.writeAttribute("Unicode", Boolean.toString(prop.getUnicode()));
    }
    if (prop.getConcurrencyMode() != null) {
      writer.writeAttribute("ConcurrencyMode", prop.getConcurrencyMode());
    }
    if (prop.getMimeType() != null) {
      writer.writeAttribute(new QName2(m, "MimeType", "m"), prop.getMimeType());
    }
    if (prop.getFcTargetPath() != null) {
      writer.writeAttribute(new QName2(m, "FC_TargetPath", "m"), prop.getFcTargetPath());
    }
    if (prop.getFcKeepInContent() != null) {
      writer.writeAttribute(new QName2(m, "FC_KeepInContent", "m"), prop.getFcKeepInContent());
    }
    if (prop.getFcNsPrefix() != null) {
      writer.writeAttribute(new QName2(m, "FC_NsPrefix", "m"), prop.getFcNsPrefix());
    }
    if (prop.getFcNsUri() != null) {
      writer.writeAttribute(new QName2(m, "FC_NsUri", "m"), prop.getFcNsUri());
    }

    writeAnnotationAttributes(prop, writer);
    writeAnnotationElements(prop, writer);
    writer.endElement("Property");
  }
}
 
開發者ID:teiid,項目名稱:oreva,代碼行數:57,代碼來源:EdmxFormatWriter.java


注:本文中的org.odata4j.edm.EdmProperty.getFcTargetPath方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。