Examples of Table


Examples of edu.mayo.bmi.guoqian.claml.Table

    /**
     * Create an instance of {@link Table }
     *
     */
    public Table createTable() {
        return new Table();
    }
View Full Code Here

Examples of edu.villanova.studs.poker.transport.Table

  }
 
  @Override
  public void buildCommunity() throws TransportException  {
    Card card = null;
    Table table = new Table();
    ArrayList<Card> communityCards = new ArrayList<Card>();

    for (int i = 1; i <= 5; i++) {
      card = convertValueToCard(req.getParameter("cc" + i));
      if (card.getRank() != TransportUtils.UNKNOWN
          && card.getSuit() != TransportUtils.UNKNOWN) {       
        communityCards.add(card);
               
        if (communityCards.size() != i) {
                                    throw new TransportException( PokerMessages.COMM_ORDER );
        }       
      }
    }

    table.setCommunity(communityCards);
               
    ((TableDataCommunity) pokerTable).setGameTable(table);
  }
View Full Code Here

Examples of fit.decorator.util.Table

  protected void run(Fixture fixture, Parse table) {
    fixture.doTable(table);
  }

  private void execute(Fixture fixture, Parse table) {
    Table t = new Table(table);
    Parse firstRow = t.stripFirstRow();
    run(fixture, table);
    t.insertAsFirstRow(firstRow);
    updateColumnsBasedOnResults(table);
  }
View Full Code Here

Examples of fitnesse.testsystems.slim.Table

  }

  private ScriptTable makeScriptTable(String tableText, boolean localized) throws Exception {
    WikiPageUtil.setPageContents(root, tableText);
    TableScanner ts = new HtmlTableScanner(root.getHtml());
    Table t = ts.getTable(0);
    SlimTestContextImpl testContext = new SlimTestContextImpl();
    if (localized) return new LocalizedScriptTable(t, "id", testContext);
    else return new ScriptTable(t, "id", testContext);
  }
View Full Code Here

Examples of henplus.sqlmodel.Table

            final DatabaseMetaData meta = session.getConnection().getMetaData();

            while (tableNamesIter.hasNext() && !_interrupted) {
                final String tableName = tableNamesIter.next();
                rset = meta.getColumns(catalog, null, tableName, null);
                final Table table = buildTable(catalog, meta, tableName, rset);
                result.addTable(table);
            }
        } catch (final Exception e) {
            if (VERBOSE) {
                e.printStackTrace();
View Full Code Here

Examples of io.crate.sql.tree.Table

        selectAnalysis = (SelectAnalysis) analyzer.newAnalysis(
            new Analyzer.ParameterContext(new Object[0], new Object[0][]));
    }

    public Symbol fromSQL(String expression) {
        analyzer.process(new Table(new QualifiedName(ImmutableList.of("information_schema", "tables"))), selectAnalysis);
        return analyzer.process(SqlParser.createExpression(expression), selectAnalysis);
    }
View Full Code Here

Examples of it.cnr.isti.hpc.wikipedia.article.Table

      if (t.getTitleElement() != null) {
        title = t.getTitleElement().getText();
        if (title == null)
          title = "";
      }
      Table table = new Table(title);
      List<String> currentRow = new ArrayList<String>();
      List<Content> contentList = t.getContentList();
      for (@SuppressWarnings("unused")
      Content c : contentList) {

        int row, col;
        String elem = "";

        try {

          col = t.getTableElement(i).getCol();
          row = t.getTableElement(i).getRow();
          elem = t.getTableElement(i).getText();

        } catch (IndexOutOfBoundsException e) {
          // logger.(
          // "Error creating table {}, Index out of bound - content = {}",
          // table.getName(), c.getText());
          break;

        }
        if (row > 0 && col == 0) {
          if ((currentRow.size() == 1)
              && (currentRow.get(0).equals(table.getName()))) {
            currentRow = new ArrayList<String>();
          } else {
            if (!currentRow.isEmpty())
              table.addRow(currentRow);
            currentRow = new ArrayList<String>();
          }

        }
        currentRow.add(elem);
        i++;
      }
      table.addRow(currentRow);
      tables.add(table);
    }

    article.setTables(tables);
View Full Code Here

Examples of javax.persistence.Table

    boolean isEntity = ! (entityType instanceof MappedSuperclassType);
   
    AmberTable table = null;

    getInternalTableConfig(type, _annotationCfg);
    Table tableAnn = (Table) _annotationCfg.getAnnotation();
    TableConfig tableConfig = _annotationCfg.getTableConfig();

    String tableName = null;

    if (tableAnn != null)
      tableName = tableAnn.name();
    else if (tableConfig != null)
      tableName = tableConfig.getName();

    // jpa/0gg0, jpa/0gg2
    if (isEntity) { // && ! type.isAbstract()) {

      boolean hasTableConfig = true;

      if (tableName == null || tableName.equals("")) {
        hasTableConfig = false;
        tableName = toSqlName(entityType.getName());
      }

      /*
      InheritanceType strategy = null;
     
      if (parentType != null)
        strategy = parentType.getInheritanceStrategy();

      if (inheritanceAnn != null)
        strategy = (InheritanceType) inheritanceAnn.get("strategy");
      else if (inheritanceConfig != null)
        strategy = inheritanceConfig.getStrategy();
       */

      // jpa/0gg2
      if (! entityType.isEntity())
        return;
      /*
      if (type.isAbstract()
          && strategy != InheritanceType.JOINED
          && ! hasTableConfig) {
        // jpa/0gg0
      }
       */
      else if (parentType == null || parentType.getTable() == null) {
        entityType.setTable(_persistenceUnit.createTable(tableName));
      }
      else if (parentType.isJoinedSubClass()) {
        entityType.setTable(_persistenceUnit.createTable(tableName));

        EntityType rootType = parentType.getRootType();

        Class rootClass = rootType.getBeanClass();
        getInternalTableConfig(rootClass, _annotationCfg);
        Table rootTableAnn = (Table) _annotationCfg.getAnnotation();
        TableConfig rootTableConfig = _annotationCfg.getTableConfig();

        String rootTableName = null;

        if (rootTableAnn != null)
          rootTableName = rootTableAnn.name();
        else if (rootTableConfig != null)
          rootTableName = rootTableConfig.getName();

        if (rootTableName == null || rootTableName.equals("")) {
          String rootEntityName = rootType.getName();
View Full Code Here

Examples of jimm.datavision.source.Table

    // to the sorted set of tables.
    report.withFieldsDo(new FieldWalker() {
  public void step(Field f) {
      if (f instanceof ColumnField) {
    Column col = ((ColumnField)f).getColumn();
    Table t = col.getTable();
    if (t == null)
        noTableCols.add(col);
    else
        tables.add(t);
      }
View Full Code Here

Examples of ke.go.moh.oec.oecsm.data.Table

        statement.close();
        return column;
    }

    private Table findTable(int id) throws SQLException, InaccessibleConfigurationFileException, DriverNotFoundException {
        Table table = null;
        Statement statement = connection.createStatement();
        ResultSet rs = statement.executeQuery("SELECT `table`.`ID`, `table`.`NAME`, `table`.`PRIMARY_KEYS`, `table`.`DATABASE_ID` FROM `table` WHERE `table`.`ID` = " + id + "");
        if (rs.next()) {
            table = new Table(rs.getInt("ID"), rs.getString("NAME"), rs.getString("PRIMARY_KEYS"));
            table.setDatabase(findDatabase(rs.getInt("DATABASE_ID")));
        }
        rs.close();
        statement.close();
        return table;
    }
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.