Class SubsettingRule
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.datasafe.model.SubsettingRule
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class SubsettingRule extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelDefines a rule for subsetting data in specific tables or schemas, including scope and processing strategies
Note: Objects should always be created or deserialized using theSubsettingRule.Builder.This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the
SubsettingRule.Builder, which maintain a set of all explicitly set fields calledSubsettingRule.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubsettingRule.Builderstatic classSubsettingRule.PeerTablesActionStrategy to be applied while processing peer tablesstatic classSubsettingRule.RelatedTablesPropagationStrategy to be applied while propagating subsetting rule to related tablesstatic classSubsettingRule.RuleCombinationModeSpecifies how this rule combines with other rules.
-
Constructor Summary
Constructors Constructor Description SubsettingRule(String key, String description, String displayName, SubsetScope scope, SubsetRuleEntry subsetRuleEntry, SubsettingRule.RuleCombinationMode ruleCombinationMode, SubsettingRule.RelatedTablesPropagation relatedTablesPropagation, SubsettingRule.PeerTablesAction peerTablesAction)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubsettingRule.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetDescription()The description of the subset ruleStringgetDisplayName()The display name of the subset ruleStringgetKey()The unique key that identifies a subsetting rule.SubsettingRule.PeerTablesActiongetPeerTablesAction()Strategy to be applied while processing peer tablesSubsettingRule.RelatedTablesPropagationgetRelatedTablesPropagation()Strategy to be applied while propagating subsetting rule to related tablesSubsettingRule.RuleCombinationModegetRuleCombinationMode()Specifies how this rule combines with other rules.SubsetScopegetScope()SubsetRuleEntrygetSubsetRuleEntry()inthashCode()SubsettingRule.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
SubsettingRule
@Deprecated @ConstructorProperties({"key","description","displayName","scope","subsetRuleEntry","ruleCombinationMode","relatedTablesPropagation","peerTablesAction"}) public SubsettingRule(String key, String description, String displayName, SubsetScope scope, SubsetRuleEntry subsetRuleEntry, SubsettingRule.RuleCombinationMode ruleCombinationMode, SubsettingRule.RelatedTablesPropagation relatedTablesPropagation, SubsettingRule.PeerTablesAction peerTablesAction)
Deprecated.
-
-
Method Detail
-
builder
public static SubsettingRule.Builder builder()
Create a new builder.
-
toBuilder
public SubsettingRule.Builder toBuilder()
-
getKey
public String getKey()
The unique key that identifies a subsetting rule.The key is numeric and unique within a subsetting policy
- Returns:
- the value
-
getDescription
public String getDescription()
The description of the subset rule- Returns:
- the value
-
getDisplayName
public String getDisplayName()
The display name of the subset rule- Returns:
- the value
-
getScope
public SubsetScope getScope()
-
getSubsetRuleEntry
public SubsetRuleEntry getSubsetRuleEntry()
-
getRuleCombinationMode
public SubsettingRule.RuleCombinationMode getRuleCombinationMode()
Specifies how this rule combines with other rules.UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- Returns:
- the value
-
getRelatedTablesPropagation
public SubsettingRule.RelatedTablesPropagation getRelatedTablesPropagation()
Strategy to be applied while propagating subsetting rule to related tables- Returns:
- the value
-
getPeerTablesAction
public SubsettingRule.PeerTablesAction getPeerTablesAction()
Strategy to be applied while processing peer tables- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-