Class SchemaModification

java.lang.Object
oracle.iam.platform.entitymgr.vo.SchemaModification

public class SchemaModification extends Object
  • Constructor Details

    • SchemaModification

      public SchemaModification(String attrName, SchemaModification.Operation op, SchemaAttribute attr)
      Represent a modification to a schema
      Parameters:
      attrName - attribute name to be modified
      op - operation to be done (i.e.: Add, Modify, Remove)
      attr - attribute change
    • SchemaModification

      public SchemaModification(String attrName, SchemaModification.Operation op, SchemaAttribute attr, String defaultValue)
      Represent a modification to a schema
      Parameters:
      attrName - attribute name to be modified
      op - operation to be done (i.e.: Add, Modify, Remove)
      attr - attribute change
      defaultValue - default value in the case of adding an attribute to a schema
  • Method Details

    • getAttributeName

      public String getAttributeName()
      Get the attribute name of this modification
      Returns:
      attribute name
    • getOperation

      public SchemaModification.Operation getOperation()
      Get the operation of this modification
      Returns:
      operation
    • getAttribute

      public SchemaAttribute getAttribute()
      Get the attribute modification of this modification
      Returns:
      attribute change
    • getDefaultValue

      public String getDefaultValue()
      Get the default value of this modification in the case of adding an attribute to a schema
      Returns:
      default value in the case of adding an attribute to a schema
    • setPrimaryKey

      public void setPrimaryKey()
      Set the schema attribute as primary key
    • isPrimaryKey

      public boolean isPrimaryKey()
      Get if the schema attribute is a primary key
      Returns:
      true if the schema attribute is a primary key
    • setIndexed

      public void setIndexed()
      Set the schema attribute to be indexed
    • isIndexed

      public boolean isIndexed()
      Get if the schema attribute is to be indexed
      Returns:
      true if the schema attribute is to be indexed
    • setForeignKey

      public void setForeignKey(String refEntityType, String refEntityAttr)
      Set the schema attribute as a foreign key
      Parameters:
      refEntityType - the schema entity type this foreign key is referencing
      refEntityAttr - the schema attribute this foreign key is referencing
    • isForeignKey

      public boolean isForeignKey()
      Get if the schema attribute is a foreign key
      Returns:
      true if the schema attribute is a foreign key
    • getFKRefEntityType

      public String getFKRefEntityType()
      Get the schema entity type this foreign key is referencing
      Returns:
      the schema entity type this foreign key is referencing
    • getFKRefAttribute

      public String getFKRefAttribute()
      Get the schema attribute this foreign key is referencing
      Returns:
      the schema attribute this foreign key is referencing