Package microsoft.dynamics.crm.entity
Class OneToManyRelationshipMetadata
- java.lang.Object
-
- microsoft.dynamics.crm.entity.Crmmodelbaseentity
-
- microsoft.dynamics.crm.entity.MetadataBase
-
- microsoft.dynamics.crm.entity.RelationshipMetadataBase
-
- microsoft.dynamics.crm.entity.OneToManyRelationshipMetadata
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class OneToManyRelationshipMetadata extends RelationshipMetadataBase implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOneToManyRelationshipMetadata.Builder
-
Field Summary
Fields Modifier and Type Field Description protected AssociatedMenuConfigurationassociatedMenuConfigurationprotected CascadeConfigurationcascadeConfigurationprotected StringentityKeyprotected BooleanisHierarchicalprotected LookupAttributeMetadatalookupprotected StringreferencedAttributeprotected StringreferencedEntityprotected StringreferencedEntityNavigationPropertyNameprotected StringreferencingAttributeprotected StringreferencingEntityprotected StringreferencingEntityNavigationPropertyNameprotected List<RelationshipAttribute>relationshipAttributesprotected StringrelationshipAttributesNextLinkprotected IntegerrelationshipBehavior-
Fields inherited from class microsoft.dynamics.crm.entity.RelationshipMetadataBase
introducedVersion, isCustomizable, isCustomRelationship, isManaged, isValidForAdvancedFind, relationshipType, schemaName, securityTypes
-
Fields inherited from class microsoft.dynamics.crm.entity.MetadataBase
hasChanged, metadataId
-
Fields inherited from class microsoft.dynamics.crm.entity.Crmmodelbaseentity
changedFields, contextPath, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOneToManyRelationshipMetadata()
-
Method Summary
-
Methods inherited from class microsoft.dynamics.crm.entity.RelationshipMetadataBase
getIntroducedVersion, getIsCustomizable, getIsCustomRelationship, getIsManaged, getIsValidForAdvancedFind, getRelationshipType, getSchemaName, getSecurityTypes, withIntroducedVersion, withIsCustomizable, withIsCustomRelationship, withIsManaged, withIsValidForAdvancedFind, withRelationshipType, withSchemaName, withSecurityTypes
-
Methods inherited from class microsoft.dynamics.crm.entity.MetadataBase
getHasChanged, getMetadataId, withHasChanged, withMetadataId
-
-
-
-
Field Detail
-
associatedMenuConfiguration
protected AssociatedMenuConfiguration associatedMenuConfiguration
-
cascadeConfiguration
protected CascadeConfiguration cascadeConfiguration
-
referencedAttribute
protected String referencedAttribute
-
referencedEntity
protected String referencedEntity
-
referencingAttribute
protected String referencingAttribute
-
referencingEntity
protected String referencingEntity
-
isHierarchical
protected Boolean isHierarchical
-
entityKey
protected String entityKey
-
relationshipAttributes
protected List<RelationshipAttribute> relationshipAttributes
-
relationshipAttributesNextLink
protected String relationshipAttributesNextLink
-
referencedEntityNavigationPropertyName
protected String referencedEntityNavigationPropertyName
-
referencingEntityNavigationPropertyName
protected String referencingEntityNavigationPropertyName
-
relationshipBehavior
protected Integer relationshipBehavior
-
lookup
protected LookupAttributeMetadata lookup
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classRelationshipMetadataBase
-
builderOneToManyRelationshipMetadata
public static OneToManyRelationshipMetadata.Builder builderOneToManyRelationshipMetadata()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classRelationshipMetadataBase
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classRelationshipMetadataBase
-
getAssociatedMenuConfiguration
public Optional<AssociatedMenuConfiguration> getAssociatedMenuConfiguration()
-
withAssociatedMenuConfiguration
public OneToManyRelationshipMetadata withAssociatedMenuConfiguration(AssociatedMenuConfiguration associatedMenuConfiguration)
-
getCascadeConfiguration
public Optional<CascadeConfiguration> getCascadeConfiguration()
-
withCascadeConfiguration
public OneToManyRelationshipMetadata withCascadeConfiguration(CascadeConfiguration cascadeConfiguration)
-
withReferencedAttribute
public OneToManyRelationshipMetadata withReferencedAttribute(String referencedAttribute)
-
withReferencedEntity
public OneToManyRelationshipMetadata withReferencedEntity(String referencedEntity)
-
withReferencingAttribute
public OneToManyRelationshipMetadata withReferencingAttribute(String referencingAttribute)
-
withReferencingEntity
public OneToManyRelationshipMetadata withReferencingEntity(String referencingEntity)
-
withIsHierarchical
public OneToManyRelationshipMetadata withIsHierarchical(Boolean isHierarchical)
-
withEntityKey
public OneToManyRelationshipMetadata withEntityKey(String entityKey)
-
getRelationshipAttributes
public com.github.davidmoten.odata.client.CollectionPage<RelationshipAttribute> getRelationshipAttributes()
-
withRelationshipAttributes
public OneToManyRelationshipMetadata withRelationshipAttributes(List<RelationshipAttribute> relationshipAttributes)
-
getRelationshipAttributes
public com.github.davidmoten.odata.client.CollectionPage<RelationshipAttribute> getRelationshipAttributes(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getReferencedEntityNavigationPropertyName
public Optional<String> getReferencedEntityNavigationPropertyName()
-
withReferencedEntityNavigationPropertyName
public OneToManyRelationshipMetadata withReferencedEntityNavigationPropertyName(String referencedEntityNavigationPropertyName)
-
getReferencingEntityNavigationPropertyName
public Optional<String> getReferencingEntityNavigationPropertyName()
-
withReferencingEntityNavigationPropertyName
public OneToManyRelationshipMetadata withReferencingEntityNavigationPropertyName(String referencingEntityNavigationPropertyName)
-
withRelationshipBehavior
public OneToManyRelationshipMetadata withRelationshipBehavior(Integer relationshipBehavior)
-
withUnmappedField
public OneToManyRelationshipMetadata withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classRelationshipMetadataBase
-
getLookup
public LookupAttributeMetadataRequest getLookup()
-
withLookup
public OneToManyRelationshipMetadata withLookup(LookupAttributeMetadata lookup)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classRelationshipMetadataBase
-
patch
public OneToManyRelationshipMetadata patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classRelationshipMetadataBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public OneToManyRelationshipMetadata put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classRelationshipMetadataBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classRelationshipMetadataBase
-
-