Package org.andromda.metafacades.uml

Examples of org.andromda.metafacades.uml.Entity


            // primary key
            // on the other side (since that should correspond to the foreign
            // key).
            if (this.getType() instanceof Entity)
            {
                final Entity type = (Entity)this.getType();
                final Collection identifiers = type.getIdentifiers();
                if (identifiers != null && !identifiers.isEmpty())
                {
                    AttributeFacade attribute = (AttributeFacade)identifiers.iterator().next();
                    if (attribute instanceof EntityAttribute)
                    {
View Full Code Here


     * @return all business operations
     * @see org.andromda.cartridges.hibernate.metafacades.HibernateEntity#getAllBusinessOperations()
     */
    protected Collection handleGetAllBusinessOperations()
    {
        Entity superElement = (Entity)this.getGeneralization();
        Collection result = this.getBusinessOperations();

        while (superElement != null)
        {
            result.addAll(superElement.getBusinessOperations());
            superElement = (Entity)superElement.getGeneralization();
        }

        return result;
    }
View Full Code Here

            EntityAttribute identifier = null;
            // we retrieve the column length from the first identifier of the primary key
            // on the other side (since that should correspond to the foreign key).
            if (this.getType() instanceof Entity)
            {
                final Entity type = (Entity)this.getType();
                final Collection identifiers = type.getIdentifiers();
                if (identifiers != null && !identifiers.isEmpty())
                {
                    AttributeFacade attribute = (AttributeFacade)identifiers.iterator().next();
                    if (attribute instanceof EntityAttribute)
                    {
View Full Code Here

        org.eclipse.uml2.impl.ClassImpl type2 = null;
       
        if ( object instanceof Entity )
        {
            Entity type = ( Entity ) object;
           
            type2 = (org.eclipse.uml2.impl.ClassImpl)(( MetafacadeBase ) object).getMetaObject() ;
           
//            Package package1 = type2.getPackage();
           
            if ( !type2.eIsProxy() )
            {
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof Service )
        {
          Service type = ( Service ) object;
           
            type2 = (org.eclipse.uml2.impl.ClassImpl)(( MetafacadeBase ) object).getMetaObject() ;
           
//            Package package1 = type2.getPackage();
           
            if ( !type2.eIsProxy() )
            {
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
           
            if ( type.getMetaObject() instanceof PrimitiveType )
            {
                if ( !"datatype".equals( type.getPackageName() ))
                {
                    sb.append( type.getPackageName() );             
                }
            }
            else
            {
                type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
               
                if ( !type2.eIsProxy() )
                {
                    sb.append( type.getPackageName() );             
                }
            }
           
        }
View Full Code Here

        org.eclipse.uml2.impl.ClassImpl type2 = null;
       
        if ( object instanceof Entity )
        {
            Entity type = ( Entity ) object;
           
            type2 = (org.eclipse.uml2.impl.ClassImpl)(( MetafacadeBase ) object).getMetaObject() ;
           
            if ( !type2.eIsProxy() )
            {
                sb.append( type.getName() );
            }
        }
        else if ( object instanceof Service )
        {
          Service type = ( Service ) object;
           
            type2 = (org.eclipse.uml2.impl.ClassImpl)(( MetafacadeBase ) object).getMetaObject() ;
           
            if ( !type2.eIsProxy() )
            {
                sb.append( type.getName() );
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
           
            if ( type.getMetaObject() instanceof PrimitiveType )
            {
                sb.append( type.getName() );             
            }
            else
            {
                type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
               
                if ( !type2.eIsProxy() )
                {
                    sb.append( type.getName() );             
                }
            }
        }

        if ( type2 != null && type2.eIsProxy() )
View Full Code Here

        org.eclipse.uml2.impl.ClassImpl type2 = null;
       
        if ( object instanceof Entity )
        {
            Entity type = ( Entity ) object;
           
            type2 = (org.eclipse.uml2.impl.ClassImpl)(( MetafacadeBase ) object).getMetaObject() ;
           
//            Package package1 = type2.getPackage();
           
            if ( !type2.eIsProxy() )
            {
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof Service )
        {
          Service type = ( Service ) object;
           
            type2 = (org.eclipse.uml2.impl.ClassImpl)(( MetafacadeBase ) object).getMetaObject() ;
           
//            Package package1 = type2.getPackage();
           
            if ( !type2.eIsProxy() )
            {
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
           
            if ( type.getMetaObject() instanceof PrimitiveType )
            {
                if ( !"datatype".equals( type.getPackageName() ))
                {
                    sb.append( type.getPackageName() );             
                }
            }
            else
            {
                type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
               
                if ( !type2.eIsProxy() )
                {
                    sb.append( type.getPackageName() );             
                }
            }
           
        }
View Full Code Here

        org.eclipse.uml2.impl.ClassImpl type2 = null;
       
        if ( object instanceof Entity )
        {
            Entity type = ( Entity ) object;
           
            type2 = (org.eclipse.uml2.impl.ClassImpl)(( MetafacadeBase ) object).getMetaObject() ;
           
            if ( !type2.eIsProxy() )
            {
                sb.append( type.getName() );
            }
        }
        else if ( object instanceof Service )
        {
          Service type = ( Service ) object;
           
            type2 = (org.eclipse.uml2.impl.ClassImpl)(( MetafacadeBase ) object).getMetaObject() ;
           
            if ( !type2.eIsProxy() )
            {
                sb.append( type.getName() );
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
           
            if ( type.getMetaObject() instanceof PrimitiveType )
            {
                sb.append( type.getName() );             
            }
            else
            {
                type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
               
                if ( !type2.eIsProxy() )
                {
                    sb.append( type.getName() );             
                }
            }
        }

        if ( type2 != null && type2.eIsProxy() )
View Full Code Here

        }
        else
        {
            if ( object instanceof Entity )
            {
                Entity type = ( Entity ) object;
                list = ModelConfigurationUtil.getInstance().getOwnedGeneralizations( clazz, projectModelArtifactId, modelConfigDir );
               
            }
            else if ( object instanceof Service )
            {
View Full Code Here

        }
        else
        {
            if ( object instanceof Entity )
            {
                Entity type = ( Entity ) object;
               
                has = type.hasStereotype( stereotype );
               
            }
            else if ( object instanceof Service )
            {
                Service type = ( Service ) object;
               
                has = type.hasStereotype( stereotype );
            }
            else if ( object instanceof ClassifierFacade )
            {
                ClassifierFacade type = (ClassifierFacade) object;
               
                has = type.hasStereotype( stereotype );
            }
            else if ( object instanceof AttributeFacade )
            {
                AttributeFacade attribute = (AttributeFacade) object;
                ClassifierFacade type = (ClassifierFacade) attribute.getType();
               
                has = type.hasStereotype( stereotype );
            }
        }
       
        return has;
    }
View Full Code Here

        org.eclipse.uml2.impl.ClassImpl type2 = null;
       
        if ( object instanceof Entity )
        {
            Entity type = ( Entity ) object;
           
            type2 = (org.eclipse.uml2.impl.ClassImpl)(( MetafacadeBase ) object).getMetaObject() ;
           
            if ( !type2.eIsProxy() )
            {
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof Service )
        {
          Service type = ( Service ) object;
           
            type2 = (org.eclipse.uml2.impl.ClassImpl)(( MetafacadeBase ) object).getMetaObject() ;
           
            if ( !type2.eIsProxy() )
            {
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof ValueObjectFacade )
        {
            ValueObjectFacade type = ( ValueObjectFacade ) object;
           
            type2 = (org.eclipse.uml2.impl.ClassImpl)(( MetafacadeBase ) object).getMetaObject() ;
           
            if ( !type2.eIsProxy() )
            {
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof ClassifierFacade )
        {
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
           
            if ( type.getMetaObject() instanceof PrimitiveType )
            {
                if ( !"datatype".equals( type.getPackageName() ))
                {
                    sb.append( type.getPackageName() );             
                }
            }
            else
            {
                type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
               
                if ( !type2.eIsProxy() )
                {
                    sb.append( type.getPackageName() );             
                }
            }       
        }
        else if ( object instanceof AttributeFacade )
        {
            AttributeFacade attribute = (AttributeFacade) object;
            ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) attribute.getType();
           
            if ( type.getMetaObject() instanceof PrimitiveType )
            {
                if ( !"datatype".equals( type.getPackageName() ))
                {
                    sb.append( type.getPackageName() );             
                }
            }
            else
            {
                type2 = (org.eclipse.uml2.impl.ClassImpl)type.getMetaObject();
               
                if ( !type2.eIsProxy() )
                {
                    sb.append( type.getPackageName() );             
                }
            }
        }
        else if ( object instanceof EJBAssociationEndFacade )
        {
            if ( ( ( EJBAssociationEndFacade ) object ).isNavigable() )
            {
                ClassifierFacade type = ( ( EJBAssociationEndFacadeLogicImpl ) object ).getType();
                sb.append( type.getPackageName() );
            }
        }
        else if ( object instanceof AssociationEndFacade )
        {
            AssociationEndFacadeLogicImpl assosiation = ( AssociationEndFacadeLogicImpl ) object;

            if ( assosiation.isNavigable() )
            {
                AssociationEndImpl metaObject = ( AssociationEndImpl ) assosiation.getMetaObject();
                type2 = ( org.eclipse.uml2.impl.ClassImpl ) metaObject.getType();

                if ( !type2.eIsProxy() )
                {
                    ClassifierFacade type = assosiation.getType();
                    sb.append( type.getPackageName() );             
                }
            }
        }
       
        if ( type2 != null && type2.eIsProxy() )
View Full Code Here

TOP

Related Classes of org.andromda.metafacades.uml.Entity

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.