gpt4 book ai didi

org.apache.openjpa.persistence.XMLPersistenceMetaDataSerializer.isMappingMode()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 05:43:40 28 4
gpt4 key购买 nike

本文整理了Java中org.apache.openjpa.persistence.XMLPersistenceMetaDataSerializer.isMappingMode()方法的一些代码示例,展示了XMLPersistenceMetaDataSerializer.isMappingMode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLPersistenceMetaDataSerializer.isMappingMode()方法的具体详情如下:
包路径:org.apache.openjpa.persistence.XMLPersistenceMetaDataSerializer
类名称:XMLPersistenceMetaDataSerializer
方法名:isMappingMode

XMLPersistenceMetaDataSerializer.isMappingMode介绍

[英]Convenience method for interpreting #getMode.
[中]解释#getMode的便捷方法。

代码示例

代码示例来源:origin: org.apache.openjpa/openjpa-all

@Override
protected Collection getObjects() {
  List all = new ArrayList();
  if (isQueryMode())
    addQueryMetaDatas(all);
  if (isMappingMode())
    addSequenceMetaDatas(all);
  if ((isMetaDataMode() || isMappingMode()) && _metas != null)
    all.addAll(_metas.values());
  if (isMappingMode())
    addSystemMappingElements(all);
  serializationSort(all);
  return all;
}

代码示例来源:origin: org.apache.openejb.patch/openjpa-persistence

@Override
protected Collection getObjects() {
  List all = new ArrayList();
  if (isQueryMode())
    addQueryMetaDatas(all);
  if (isMappingMode())
    addSequenceMetaDatas(all);
  if ((isMetaDataMode() || isMappingMode()) && _metas != null)
    all.addAll(_metas.values());
  if (isMappingMode())
    addSystemMappingElements(all);
  serializationSort(all);
  return all;
}

代码示例来源:origin: org.apache.openjpa/openjpa-persistence

/**
 * Convenience method for interpreting {@link #getMode}. Takes into
 * account whether mapping information is loaded for the given instance.
 */
