/* (non-Javadoc)
* @see javax.jdo.metadata.JoinMetadata#setDeleteAction(javax.jdo.annotations.ForeignKeyAction)
*/
public JoinMetadata setDeleteAction(ForeignKeyAction fk)
{
ForeignKeyMetaData fkmd = getInternal().getForeignKeyMetaData();
if (fk == ForeignKeyAction.CASCADE)
{
fkmd.setDeleteAction(org.datanucleus.metadata.ForeignKeyAction.CASCADE);
}
else if (fk == ForeignKeyAction.DEFAULT)
{
fkmd.setDeleteAction(org.datanucleus.metadata.ForeignKeyAction.DEFAULT);
}
else if (fk == ForeignKeyAction.NONE)
{
fkmd.setDeleteAction(org.datanucleus.metadata.ForeignKeyAction.NONE);
}
else if (fk == ForeignKeyAction.NULL)
{
fkmd.setDeleteAction(org.datanucleus.metadata.ForeignKeyAction.NULL);
}
else if (fk == ForeignKeyAction.RESTRICT)
{
fkmd.setDeleteAction(org.datanucleus.metadata.ForeignKeyAction.RESTRICT);
}
return this;
}