Examples of Table


Examples of com.mysql.clusterj.core.store.Table

        DomainTypeHandler<T> domainTypeHandler = getDomainTypeHandler(cls, dictionary);
        return domainTypeHandler.newInstance();
    }

    public Table getTable(String tableName, Dictionary dictionary) {
        Table result;
        try {
            result = dictionary.getTable(tableName);
        } catch(Exception ex) {
            throw new ClusterJFatalInternalException(
                        local.message("ERR_Get_Table"), ex);
View Full Code Here

Examples of com.nearinfinity.honeycomb.Table

     * @param tableName Name of the table to be dropped
     */
    public void dropTable(String tableName) {
        Verify.isNotNullOrEmpty(tableName);
        Store store = storeFactory.createStore(tableName);
        Table table = store.openTable(tableName);

        table.deleteAllRows();
        Util.closeQuietly(table);
        store.deleteTable(tableName);
    }
View Full Code Here

Examples of com.oltpbenchmark.catalog.Table

        LOG.info("*** START " + tableName);
        final AbstractTableGenerator generator = this.generators.get(tableName);
        assert (generator != null);

        // Generate Data
        final Table catalog_tbl = benchmark.getCatalog().getTable(tableName);
        assert(catalog_tbl != null) : tableName;
        final List<Object[]> volt_table = generator.getVoltTable();
        final String sql = SQLUtil.getInsertSQL(catalog_tbl);
        final PreparedStatement stmt = conn.prepareStatement(sql);
        final int types[] = catalog_tbl.getColumnTypes();
       
        while (generator.hasMore()) {
            generator.generateBatch();
           
//            StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of com.openbravo.data.model.Table

        row = new Row(
                new Field("ID", Datas.STRING, Formats.STRING),
                new Field(AppLocal.getIntString("Label.Name"), Datas.STRING, Formats.STRING, true, true, true)
        );

        Table table = new Table(
                "ATTRIBUTESET",
                new PrimaryKey("ID"),
                new Column("NAME"));

        lpr = row.getListProvider(app.getSession(), table);
View Full Code Here

Examples of com.poker.game.Table

    @Inject
    private GameManager gameManager;

    @WebModelHandler(startsWith = "/notification")
    public void notification(@WebModel Map m, @WebParam("room") String room, RequestContext rc) {
        Table table = gameManager.getTable(room);
        List playerList = table.getPlayers();
        List playerList2 = new ArrayList();
        for (int i = 0; i < playerList.size(); i++) {
            Player player = (Player) playerList.get(i);
            Map playerMap = new HashMap();
            playerMap.put("pokerChip", player.getCash());
            playerMap.put("player", player.getName());
            Card[] handArr = player.getHand().getCards();
            List handList = new ArrayList();
            for (int j = 0; j < handArr.length; j++) {
                handList.add(handArr[j].toString());
            }
            playerMap.put("handCards", handList);
            playerMap.put("playerId", player.getId());
            playerMap.put("status", player.getAction() == null ? "" : player.getAction().getName());
            playerList2.add(playerMap);
            //
            if (player.getId().equals(rc.getReq().getSession().getAttribute("playerId"))) {
                List actionList = new ArrayList();
                actionList.add("Continue");
                actionList.add("Raise");
                actionList.add("Fold");
                playerMap.put("actions", actionList);
                m.put("requestPlayerStatus", playerMap);
            }
        }
        m.put("playersStatus", playerList2);
        m.put("poolPokerChip", table.getPot());
        List cardList = table.getBoard();
        List cardList2 = new ArrayList();
        for (int i = 0; i < cardList.size(); i++) {
            cardList2.add(cardList.get(i).toString());
        }
        m.put("communityCards", cardList2);
View Full Code Here

Examples of com.poker.ui.settings.tables.Table

        final int topX = playWnd.getLeftTopX();
        final int topY = playWnd.getLeftTopY();

        Boolean result;

        final Table table = pdata.getRoomSettings().getTableSettings(
                pdata.getProgramSettings().getCountPlayers());

        for (int i = 0; i < pdata.getProgramSettings().getCountPlayers(); i++) {
            for (int x = -2; x < 4; x++) {
                for (int y = -2; y < 4; y++) {
                    result = this.robot.analyzePixel(table.getPtPlayerButton(i).x + topX + x, table
                            .getPtPlayerButton(i).y
                            + topY + y, pdata.getRoomSettings().getButtonColorFrom(), pdata
                            .getRoomSettings().getButtonColorTo());
                    if (result) {
                        return i;
View Full Code Here

Examples of com.quickorm.stereotype.Table

        this.entityClass = entityClass;
        //扫描entityClass(注意,要设置Accessable为true)

        //首先取得表名
        Table tableAnnotation = (Table) entityClass.getAnnotation(Table.class);
        if (tableAnnotation == null || StringUtils.isEmpty(tableAnnotation.name())) {
            this.tableName = entityClass.getSimpleName();
        } else {
            this.tableName = tableAnnotation.name();
        }
        //然后扫描字段
        Field[] filedArray = ObjectHelper.getClassAllField(entityClass);
        for (int i = 0; i <= filedArray.length - 1; i++) {
            Field field = filedArray[i];
View Full Code Here

Examples of com.redspr.redquerybuilder.core.shared.meta.Table

        Type dateType = new Type("DATE");
        dateType.setEditor(new Editor.DateEditor());
        Type[] types = new Type[]{stringType, dateType, refType, singleRefType};
        database.setTypes(types);

        Table person = new Table("PERSON"); // XXX want case sensitivity?
        Column personId = new Column("id", stringType);
        person.add(personId);
        person.add(new Column("sex", singleRefType));
        person.add(new Column("owner", stringType));
        person.add(new Column("category", refType));
        person.add(new Column("category2", refType));
        person.add(new Column("county", suggestType));
        schema.add(person);

        {
            Table log = new Table("Log");
            log.add(new Column("id", stringType));
            log.add(new Column("date", dateType));
            Column pc = new Column("parent", stringType);
            ConstraintReferential fk = new ConstraintReferential("parentfk",
                    log);
            fk.setRefTable(person);
            fk.setColumns(new Column[] {pc });
            fk.setRefColumns(new Column[] {personId });
            log.add(fk);
            log.add(pc);

            schema.add(log);
        }

        {
            Table order = new Table("Order");
            order.add(new Column("date", dateType));
            Column pc = new Column("parent", stringType);
            ConstraintReferential fk = new ConstraintReferential("orderparentfk",
                    order);
            fk.setRefTable(person);
            fk.setColumns(new Column[] {pc });
            fk.setRefColumns(new Column[] {personId });
            order.add(fk);
            order.add(pc);

            schema.add(order);
        }

        if (config == null) {
View Full Code Here

Examples of com.sardak.antform.types.Table

    e.printStackTrace();
  }
 
  Control control = new Control(new CallbackTest(), "Table test", null, null, false);
  ControlPanel panel = control.getPanel();
  Table t = new Table();
  t.setLabel("a table");
  t.setProperty("prop");
  t.setEditable(true);
  t.setColumns("col1,col2,col3");
  t.setData("d1,d2,d3;d1,d2,d3;d1,d2,d3");
  t.setRowSeparator(";");
  t.setColumnSeparator(",");
  t.setEscapeSequence("\\");
  t.addToControlPanel(panel);
  control.show();
  System.exit(0);
}
View Full Code Here

Examples of com.splout.db.hadoop.Table

  private static Schema SCHEMA_2 = new Schema("schema2", Fields.parse("id2:string, value2:string"));
  private static Schema SCHEMA_3 = new Schema("schema3", Fields.parse("id3:int, value3:string"));

  @Test
  public void testCorrectTablespace() throws TableBuilderException, TablespaceBuilderException {
    Table table1 = new TableBuilder(SCHEMA_1).addCSVTextFile("foo1.txt").partitionBy("id1").build();
    Table table2 = new TableBuilder(SCHEMA_2).addCSVTextFile("foo2.txt").partitionBy("id2").build();

    TablespaceBuilder builder = new TablespaceBuilder();
    builder.add(table1);
    builder.add(table2);
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.