protected boolean isMappingMode(ValueMetaData vmd) {
  return isMappingMode(vmd.getFieldMetaData().getDefiningMetaData());
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

/**
 * Convenience method for interpreting {@link #getMode}. Takes into
 * account whether mapping information is loaded for the given instance.
 */
protected boolean isMappingMode(ValueMetaData vmd) {
  return isMappingMode(vmd.getFieldMetaData().getDefiningMetaData());
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * Convenience method for interpreting {@link #getMode}. Takes into
 * account whether mapping information is loaded for the given instance.
 */
protected boolean isMappingMode(ValueMetaData vmd) {
  return isMappingMode(vmd.getFieldMetaData().getDefiningMetaData());
}

代码示例来源:origin: org.apache.openjpa/openjpa-persistence

@Override
protected Collection getObjects() {
  List all = new ArrayList();
  if (isQueryMode())
    addQueryMetaDatas(all);
  if (isMappingMode())
    addSequenceMetaDatas(all);
  if ((isMetaDataMode() || isMappingMode()) && _metas != null)
    all.addAll(_metas.values());
  if (isMappingMode())
    addSystemMappingElements(all);
  serializationSort(all);
  return all;
}

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

@Override
protected Collection getObjects() {
  List all = new ArrayList();
  if (isQueryMode())
    addQueryMetaDatas(all);
  if (isMappingMode())
    addSequenceMetaDatas(all);
  if ((isMetaDataMode() || isMappingMode()) && _metas != null)
    all.addAll(_metas.values());
  if (isMappingMode())
    addSystemMappingElements(all);
  serializationSort(all);
  return all;
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

@Override
protected Collection getObjects() {
  List all = new ArrayList();
  if (isQueryMode())
    addQueryMetaDatas(all);
  if (isMappingMode())
    addSequenceMetaDatas(all);
  if ((isMetaDataMode() || isMappingMode()) && _metas != null)
    all.addAll(_metas.values());
  if (isMappingMode())
    addSystemMappingElements(all);
  serializationSort(all);
  return all;
}

代码示例来源:origin: org.apache.openejb.patch/openjpa-persistence

/**
 * Convenience method for interpreting {@link #getMode}. Takes into
 * account whether mapping information is loaded for the given instance.
 */
protected boolean isMappingMode(ValueMetaData vmd) {
  return isMappingMode(vmd.getFieldMetaData().getDefiningMetaData());
}

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

/**
 * Convenience method for interpreting {@link #getMode}. Takes into
 * account whether mapping information is loaded for the given instance.
 */
protected boolean isMappingMode(ValueMetaData vmd) {
  return isMappingMode(vmd.getFieldMetaData().getDefiningMetaData());
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * Convenience method for interpreting {@link #getMode}. Takes into
 * account whether mapping information is loaded for the given instance.
 */
protected boolean isMappingMode(ClassMetaData meta) {
  return isMappingMode() && (meta.getSourceMode() & MODE_MAPPING) != 0
    && (meta.getEmbeddingMetaData() != null
    || !meta.isEmbeddedOnly())
    && (meta.getEmbeddingMetaData() == null
    || isMappingMode(meta.getEmbeddingMetaData()));
}

代码示例来源:origin: org.apache.openjpa/openjpa-persistence

/**
 * Convenience method for interpreting {@link #getMode}. Takes into
 * account whether mapping information is loaded for the given instance.
 */
protected boolean isMappingMode(ClassMetaData meta) {
  return isMappingMode() && (meta.getSourceMode() & MODE_MAPPING) != 0
    && (meta.getEmbeddingMetaData() != null
    || !meta.isEmbeddedOnly())
    && (meta.getEmbeddingMetaData() == null
    || isMappingMode(meta.getEmbeddingMetaData()));
}

代码示例来源:origin: org.apache.openejb.patch/openjpa-persistence

/**
 * Convenience method for interpreting {@link #getMode}. Takes into
 * account whether mapping information is loaded for the given instance.
 */
protected boolean isMappingMode(ClassMetaData meta) {
  return isMappingMode() && (meta.getSourceMode() & MODE_MAPPING) != 0
    && (meta.getEmbeddingMetaData() != null
    || !meta.isEmbeddedOnly())
    && (meta.getEmbeddingMetaData() == null
    || isMappingMode(meta.getEmbeddingMetaData()));
}

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

/**
 * Convenience method for interpreting {@link #getMode}. Takes into
 * account whether mapping information is loaded for the given instance.
 */
protected boolean isMappingMode(ClassMetaData meta) {
  return isMappingMode() && (meta.getSourceMode() & MODE_MAPPING) != 0
    && (meta.getEmbeddingMetaData() != null
    || !meta.isEmbeddedOnly())
    && (meta.getEmbeddingMetaData() == null
    || isMappingMode(meta.getEmbeddingMetaData()));
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

/**
 * Convenience method for interpreting {@link #getMode}. Takes into
 * account whether mapping information is loaded for the given instance.
 */
protected boolean isMappingMode(ClassMetaData meta) {
  return isMappingMode() && (meta.getSourceMode() & MODE_MAPPING) != 0
    && (meta.getEmbeddingMetaData() != null
    || !meta.isEmbeddedOnly())
    && (meta.getEmbeddingMetaData() == null
    || isMappingMode(meta.getEmbeddingMetaData()));
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

if (isMetaDataMode())
  addClassAttributes(meta, access);
if (isMappingMode())
  addClassMappingAttributes(meta);
if (isMappingMode())
  serializeClassMappingContent(meta);
if (isMetaDataMode())
  serializeIdClass(meta);
if (isMappingMode())
  serializeInheritanceContent(meta);
if (isMappingMode()) {
  List seqs = (_seqs == null) ? null : _seqs.get
    (meta.getDescribedType().getName());
      serializeQuery((QueryMetaData) queries.get(i));
  if (isMappingMode())
    serializeQueryMappings(meta);
if (isMappingMode()) {
  FieldMetaData fmd;
  FieldMetaData orig;
if (fields.size() > 0 && (isMetaDataMode() || isMappingMode())) {
  startElement("attributes");
  FieldMetaData orig;

代码示例来源:origin: org.apache.openjpa/openjpa-persistence

if (isMetaDataMode())
  addClassAttributes(meta, access);
if (isMappingMode())
  addClassMappingAttributes(meta);
if (isMappingMode())
  serializeClassMappingContent(meta);
if (isMetaDataMode())
  serializeIdClass(meta);
if (isMappingMode())
  serializeInheritanceContent(meta);
if (isMappingMode()) {
  List seqs = (_seqs == null) ? null : _seqs.get
    (meta.getDescribedType().getName());
      serializeQuery((QueryMetaData) queries.get(i));
  if (isMappingMode())
    serializeQueryMappings(meta);
if (isMappingMode()) {
  FieldMetaData fmd;
  FieldMetaData orig;
if (fields.size() > 0 && (isMetaDataMode() || isMappingMode())) {
  startElement("attributes");
  FieldMetaData orig;

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

break;
case TYPE_SEQ:
  if (isMappingMode())
    serializeSequence((SequenceMetaData) obj);
case TYPE_QUERY:
  break;
case TYPE_CLASS_SEQS:
  if (isMappingMode())
    for (SequenceMetaData seq : ((ClassSeqs) obj)
      .getSequences())
  break;
default:
  if (isMappingMode())
    serializeSystemMappingElement(obj);
  break;

代码示例来源:origin: org.apache.openjpa/openjpa-persistence

break;
case TYPE_SEQ:
  if (isMappingMode())
    serializeSequence((SequenceMetaData) obj);
  break;
  break;
case TYPE_CLASS_SEQS:
  if (isMappingMode())
    for (SequenceMetaData seq : ((ClassSeqs) obj)
      .getSequences())
  break;
default:
  if (isMappingMode())
    serializeSystemMappingElement(obj);
  break;

代码示例来源:origin: org.apache.openejb.patch/openjpa-persistence

break;
case TYPE_SEQ:
  if (isMappingMode())
    serializeSequence((SequenceMetaData) obj);
  break;
  break;
case TYPE_CLASS_SEQS:
  if (isMappingMode())
    for (SequenceMetaData seq : ((ClassSeqs) obj)
      .getSequences())
  break;
default:
  if (isMappingMode())
    serializeSystemMappingElement(obj);
  break;

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com