Examples of Column


Examples of org.drools.template.parser.Column

public class ColumnFactoryTest extends TestCase {

  public void testGetColumn() {
    ColumnFactory f = new ColumnFactory();
    Column column = f.getColumn("column");
    assertTrue(column instanceof StringColumn);
    assertEquals("column", column.getName());
  }
View Full Code Here

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

Examples of org.eobjects.metamodel.schema.Column

    this();
    setModel(datastore, table);
  }

  public void setModel(Datastore datastore, Table table) {
    final Column previousItem = getSelectedItem();

    if (getTable() == table) {
      return;
    }
    setTable(table);
View Full Code Here

Examples of org.exolab.castor.xml.schema.annotations.jdo.Column

        appInfos = annotation.getAppInfo();
        appInfo = (AppInfo) appInfos.nextElement();
        jdoContent = appInfo.getJdoContent();

        assertEquals(1, jdoContent.size());
        Column c = (Column) jdoContent.get(0);
        assertEquals("isbn", c.getName());
        assertEquals("jdo:string", c.getType());

        ElementDecl title = bookType.getElementDecl("title");
        annotations = title.getAnnotations();
        annotation = (Annotation) annotations.nextElement();
        appInfos = annotation.getAppInfo();
        appInfo = (AppInfo) appInfos.nextElement();
        jdoContent = appInfo.getJdoContent();

        assertEquals(1, jdoContent.size());
        c = (Column) jdoContent.get(0);
        assertEquals("title", c.getName());
        assertEquals("jdo:string", c.getType());
    }
View Full Code Here

Examples of org.fto.jthink.jdbc.Column

    condn.add(new ConditionItem("F5", "=", "5"));
    condn.add(new ConditionItem("F6", "in", new Object[]{"1", "2", "3", "4"}));
   
   
    Column[] columns = new Column[]{
        new Column("DEPT_ID"),
        new Column("DEPT_NAME", new SQL(SQL.SELECT, "SELECT DEPT_NAME FROM ALL_DEPTS WHERE D.DEPT_ID=C.DEPT_ID", null)),
        new Column("F1"),
        new Column("F2"),
        new Column("F3"),
        new Column("F4"),
        new Column("F5"),
        new Column("F6"),
    };
   
    /* constructSQLForSelect测试开始 */
    {
      double totalUseTime = 0;
View Full Code Here

Examples of org.gephi.attribute.api.Column

            target = edgeCheckBoxs;
        }
        contentPanel.removeAll();
        contentPanel.setLayout(new MigLayout("", "[pref!]"));
        for (int i = 0; i < availableColumns.size(); i++) {
            Column column = availableColumns.get(i);
            AttributesCheckBox c = new AttributesCheckBox(column, selectedColumns.contains(column));
            target[i] = c;
            contentPanel.add(c.getCheckBox(), "wrap");
        }
        contentPanel.revalidate();
View Full Code Here

Examples of org.gwtlib.client.table.ui.Column

    if(root != null) init(root);
  }

  private void init(RootPanel root) {
    Column[] columns = {
      new Column(0, false, "First column", "50%"),
      new Column(1, false, "Second column", "50%")
    };
    final Row[] rows = {
      new Row(0, new Object[] { "First row, first column" , "First row, second column" }),
      new Row(1, new Object[] { "Second row, first column", "Second row, second column" }),
      new Row(2, new Object[] { "Third row, first column" , "Third row, second column" })
View Full Code Here

Examples of org.gwtoolbox.widget.client.grid.Column

    private LiveDataGrid grid;

    public LiveDataGridSample() {

        Columns columns = new Columns(
                new Column("firstName", "First Name", DataTypes.TEXT, 100),
                new Column("lastName", "Last Name", DataTypes.TEXT, 100),
                new Column("age", "Age", DataTypes.INT, 100),
                new Column("gender", "Gender", DataTypes.GENDER, 100, SORTABLE, HIDABLE).setAlignment(ALIGN_CENTER),
                new Column("birthTime", "Birth Time", DataTypes.TIME, 100, SORTABLE, HIDABLE),
                new Column("dutch", "Dutch", DataTypes.BOOLEAN, 50, SORTABLE, HIDABLE).setAlignment(ALIGN_CENTER)
        );
        columns.setFeatures("lastName", SORTABLE, HIDABLE);
        columns.setFeatures("age", SORTABLE, HIDABLE);
        columns.setAlignment("age", ALIGN_CENTER);
View Full Code Here

Examples of org.gwtoolbox.widget.client.table.datagrid.column.Column

    private final OldDataGrid grid;

    @SuppressWarnings({"unchecked"})
    public DataGridSamplePane() {

        Column indexColumn = new Column("#", new RowNumberValueExtractor(), DataTypes.INT, "30px", null);
        FieldColumn idColumn = new FieldColumn("ID", "id", DataTypes.INT, "50px", HasHorizontalAlignment.ALIGN_CENTER);
        FieldColumn genderColumn = new FieldColumn("Gender", "gender", DataTypes.GENDER, "100px", HasHorizontalAlignment.ALIGN_CENTER);
        genderColumn.setSortable(true);
        genderColumn.setGroupable(true);
        FieldColumn nameColumn = new FieldColumn("Name", "name", DataTypes.TEXT, "150px");
View Full Code Here

Examples of org.h2.table.Column

        roles.put(Constants.PUBLIC_ROLE_NAME, publicRole);
        systemUser.setAdmin(true);
        systemSession = new Session(this, systemUser, ++nextSessionId);
        CreateTableData data = new CreateTableData();
        ArrayList<Column> cols = data.columns;
        Column columnId = new Column("ID", Value.INT);
        columnId.setNullable(false);
        cols.add(columnId);
        cols.add(new Column("HEAD", Value.INT));
        cols.add(new Column("TYPE", Value.INT));
        cols.add(new Column("SQL", Value.STRING));
        boolean create = true;
        if (pageStore != null) {
            create = pageStore.isNew();
        }
        data.tableName = "SYS";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.