Package org.andromda.core.mapping

Examples of org.andromda.core.mapping.Mappings


       
        if ( url != null )
        {
            String mappingFile = targetDir + "/" + sqlMappingUri.substring( sqlMappingUri.lastIndexOf( "/" ) + 1 );
            Mappings maps = getMappings( sqlMappingUri.substring( 0, sqlMappingUri.indexOf( "!" ) )
                    , sqlMappingUri.substring( sqlMappingUri.indexOf( "!" ) + 1 )
                    , mappingFile );
           
            if ( type != null && maps != null )
            {
                String name = type.getName();
                String pack = type.getPackage().getName();
               
                String datatype = pack+"::"+name;

                Mapping mapping = maps.getMapping( datatype );
               
                sqlType = mapping.getTo();
            }
        }
       
View Full Code Here


       
        if ( url != null )
        {
            String mappingFile = targetDir + "/" + jdbcMappingUri.substring( jdbcMappingUri.lastIndexOf( "/" ) + 1 );
            Mappings maps = getMappings( jdbcMappingUri.substring( 0, jdbcMappingUri.indexOf( "!" ) )
                    , jdbcMappingUri.substring( jdbcMappingUri.indexOf( "!" ) + 1 )
                    , mappingFile );
           
            if ( tempType != null && MAPPINGS != null )
            {
                String name = tempType.getName();
                String pack = tempType.getPackage().getName();
               
                String datatype = pack+"::"+name;

                Mapping mapping = maps.getMapping( datatype );
               
                jdbcType = mapping.getTo();
            }
        }
        return jdbcType;
View Full Code Here

    private static Mappings getMappings(String jarFileURL, String jarEntryName, String mappingsFile)
    {

        String mapsFile = mappingsFile.replace( '\\', '/' );
       
        Mappings maps = null;
       
        if ( MAPPINGS.containsKey( mapsFile ) )
        {
            maps = ( Mappings ) MAPPINGS.get( mapsFile );
        }
View Full Code Here

       
        if ( url != null )
        {
            String mappingFile = targetDir + "/" + sqlMappingUri.substring( sqlMappingUri.lastIndexOf( "/" ) + 1 );
            Mappings maps = getMappings( sqlMappingUri.substring( 0, sqlMappingUri.indexOf( "!" ) )
                    , sqlMappingUri.substring( sqlMappingUri.indexOf( "!" ) + 1 )
                    , mappingFile );
           
            if ( maps != null )
            {
                String datatype = "datatype::String";

                Mapping mapping = maps.getMapping( datatype );
               
                sqlType = mapping.getTo();
            }
        }
       
View Full Code Here

       
        if ( url != null )
        {
            String mappingFile = targetDir + "/" + sqlMappingUri.substring( sqlMappingUri.lastIndexOf( "/" ) + 1 );
            Mappings maps = getMappings( sqlMappingUri.substring( 0, sqlMappingUri.indexOf( "!" ) )
                    , sqlMappingUri.substring( sqlMappingUri.indexOf( "!" ) + 1 )
                    , mappingFile );
           
            if ( type != null && maps != null )
            {
                String name = type.getName();
                String pack = type.getPackage().getName();
               
                String datatype = pack+"::"+name;

                Mapping mapping = maps.getMapping( datatype );
               
                sqlType = mapping.getTo();
            }
        }
       
View Full Code Here

       
        if ( url != null )
        {
            String mappingFile = targetDir + "/" + jdbcMappingUri.substring( jdbcMappingUri.lastIndexOf( "/" ) + 1 );
            Mappings maps = getMappings( jdbcMappingUri.substring( 0, jdbcMappingUri.indexOf( "!" ) )
                    , jdbcMappingUri.substring( jdbcMappingUri.indexOf( "!" ) + 1 )
                    , mappingFile );
           
            if ( tempType != null && MAPPINGS != null )
            {
                String name = tempType.getName();
                String pack = tempType.getPackage().getName();
               
                String datatype = pack+"::"+name;

                Mapping mapping = maps.getMapping( datatype );
               
                jdbcType = mapping.getTo();
            }
        }
        return jdbcType;
View Full Code Here

    private static Mappings getMappings(String jarFileURL, String jarEntryName, String mappingsFile)
    {

        String mapsFile = mappingsFile.replace( '\\', '/' );
       
        Mappings maps = null;
       
        if ( MAPPINGS.containsKey( mapsFile ) )
        {
            maps = ( Mappings ) MAPPINGS.get( mapsFile );
        }
View Full Code Here

       
        if ( url != null )
        {
            String mappingFile = targetDir + "/" + sqlMappingUri.substring( sqlMappingUri.lastIndexOf( "/" ) + 1 );
            Mappings maps = getMappings( sqlMappingUri.substring( 0, sqlMappingUri.indexOf( "!" ) )
                    , sqlMappingUri.substring( sqlMappingUri.indexOf( "!" ) + 1 )
                    , mappingFile );
           
            if ( maps != null )
            {
                String datatype = "datatype::String";

                Mapping mapping = maps.getMapping( datatype );
               
                sqlType = mapping.getTo();
            }
        }
       
View Full Code Here

       
        if ( url != null )
        {
            String mappingFile = targetDir + "/" + sqlMappingUri.substring( sqlMappingUri.lastIndexOf( "/" ) + 1 );
            Mappings maps = getMappings( sqlMappingUri.substring( 0, sqlMappingUri.indexOf( "!" ) )
                    , sqlMappingUri.substring( sqlMappingUri.indexOf( "!" ) + 1 )
                    , mappingFile );
           
            if ( type != null && maps != null )
            {
                String name = type.getName();
                String pack = type.getPackage().getName();
               
                String datatype = pack+"::"+name;

                Mapping mapping = maps.getMapping( datatype );
               
                sqlType = mapping.getTo();
            }
        }
       
View Full Code Here

       
        if ( url != null )
        {
            String mappingFile = targetDir + "/" + jdbcMappingUri.substring( jdbcMappingUri.lastIndexOf( "/" ) + 1 );
            Mappings maps = getMappings( jdbcMappingUri.substring( 0, jdbcMappingUri.indexOf( "!" ) )
                    , jdbcMappingUri.substring( jdbcMappingUri.indexOf( "!" ) + 1 )
                    , mappingFile );
           
            if ( tempType != null && MAPPINGS != null )
            {
                String name = tempType.getName();
                String pack = tempType.getPackage().getName();
               
                String datatype = pack+"::"+name;

                Mapping mapping = maps.getMapping( datatype );
               
                jdbcType = mapping.getTo();
            }
        }
        return jdbcType;
View Full Code Here

TOP

Related Classes of org.andromda.core.mapping.Mappings

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.