Package org.jpox.metadata

Examples of org.jpox.metadata.ForeignKeyAction


        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);
            }
        }
View Full Code Here

TOP

Related Classes of org.jpox.metadata.ForeignKeyAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.