if (fkmd.getName() != null)
{
setName(fkmd.getName());
}
ForeignKeyAction deleteAction = fkmd.getDeleteAction();
if (deleteAction != null)
{
if (deleteAction.equals(ForeignKeyAction.CASCADE))
{
setDeleteAction(ForeignKey.CASCADE_ACTION);
}
else if (deleteAction.equals(ForeignKeyAction.RESTRICT))
{
setDeleteAction(ForeignKey.RESTRICT_ACTION);
}
else if (deleteAction.equals(ForeignKeyAction.NULL))
{
setDeleteAction(ForeignKey.NULL_ACTION);
}
else if (deleteAction.equals(ForeignKeyAction.DEFAULT))
{
setDeleteAction(ForeignKey.DEFAULT_ACTION);
}
}
ForeignKeyAction updateAction = fkmd.getUpdateAction();
if (updateAction != null)
{
if (updateAction.equals(ForeignKeyAction.CASCADE))
{
setUpdateAction(ForeignKey.CASCADE_ACTION);
}
else if (updateAction.equals(ForeignKeyAction.RESTRICT))
{
setUpdateAction(ForeignKey.RESTRICT_ACTION);
}
else if (updateAction.equals(ForeignKeyAction.NULL))
{
setUpdateAction(ForeignKey.NULL_ACTION);
}
else if (updateAction.equals(ForeignKeyAction.DEFAULT))
{
setUpdateAction(ForeignKey.DEFAULT_ACTION);
}
}