Examples of TableInfo


Examples of beans.TableInfo

     
      DatabaseMetaData dmd = con.getMetaData();
      ResultSet tables = dmd.getTables(con.getCatalog(),null,"%",null);//r�cup�ration des informations
      ArrayList<TableInfo> listTables = new ArrayList<TableInfo>();
      while(tables.next()){//affichage des informations
        TableInfo table = new TableInfo();
       
        for(int i=0; i<tables.getMetaData().getColumnCount();i++){
          String nomColonne = tables.getMetaData().getColumnName(i+1);
          if(nomColonne.equals("TABLE_NAME")){
            Object valeurColonne = tables.getObject(i+1);
            table.setNom(valeurColonne.toString());
            //System.out.println(nomColonne+" = "+valeurColonne);
            //r�cup�ration des informations
           
            String nomDeLaTable = valeurColonne.toString();
            ResultSet resultat = dmd.getColumns(con.getCatalog(),null,nomDeLaTable, "%");
            ArrayList<String> colonnes = new ArrayList<String>();
           
            //affichage des informations
            ResultSetMetaData rsmd = resultat.getMetaData();
            while(resultat.next()){
              for(int j=0; j<rsmd.getColumnCount(); j++){
                String col = rsmd.getColumnName(j+1);
              //  System.out.println("col : " + col + " val : " + resultat.getObject(j+1));
                if(col.equals("COLUMN_NAME")){
                  Object val = resultat.getObject(j+1);
                  colonnes.add(val.toString());
                  //System.out.println(col+" = "+val);
               
              }
            }
            table.setNomColonnes(colonnes);
          }
        }
        listTables.add(table);
        
      }
View Full Code Here

Examples of bluffinmuffin.poker.entities.TableInfo

            }
           
            @Override
            public void gameBettingRoundStarted()
            {
                final TableInfo table = m_game.getTable();
                final List<PlayerInfo> lst = table.getPlayingPlayers();
                for (int i = 0; i < table.getPlayingPlayers().size(); ++i)
                {
                    huds[lst.get(i).getNoSeat()].setAlive();
                }
                int i = 0;
                for (; i < 5 && m_game.getTable().getCards().get(i).getId() != Card.NO_CARD_ID; ++i)
                {
                    board[i].setCard(m_game.getTable().getCards().get(i));
                }
                for (; i < 5; ++i)
                {
                    board[i].setCard(Card.HIDDEN_CARD);
                }
            }
           
            @Override
            public void gameBlindsNeeded()
            {
                changePotAmount(0);
                final TableInfo table = m_game.getTable();
                huds[table.getNoSeatDealer()].setDealer();
                huds[table.getNoSeatSmallBlind()].setSmallBlind();
                huds[table.getNoSeatBigBlind()].setBigBlind();
                for (int i = 0; i < 5; ++i)
                {
                    board[i].setCard(Card.HIDDEN_CARD);
                }
            }
           
            @Override
            public void gameEnded()
            {
                final TableInfo table = m_game.getTable();
                for (int i = 0; i < table.getPlayers().size(); ++i)
                {
                    if (table.getPlayer(i) != null)
                    {
                        final JPanelPlayerHud php = huds[i];
                        final JLabel bet = bets[i];
                        bet.setText("");
                        php.setPlayerMoney(table.getPlayer(i).getMoneySafeAmnt());
                        php.setNotDealer();
                        php.setNoBlind();
                        php.isDoingNothing();
                        if (table.getPlayer(i).getMoneySafeAmnt() == 0)
                        {
                            php.setDead();
                            php.setPlayerCards(Card.NO_CARD, Card.NO_CARD);
                        }
                        php.setPlayerAction(PlayerActionType.NOTHING);
                    }
                }
                super.gameEnded();
            }
           
            @Override
            public void gameGenerallyUpdated()
            {
                final TableInfo table = m_game.getTable();
                for (final PlayerInfo p : table.getPlayers())
                {
                    final JPanelPlayerHud php = huds[p.getNoSeat()];
                    installPlayer(php, p);
                }
            }
           
            @Override
            public void playerActionNeeded(PlayerInfo p, PlayerInfo last)
            {
                final JPanelPlayerHud php = huds[p.getNoSeat()];
                php.setPlayerAction(PlayerActionType.NOTHING, 0);
                php.isPlaying();
            }
           
            @Override
            public void playerActionTaken(PlayerInfo p, PlayerActionType reason, int playedAmount)
            {
                final TableInfo table = m_game.getTable();
                final JPanelPlayerHud php = huds[p.getNoSeat()];
                php.setPlayerMoney(p.getMoneySafeAmnt());
                php.isDoingNothing();
                php.setPlayerAction(reason, playedAmount);
                changePotAmount(table.getTotalPotAmnt());
               
                if (reason == PlayerActionType.FOLDED)
                {
                    php.setPlayerCards(Card.NO_CARD, Card.NO_CARD);
                }
View Full Code Here

Examples of cn.guoyukun.pdm2pdf.model.TableInfo

  private void parseTables(Element ele) throws JDOMException {
    List<Element> tableElements = EXPR_TABLE.evaluate(ele);
    for (Element table : tableElements) {
      // 解析表
      TableInfo tableInfo = parseTable(table);
      tables.put(tableInfo.getCode(), tableInfo);
    }
  }
View Full Code Here

Examples of co.cask.cdap.proto.TableInfo

      }
      String storageHandler = tableInfo.getParameters().get("storage_handler");
      boolean isDatasetTable = storageHandler != null &&
        storageHandler.equals(DatasetStorageHandler.class.getName());

      return new TableInfo(tableInfo.getTableName(), tableInfo.getDbName(), tableInfo.getOwner(),
                           (long) tableInfo.getCreateTime() * 1000, (long) tableInfo.getLastAccessTime() * 1000,
                           tableInfo.getRetention(), partitionKeysBuilder.build(), tableInfo.getParameters(),
                           tableInfo.getTableType(), schemaBuilder.build(), tableInfo.getSd().getLocation(),
                           tableInfo.getSd().getInputFormat(), tableInfo.getSd().getOutputFormat(),
                           tableInfo.getSd().isCompressed(), tableInfo.getSd().getNumBuckets(),
View Full Code Here

Examples of co.mewf.sqlwriter.mapping.TableInfo

  private TableInfo table;
  private WhereBuilder where;
  private QualifierBuilder qualifiers = new QualifierBuilder(this);

  public UpdateBuilder(Class<?> entityClass) {
    this.table = new TableInfo(entityClass);
  }
View Full Code Here

Examples of com.impetus.kundera.configure.schema.TableInfo

                        .getJavaType() : null;

                String idName = entityMetadata.getIdAttribute() != null ? ((AbstractAttribute) entityMetadata
                        .getIdAttribute()).getJPAColumnName() : null;

                TableInfo tableInfo = new TableInfo(entityMetadata.getTableName(), type.name(), idClassName, idName);

                // check for tableInfos not empty and contains the present
                // tableInfo.
                if (!tableInfos.isEmpty() && tableInfos.contains(tableInfo))
                {
View Full Code Here

Examples of com.jfinal.plugin.activerecord.TableInfo

    }
  }
 
  @SuppressWarnings("rawtypes")
  private static final void injectActiveRecordModel(Model<?> model, String modelName, HttpServletRequest request, boolean skipConvertError) {
    TableInfo tableInfo = TableInfoMapping.me().getTableInfo(model.getClass());
   
    String modelNameAndDot = modelName + ".";
   
    Map<String, String[]> parasMap = request.getParameterMap();
    for (Entry<String, String[]> e : parasMap.entrySet()) {
      String paraKey = e.getKey();
      if (paraKey.startsWith(modelNameAndDot)) {
        String paraName = paraKey.substring(modelNameAndDot.length());
        Class colType = tableInfo.getColType(paraName);
        if (colType == null)
          throw new ActiveRecordException("The model attribute " + paraKey + " is not exists.");
        String[] paraValue = e.getValue();
        try {
          // Object value = Converter.convert(colType, paraValue != null ? paraValue[0] : null);
View Full Code Here

Examples of com.scooterframework.orm.sqldataexpress.object.TableInfo

        throw new IllegalArgumentException("connName cannot be null.");
     
        if (tableName == null)
            throw new IllegalArgumentException("tableName cannot be null.");
       
        TableInfo ti = DBStore.getInstance().getTableInfo(connName, tableName);
        if (ti != null) return ti;
       
        UserDatabaseConnection udc = null;
        try {
          udc = SqlExpressUtil.getUserDatabaseConnection(connName);
View Full Code Here

Examples of com.taobao.tdhs.client.request.TableInfo

    private final String table = "unit_test_data";
    private final String[] fields = {"id", "name", "level"};

    @Test
    public void testTenThousand() throws TDHSException {
        TableInfo tableInfo = new TableInfo(db, table, null, fields);
        Get get = new Get(tableInfo, new String[][]{{"-1"}},
                TDHSCommon.FindFlag.TDHS_GE, 0, 10000);
        TDHSResponse r = client.count(get);
        Assert.assertEquals(TDHSResponseEnum.ClientStatus.OK, r.getStatus());
        Assert.assertEquals(1, r.getFieldData().size());
View Full Code Here

Examples of io.crate.metadata.table.TableInfo

        return modules;
    }

    @Test
    public void testPartitionNameFromAssignmentWithBytesRef() throws Exception {
        TableInfo tableInfo = TestingTableInfo.builder(new TableIdent("doc", "users"), RowGranularity.DOC, new Routing(null))
                .add("name", DataTypes.STRING, null, true)
                .addPrimaryKey("name").build();

        PartitionName partitionName = PartitionPropertiesAnalyzer.toPartitionName(
                tableInfo,
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.