Examples of Table


Examples of org.eobjects.metamodel.schema.Table

    if (tables.length != 1) {
      throw new IllegalStateException("Transformer is expected to contain columns originating from 1 table, found "
          + tables.length);
    }

    final Table table = tables[0];

    final DataContextProvider dataContextProvider = _analysisJobBuilder.getDataContextProvider();
    final DataContext dc = dataContextProvider.getDataContext();
    final Query q = dc.query().from(table).select(physicalColumns.toArray(new Column[physicalColumns.size()])).toQuery();
    q.setMaxRows(DEFAULT_PREVIEW_ROWS);
View Full Code Here

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

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

        assertEquals(1, jdoContent.size());
        Table t = (Table) jdoContent.get(0);
        assertEquals("book", t.getName());
        assertEquals("isbn", t.getPrimaryKey().getKey(0));

        ElementDecl isbn = bookType.getElementDecl("isbn");
        annotations = isbn.getAnnotations();
        annotation = (Annotation) annotations.nextElement();
        appInfos = annotation.getAppInfo();
View Full Code Here

Examples of org.exolab.jms.tools.db.Table

    /**
     * Converts the message identifier columns from long to string
     */
    private void convertMessagesTable(Database schema)
        throws PersistenceException, SQLException {
        Table table = SchemaHelper.getTable(schema, MESSAGES_TABLE);

        // create a temporary table to perform conversion
        Table tmpTable = new Table();
        String tmpName = "openjms_tmp_" + MESSAGES_TABLE;
        tmpTable.setName(tmpName);
        tmpTable.setAttribute(table.getAttribute());

        _tool.drop(tmpTable);
        _tool.create(tmpTable);

        // convert the messages table, inserting converted records into
View Full Code Here

Examples of org.exoplatform.services.database.annotation.Table

   }

   public void mapResultSet(ResultSet resultSet, T bean) throws Exception
   {
      Class<? extends DBObject> clazz = bean.getClass();
      Table table = clazz.getAnnotation(Table.class);
      TableField[] tableFields = table.field();

      ResultSetMetaData rsmd = resultSet.getMetaData();
      int numberOfColumns = rsmd.getColumnCount();
      for (int i = 1; i <= numberOfColumns; i++)
      {
View Full Code Here

Examples of org.foray.fotree.fo.obj.Table

            final PageSequence pageSequence = parentPageSequence(enumeration,
                    parent, locator);
            return new StaticContent(pageSequence, propertyList);
        }
        case TABLE: {
            return new Table(parent, propertyList);
        }
        case TABLE_AND_CAPTION: {
            return new TableAndCaption(parent, propertyList);
        }
        case TABLE_BODY: {
            final Table table = parentTable(enumeration, parent, locator);
            return new TableBody(table, propertyList);
        }
        case TABLE_CAPTION: {
            return new TableCaption(parent, propertyList);
        }
        case TABLE_CELL: {
            if (parent instanceof TableRow) {
                final TableRow parentRow = (TableRow) parent;
                return new TableCell(parentRow, propertyList);
            }
            if (parent instanceof AbstractTablePart) {
                final AbstractTablePart tablePart = (AbstractTablePart) parent;
                return new TableCell(tablePart, propertyList);
            }
            throwException(locator, "fo:" + enumeration.toXslFo()
                    + " must be child of fo:table-row, fo:table-body, " +
                            "fo:table-header, or fo:table-footer.");
            return null;
        }
        case TABLE_COLUMN: {
            return new TableColumn(parent, propertyList);
        }
        case TABLE_FOOTER: {
            final Table table = parentTable(enumeration, parent, locator);
            return new TableFooter(table, propertyList);
        }
        case TABLE_HEADER: {
            final Table table = parentTable(enumeration, parent, locator);
            return new TableHeader(table, propertyList);
        }
        case TABLE_ROW: {
            return new TableRow(parent, propertyList,
                    false);
View Full Code Here

Examples of org.gephi.attribute.api.Table

        hgraph.readUnlockAll();
    }

    private Column initializeAttributeColunms(AttributeModel attributeModel) {
        Table nodeTable = attributeModel.getNodeTable();
        Column pagerankCol = nodeTable.getColumn(PAGERANK);

        if (pagerankCol == null) {
            pagerankCol = nodeTable.addColumn(PAGERANK, "PageRank", Double.class, new Double(0));
        }

        return pagerankCol;
    }
View Full Code Here

Examples of org.gnubridge.presentation.gui.Table

    this.owner = owner;
    panel = createDisplayPanel();
    panel.setLayout(null);
    panel.setPreferredSize(new Dimension(WIDTH, DHEIGHT));
    panel.setSize(new Dimension(WIDTH, DHEIGHT));
    table = new Table(DHEIGHT);

  }
View Full Code Here

Examples of org.grouplens.lenskit.util.table.Table

        evalCommand.addMetric(new CoveragePredictMetric())
                   .addMetric(new RMSEPredictMetric())
                   .addMetric(new MAEPredictMetric());


        Table result = evalCommand.call();
        assertThat(result, notNullValue());
        checkResults(result);
    }
View Full Code Here

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

      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" })
    };
    ColumnLayout layout = new ColumnLayout(columns);
    final Table table = new Table(layout);
    ContentProvider provider = new ContentProvider() {
      public void load(int begin, int end, final int sortId, boolean ascending) {
        table.onSuccess(new Rows(rows, 0, -1, false));
      }
    };
    table.setContentProvider(provider);
    table.setSize(3);
    table.setSize("100%", "100%");
    root.add(table);
  }
View Full Code Here

Examples of org.h2.table.Table

            // MVCC: keep shared locks (insert / update / delete)
            return;
        }
        // locks is modified in the loop
        for (int i = 0; i < locks.size(); i++) {
            Table t = locks.get(i);
            if (!t.isLockedExclusively()) {
                synchronized (database) {
                    t.unlock(this);
                    locks.remove(i);
                }
                i--;
            }
        }
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.