Package org.eclipse.sapphire.samples.sqlschema

Examples of org.eclipse.sapphire.samples.sqlschema.Column


    }

    @Override
    protected String compute()
    {
        final Column column = context( Column.class );
        final Table table = column.nearest( Table.class );
       
        for( final ForeignKey fk : table.getForeignKeys() )
        {
            for( final ForeignKey.ColumnAssociation fkcol : fk.getColumnAssociations() )
            {
                final String name = fkcol.getLocalColumn().content();
               
                if( name != null && name.equals( column.getName().content() ) )
                {
                    return Boolean.TRUE.toString();
                }       
            }
        }
View Full Code Here


    }

    @Override
    protected String compute()
    {
        final Column column = context( Column.class );
        final Table table = column.nearest( Table.class );
       
        final PrimaryKey pk = table.getPrimaryKey().content();
       
        if( pk != null)
        {
            for( final PrimaryKey.Column pkcol : pk.getColumns() )
            {
                final String name = pkcol.getName().content();
               
                if( name != null && name.equals( column.getName().content() ) )
                {
                    return Boolean.TRUE.toString();
                }       
            }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.samples.sqlschema.Column

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.