Package org.datanucleus.metadata

Examples of org.datanucleus.metadata.ForeignKeyMetaData


    /* (non-Javadoc)
     * @see javax.jdo.metadata.ValueMetadata#getForeignKeyMetadata()
     */
    public ForeignKeyMetadata getForeignKeyMetadata()
    {
        ForeignKeyMetaData internalFkmd = getInternal().getForeignKeyMetaData();
        if (internalFkmd == null)
        {
            return null;
        }
        ForeignKeyMetadataImpl fkmd = new ForeignKeyMetadataImpl(internalFkmd);
View Full Code Here


    /* (non-Javadoc)
     * @see javax.jdo.metadata.ValueMetadata#newForeignKeyMetadata()
     */
    public ForeignKeyMetadata newForeignKeyMetadata()
    {
        ForeignKeyMetaData internalFkmd = getInternal().newForeignKeyMetaData();
        ForeignKeyMetadataImpl fkmd = new ForeignKeyMetadataImpl(internalFkmd);
        fkmd.parent = this;
        return fkmd;
    }
View Full Code Here

        return getInternal().isDefaultFetchGroup();
    }

    public ForeignKeyAction getDeleteAction()
    {
        ForeignKeyMetaData fkmd = getInternal().getForeignKeyMetaData();
        if (fkmd != null)
        {
            org.datanucleus.metadata.ForeignKeyAction fk = fkmd.getDeleteAction();
            if (fk == org.datanucleus.metadata.ForeignKeyAction.CASCADE)
            {
                return ForeignKeyAction.CASCADE;
            }
            else if (fk == org.datanucleus.metadata.ForeignKeyAction.DEFAULT)
View Full Code Here

        return getInternal().getTypeName();
    }

    public ForeignKeyMetadata getForeignKeyMetadata()
    {
        ForeignKeyMetaData internalFkmd = getInternal().getForeignKeyMetaData();
        if (internalFkmd == null)
        {
            return null;
        }
        ForeignKeyMetadataImpl fkmd = new ForeignKeyMetadataImpl(internalFkmd);
View Full Code Here

        return embmd;
    }

    public ForeignKeyMetadata newForeignKeyMetadata()
    {
        ForeignKeyMetaData internalFkmd = getInternal().newForeignKeyMetaData();
        ForeignKeyMetadataImpl fkmd = new ForeignKeyMetadataImpl(internalFkmd);
        fkmd.parent = this;
        return fkmd;
    }
View Full Code Here

        return this;
    }

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

    /* (non-Javadoc)
     * @see javax.jdo.metadata.JoinMetadata#getDeleteAction()
     */
    public ForeignKeyAction getDeleteAction()
    {
        ForeignKeyMetaData fkmd = getInternal().getForeignKeyMetaData();
        if (fkmd != null)
        {
            org.datanucleus.metadata.ForeignKeyAction fk = fkmd.getDeleteAction();
            if (fk == org.datanucleus.metadata.ForeignKeyAction.CASCADE)
            {
                return ForeignKeyAction.CASCADE;
            }
            else if (fk == org.datanucleus.metadata.ForeignKeyAction.DEFAULT)
View Full Code Here

    /* (non-Javadoc)
     * @see javax.jdo.metadata.JoinMetadata#getForeignKeyMetadata()
     */
    public ForeignKeyMetadata getForeignKeyMetadata()
    {
        ForeignKeyMetaData internalFkmd = getInternal().getForeignKeyMetaData();
        if (internalFkmd == null)
        {
            return null;
        }
        ForeignKeyMetadataImpl fkmd = new ForeignKeyMetadataImpl(internalFkmd);
View Full Code Here

    /* (non-Javadoc)
     * @see javax.jdo.metadata.JoinMetadata#newForeignKeyMetadata()
     */
    public ForeignKeyMetadata newForeignKeyMetadata()
    {
        ForeignKeyMetaData internalFkmd = getInternal().newForeignKeyMetaData();
        ForeignKeyMetadataImpl fkmd = new ForeignKeyMetadataImpl(internalFkmd);
        fkmd.parent = this;
        return fkmd;
    }
View Full Code Here

    /* (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;
    }
View Full Code Here

TOP

Related Classes of org.datanucleus.metadata.ForeignKeyMetaData

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.