gpt4 book ai didi

org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping.setReferenceClass()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 11:51:05 27 4
gpt4 key购买 nike

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

XMLCompositeObjectMapping.setReferenceClass介绍

暂无

代码示例

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getAccessMethodsMapping() {
  XMLCompositeObjectMapping accessMethodsMapping = new XMLCompositeObjectMapping();
  accessMethodsMapping.setAttributeName("m_accessMethods");
  accessMethodsMapping.setGetMethodName("getAccessMethods");
  accessMethodsMapping.setSetMethodName("setAccessMethods");
  accessMethodsMapping.setReferenceClass(AccessMethodsMetadata.class);
  accessMethodsMapping.setXPath("orm:access-methods");
  return accessMethodsMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getAttributesMapping() {
  XMLCompositeObjectMapping attributesMapping = new XMLCompositeObjectMapping();
  attributesMapping.setAttributeName("m_attributes");
  attributesMapping.setGetMethodName("getAttributes");
  attributesMapping.setSetMethodName("setAttributes");
  attributesMapping.setReferenceClass(XMLAttributes.class);
  attributesMapping.setXPath("orm:attributes");
  return attributesMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getCacheInterceptorMapping() {
  XMLCompositeObjectMapping cacheMapping = new XMLCompositeObjectMapping();
  cacheMapping.setAttributeName("m_cacheInterceptor");
  cacheMapping.setGetMethodName("getCacheInterceptor");
  cacheMapping.setSetMethodName("setCacheInterceptor");
  cacheMapping.setReferenceClass(CacheInterceptorMetadata.class);
  cacheMapping.setXPath("orm:cache-interceptor");
  return cacheMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getEnumeratedMapping() {
  XMLCompositeObjectMapping enumeratedMapping = new XMLCompositeObjectMapping();
  enumeratedMapping.setAttributeName("m_enumerated");
  enumeratedMapping.setGetMethodName("getEnumerated");
  enumeratedMapping.setSetMethodName("setEnumerated");
  enumeratedMapping.setReferenceClass(EnumeratedMetadata.class);
  enumeratedMapping.setXPath("orm:enumerated");
  return enumeratedMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getMultitenantMapping() {
  XMLCompositeObjectMapping multitenantMapping = new XMLCompositeObjectMapping();
  multitenantMapping.setAttributeName("m_multitenant");
  multitenantMapping.setGetMethodName("getMultitenant");
  multitenantMapping.setSetMethodName("setMultitenant");
  multitenantMapping.setReferenceClass(MultitenantMetadata.class);
  multitenantMapping.setXPath("orm:multitenant");
  return multitenantMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getReturnInsertMapping() {
  XMLCompositeObjectMapping mapping = new XMLCompositeObjectMapping();
  mapping.setAttributeName("m_returnInsert");
  mapping.setGetMethodName("getReturnInsert");
  mapping.setSetMethodName("setReturnInsert");
  mapping.setReferenceClass(ReturnInsertMetadata.class);
  mapping.setXPath("orm:return-insert");
  return mapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getUuidGeneratorMapping() {
  XMLCompositeObjectMapping uuidGeneratorMapping = new XMLCompositeObjectMapping();
  uuidGeneratorMapping.setAttributeName("m_uuidGenerator");
  uuidGeneratorMapping.setGetMethodName("getUuidGenerator");
  uuidGeneratorMapping.setSetMethodName("setUuidGenerator");
  uuidGeneratorMapping.setReferenceClass(UuidGeneratorMetadata.class);
  uuidGeneratorMapping.setXPath("orm:uuid-generator");
  return uuidGeneratorMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getAdditionalCriteriaMapping() {
  XMLCompositeObjectMapping additionalCriteriaMapping = new XMLCompositeObjectMapping();
  additionalCriteriaMapping.setAttributeName("m_additionalCriteria");
  additionalCriteriaMapping.setGetMethodName("getAdditionalCriteria");
  additionalCriteriaMapping.setSetMethodName("setAdditionalCriteria");
  additionalCriteriaMapping.setReferenceClass(AdditionalCriteriaMetadata.class);
  additionalCriteriaMapping.setXPath("orm:additional-criteria");
  return additionalCriteriaMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getCacheIndexMapping() {
  XMLCompositeObjectMapping indexMapping = new XMLCompositeObjectMapping();
  indexMapping.setAttributeName("m_cacheIndex");
  indexMapping.setGetMethodName("getCacheIndex");
  indexMapping.setSetMethodName("setCacheIndex");
  indexMapping.setReferenceClass(CacheIndexMetadata.class);
  indexMapping.setXPath("orm:cache-index");
  return indexMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getJoinTableMapping() {
  XMLCompositeObjectMapping joinTableMapping = new XMLCompositeObjectMapping();
  joinTableMapping.setAttributeName("m_joinTable");
  joinTableMapping.setGetMethodName("getJoinTable");
  joinTableMapping.setSetMethodName("setJoinTable");
  joinTableMapping.setReferenceClass(JoinTableMetadata.class);
  joinTableMapping.setXPath("orm:join-table");
  return joinTableMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getMapKeyEnumeratedMapping() {
  XMLCompositeObjectMapping mapKeyEnumeratedMapping = new XMLCompositeObjectMapping();
  mapKeyEnumeratedMapping.setAttributeName("m_mapKeyEnumerated");
  mapKeyEnumeratedMapping.setGetMethodName("getMapKeyEnumerated");
  mapKeyEnumeratedMapping.setSetMethodName("setMapKeyEnumerated");
  mapKeyEnumeratedMapping.setReferenceClass(EnumeratedMetadata.class);
  mapKeyEnumeratedMapping.setXPath("orm:map-key-enumerated");
  return mapKeyEnumeratedMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getTableGeneratorMapping() {
  XMLCompositeObjectMapping tableGeneratorMapping = new XMLCompositeObjectMapping();
  tableGeneratorMapping.setAttributeName("m_tableGenerator");
  tableGeneratorMapping.setGetMethodName("getTableGenerator");
  tableGeneratorMapping.setSetMethodName("setTableGenerator");
  tableGeneratorMapping.setReferenceClass(TableGeneratorMetadata.class);
  tableGeneratorMapping.setXPath("orm:table-generator");
  return tableGeneratorMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getTenantTableDiscriminatorMapping() {
  XMLCompositeObjectMapping tenantTableDiscriminatorMapping = new XMLCompositeObjectMapping();
  tenantTableDiscriminatorMapping.setAttributeName("m_tenantTableDiscriminator");
  tenantTableDiscriminatorMapping.setGetMethodName("getTenantTableDiscriminator");
  tenantTableDiscriminatorMapping.setSetMethodName("setTenantTableDiscriminator");
  tenantTableDiscriminatorMapping.setReferenceClass(TenantTableDiscriminatorMetadata.class);
  tenantTableDiscriminatorMapping.setXPath("orm:tenant-table-discriminator");
  return tenantTableDiscriminatorMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getUnionPartitioningMapping() {
  XMLCompositeObjectMapping mapping = new XMLCompositeObjectMapping();
  mapping.setAttributeName("m_unionPartitioning");
  mapping.setGetMethodName("getUnionPartitioning");
  mapping.setSetMethodName("setUnionPartitioning");
  mapping.setReferenceClass(UnionPartitioningMetadata.class);
  mapping.setXPath("orm:union-partitioning");
  return mapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getCollectionTableMapping() {
  XMLCompositeObjectMapping collectionTableMapping = new XMLCompositeObjectMapping();
  collectionTableMapping.setAttributeName("m_collectionTable");
  collectionTableMapping.setGetMethodName("getCollectionTable");
  collectionTableMapping.setSetMethodName("setCollectionTable");
  collectionTableMapping.setReferenceClass(CollectionTableMetadata.class);
  collectionTableMapping.setXPath("orm:collection-table");
  return collectionTableMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeObjectMapping getPrimaryKeyForeignKeyMapping() {
  XMLCompositeObjectMapping mapping = new XMLCompositeObjectMapping();
  mapping.setAttributeName("m_primaryKeyForeignKey");
  mapping.setGetMethodName("getPrimaryKeyForeignKey");
  mapping.setSetMethodName("setPrimaryKeyForeignKey");
  mapping.setReferenceClass(PrimaryKeyForeignKeyMetadata.class);
  mapping.setXPath("orm:primary-key-foreign-key");
  return mapping;
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected ClassDescriptor buildXMLChoiceFieldToClassAssociationDescriptor() {
  ClassDescriptor descriptor = super.buildXMLChoiceFieldToClassAssociationDescriptor();
  XMLCompositeObjectMapping converterMapping = new XMLCompositeObjectMapping();
  converterMapping.setAttributeName("converter");
  converterMapping.setXPath(getPrimaryNamespacePrefix() + "value-converter");
  converterMapping.setReferenceClass(Converter.class);
  descriptor.addMapping(converterMapping);
  return descriptor;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

protected ClassDescriptor buildXMLChoiceFieldToClassAssociationDescriptor() {
  ClassDescriptor descriptor = super.buildXMLChoiceFieldToClassAssociationDescriptor();
  XMLCompositeObjectMapping converterMapping = new XMLCompositeObjectMapping();
  converterMapping.setAttributeName("converter");
  converterMapping.setXPath(getPrimaryNamespacePrefix() + "value-converter");
  converterMapping.setReferenceClass(Converter.class);
  descriptor.addMapping(converterMapping);
  return descriptor;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

protected ClassDescriptor buildPLSQLCollectionWrapperDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(PLSQLCollectionWrapper.class);
  descriptor.getInheritancePolicy().setParentClass(DatabaseTypeWrapper.class);
  XMLCompositeObjectMapping wrappedDatabaseTypeMapping = new XMLCompositeObjectMapping();
  wrappedDatabaseTypeMapping.setAttributeName("wrappedDatabaseType");
  wrappedDatabaseTypeMapping.setXPath(".");
  wrappedDatabaseTypeMapping.setReferenceClass(PLSQLCollection.class);
  descriptor.addMapping(wrappedDatabaseTypeMapping);
  return descriptor;
}
protected ClassDescriptor buildPLSQLCursorWrapperDescriptor() {

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

protected ClassDescriptor buildObjectRelationalDatabaseFieldDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(ObjectRelationalDatabaseField.class);
  descriptor.getInheritancePolicy().setParentClass(DatabaseField.class);
  descriptor.setInstantiationPolicy(new ObjectRelationalDatabaseFieldInstantiationPolicy());
  XMLCompositeObjectMapping nestedFieldMapping = new XMLCompositeObjectMapping();
  nestedFieldMapping.setAttributeName("nestedTypeField");
  nestedFieldMapping.setXPath(getPrimaryNamespaceXPath() + "nested-type-field");
  nestedFieldMapping.setReferenceClass(DatabaseField.class);
  descriptor.addMapping(nestedFieldMapping);
  return descriptor;
}

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