Difference between revisions of "RelationReplication"
m |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | A relation replication configuration defines how to replicate (copy) a relation instance. The relation configuration is configured via the Relation Replication property on an instance replication object. {{Version/ServerSince|2.5.1}} | |
− | + | ||
− | A relation replication configuration defines how to replicate (copy) a relation instance. | + | |
− | The relation configuration is configured via the Relation Replication property on an instance replication object. | + | |
− | + | ||
− | + | ||
== Configuration Types == | == Configuration Types == | ||
Line 11: | Line 6: | ||
* Referencing objects to be copied on the relation data object | * Referencing objects to be copied on the relation data object | ||
* Relations to be copied on threlation data object | * Relations to be copied on threlation data object | ||
− | |||
== Properties == | == Properties == | ||
Line 23: | Line 17: | ||
|- | |- | ||
|} | |} | ||
− | |||
− | |||
== Configurable Members for the replication of the Relation == | == Configurable Members for the replication of the Relation == | ||
Line 34: | Line 26: | ||
<source lang="csharp"> | <source lang="csharp"> | ||
protected override System.Boolean RelationReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, UBIK.Kernel.Relationship relation, System.Boolean reverse, UBIK.Kernel.Replication.InstanceReplication targetReplication) | protected override System.Boolean RelationReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, UBIK.Kernel.Relationship relation, System.Boolean reverse, UBIK.Kernel.Replication.InstanceReplication targetReplication) | ||
− | { | + | {...} |
</source> | </source> | ||
− | |||
− | |||
== Configurable Members for the replication of the Relation Data object == | == Configurable Members for the replication of the Relation Data object == | ||
Line 47: | Line 37: | ||
<source lang="csharp"> | <source lang="csharp"> | ||
protected override System.Boolean PropertyReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, UBIK.Kernel.BaseProperty property) | protected override System.Boolean PropertyReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, UBIK.Kernel.BaseProperty property) | ||
− | { | + | {...} |
</source> | </source> | ||
Line 57: | Line 47: | ||
<source lang="csharp"> | <source lang="csharp"> | ||
protected override System.Boolean ReferenceReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, System.String referenceName, System.Boolean reverse, UBIK.Kernel.MetaClass referenceTargetMetaClass) | protected override System.Boolean ReferenceReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, System.String referenceName, System.Boolean reverse, UBIK.Kernel.MetaClass referenceTargetMetaClass) | ||
− | { | + | {...} |
</source> | </source> | ||
+ | |||
+ | == See also == | ||
+ | * [[ReplicationConfiguration]] | ||
+ | * [[InstanceReplication]] | ||
+ | * [[DocumentReplication]] | ||
+ | * [[ReferenceReplication]] | ||
+ | |||
+ | [[Category:Replicating|RelationReplication]] | ||
+ | [[Category:UBIK Object|RelationReplication]] |
Latest revision as of 15:14, 2 May 2016
A relation replication configuration defines how to replicate (copy) a relation instance. The relation configuration is configured via the Relation Replication property on an instance replication object.
Contents
Configuration Types
A configuratoin provides possibility to configure what information to be replicated:
- Properties to be copied on the relation data object
- Referencing objects to be copied on the relation data object
- Relations to be copied on threlation data object
Properties
Property | Type | Purpose |
---|---|---|
Enabled | Boolean | Gives the possibility to enable/disable an instance replication configuration. If not enabled, the process cannot be executed. |
Relation | Relationship | The reference to the Relation object the configuration is valid for. |
Configurable Members for the replication of the Relation
RelationReplicationEnabled
Determines as replicating the given relation to the target is enabled. This member can be overwritten if a specific implementation is needed.
protected override System.Boolean RelationReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, UBIK.Kernel.Relationship relation, System.Boolean reverse, UBIK.Kernel.Replication.InstanceReplication targetReplication)
{...}
{...}
Configurable Members for the replication of the Relation Data object
PropertyReplicationEnabled
Determines as copying a propertyvalue to the target is enabled. This member can be overwritten if a specific implementation is needed.
protected override System.Boolean PropertyReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, UBIK.Kernel.BaseProperty property)
{...}
{...}
ReferenceReplicationEnabled
Determines as replicating the given reference to the target is enabled. This member can be overwritten if a specific implementation is needed.
protected override System.Boolean ReferenceReplicationEnabled(UBIK.Kernel.RelationalObject source, UBIK.Kernel.RelationalObject target, System.String referenceName, System.Boolean reverse, UBIK.Kernel.MetaClass referenceTargetMetaClass)
{...}
{...}