Package oracle.iam.platform.entitymgr.vo
Class SchemaModification
java.lang.Object
oracle.iam.platform.entitymgr.vo.SchemaModification
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSchemaModification
(String attrName, SchemaModification.Operation op, SchemaAttribute attr) Represent a modification to a schemaSchemaModification
(String attrName, SchemaModification.Operation op, SchemaAttribute attr, String defaultValue) Represent a modification to a schema -
Method Summary
Modifier and TypeMethodDescriptionGet the attribute modification of this modificationGet the attribute name of this modificationGet the default value of this modification in the case of adding an attribute to a schemaGet the schema attribute this foreign key is referencingGet the schema entity type this foreign key is referencingGet the operation of this modificationboolean
Get if the schema attribute is a foreign keyboolean
Get if the schema attribute is to be indexedboolean
Get if the schema attribute is a primary keyvoid
setForeignKey
(String refEntityType, String refEntityAttr) Set the schema attribute as a foreign keyvoid
Set the schema attribute to be indexedvoid
Set the schema attribute as primary key
-
Constructor Details
-
SchemaModification
Represent a modification to a schema- Parameters:
attrName
- attribute name to be modifiedop
- 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 modifiedop
- operation to be done (i.e.: Add, Modify, Remove)attr
- attribute changedefaultValue
- default value in the case of adding an attribute to a schema
-
-
Method Details
-
getAttributeName
Get the attribute name of this modification- Returns:
- attribute name
-
getOperation
Get the operation of this modification- Returns:
- operation
-
getAttribute
Get the attribute modification of this modification- Returns:
- attribute change
-
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
Set the schema attribute as a foreign key- Parameters:
refEntityType
- the schema entity type this foreign key is referencingrefEntityAttr
- 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
Get the schema entity type this foreign key is referencing- Returns:
- the schema entity type this foreign key is referencing
-
getFKRefAttribute
Get the schema attribute this foreign key is referencing- Returns:
- the schema attribute this foreign key is referencing
-