Package microsoft.dynamics.crm.entity
Class EntityKeyMetadata
- java.lang.Object
-
- microsoft.dynamics.crm.entity.Crmmodelbaseentity
-
- microsoft.dynamics.crm.entity.MetadataBase
-
- microsoft.dynamics.crm.entity.EntityKeyMetadata
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class EntityKeyMetadata extends MetadataBase implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntityKeyMetadata.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringasyncJobprotected LabeldisplayNameprotected EntityKeyIndexStatusentityKeyIndexStatusprotected StringentityLogicalNameprotected StringintroducedVersionprotected BooleanManagedPropertyisCustomizableprotected BooleanisExportKeyprotected BooleanisManagedprotected BooleanisSynchronousprotected List<String>keyAttributesprotected StringkeyAttributesNextLinkprotected StringlogicalNameprotected StringschemaName-
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 protectedEntityKeyMetadata()
-
Method Summary
-
Methods inherited from class microsoft.dynamics.crm.entity.MetadataBase
getHasChanged, getMetadataId, withHasChanged, withMetadataId
-
-
-
-
Field Detail
-
displayName
protected Label displayName
-
logicalName
protected String logicalName
-
schemaName
protected String schemaName
-
entityLogicalName
protected String entityLogicalName
-
keyAttributesNextLink
protected String keyAttributesNextLink
-
isCustomizable
protected BooleanManagedProperty isCustomizable
-
isManaged
protected Boolean isManaged
-
introducedVersion
protected String introducedVersion
-
entityKeyIndexStatus
protected EntityKeyIndexStatus entityKeyIndexStatus
-
asyncJob
protected String asyncJob
-
isSynchronous
protected Boolean isSynchronous
-
isExportKey
protected Boolean isExportKey
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classMetadataBase
-
builderEntityKeyMetadata
public static EntityKeyMetadata.Builder builderEntityKeyMetadata()
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 classMetadataBase
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classMetadataBase
-
withDisplayName
public EntityKeyMetadata withDisplayName(Label displayName)
-
withLogicalName
public EntityKeyMetadata withLogicalName(String logicalName)
-
withSchemaName
public EntityKeyMetadata withSchemaName(String schemaName)
-
withEntityLogicalName
public EntityKeyMetadata withEntityLogicalName(String entityLogicalName)
-
getKeyAttributes
public com.github.davidmoten.odata.client.CollectionPage<String> getKeyAttributes()
-
withKeyAttributes
public EntityKeyMetadata withKeyAttributes(List<String> keyAttributes)
-
getKeyAttributes
public com.github.davidmoten.odata.client.CollectionPage<String> getKeyAttributes(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getIsCustomizable
public Optional<BooleanManagedProperty> getIsCustomizable()
-
withIsCustomizable
public EntityKeyMetadata withIsCustomizable(BooleanManagedProperty isCustomizable)
-
withIsManaged
public EntityKeyMetadata withIsManaged(Boolean isManaged)
-
withIntroducedVersion
public EntityKeyMetadata withIntroducedVersion(String introducedVersion)
-
getEntityKeyIndexStatus
public Optional<EntityKeyIndexStatus> getEntityKeyIndexStatus()
-
withEntityKeyIndexStatus
public EntityKeyMetadata withEntityKeyIndexStatus(EntityKeyIndexStatus entityKeyIndexStatus)
-
withAsyncJob
public EntityKeyMetadata withAsyncJob(String asyncJob)
-
withIsSynchronous
public EntityKeyMetadata withIsSynchronous(Boolean isSynchronous)
-
withIsExportKey
public EntityKeyMetadata withIsExportKey(Boolean isExportKey)
-
withUnmappedField
public EntityKeyMetadata withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classMetadataBase
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classMetadataBase
-
patch
public EntityKeyMetadata patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classMetadataBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public EntityKeyMetadata put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classMetadataBase- 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 classMetadataBase
-
-