Skip navigation links


oracle.iam.platform.entitymgr.vo
Class SchemaModification

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


public class SchemaModification
extends java.lang.Object

Nested Class Summary
static class SchemaModification.Operation
           

 

Constructor Summary
SchemaModification(java.lang.String attrName, SchemaModification.Operation op, SchemaAttribute attr)
          Represent a modification to a schema
SchemaModification(java.lang.String attrName, SchemaModification.Operation op, SchemaAttribute attr, java.lang.String defaultValue)
          Represent a modification to a schema

 

Method Summary
 SchemaAttribute getAttribute()
          Get the attribute modification of this modification
 java.lang.String getAttributeName()
          Get the attribute name of this modification
 java.lang.String getDefaultValue()
          Get the default value of this modification in the case of adding an attribute to a schema
 java.lang.String getFKRefAttribute()
          Get the schema attribute this foreign key is referencing
 java.lang.String getFKRefEntityType()
          Get the schema entity type this foreign key is referencing
 SchemaModification.Operation getOperation()
          Get the operation of this modification
 boolean isForeignKey()
          Get if the schema attribute is a foreign key
 boolean isIndexed()
          Get if the schema attribute is to be indexed
 boolean isPrimaryKey()
          Get if the schema attribute is a primary key
 void setForeignKey(java.lang.String refEntityType, java.lang.String refEntityAttr)
          Set the schema attribute as a foreign key
 void setIndexed()
          Set the schema attribute to be indexed
 void setPrimaryKey()
          Set the schema attribute as primary key

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SchemaModification

public SchemaModification(java.lang.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(java.lang.String attrName,
                          SchemaModification.Operation op,
                          SchemaAttribute attr,
                          java.lang.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 Detail

getAttributeName

public java.lang.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 java.lang.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(java.lang.String refEntityType,
                          java.lang.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 java.lang.String getFKRefEntityType()
Get the schema entity type this foreign key is referencing
Returns:
the schema entity type this foreign key is referencing

getFKRefAttribute

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

Skip navigation links


Copyright © 2014, Oracle and/or its affiliates. All rights reserved.