Examples of Table


Examples of remote.service.motedata.client.Table

      return c;
    }
    else if (TableRow.class.isAssignableFrom(value.getClass()))
    {
      TableRow tableRow = (TableRow)value;
      Table table = tableRow.getTable();
      TableHeader header = table.getHeader();
      String[] headers = {"",""};
      Object[][] data= new Object[header.countVisible()][2];
      int j = 0;
      for ( int i=0; i < table.columns(); i++ )
      {
        if (header.isVisible(i))
        {
          data[j][0] = header.getTitle(i);
          data[j][1] = tableRow.get(i);
View Full Code Here

Examples of se.unlogic.standardutils.dao.annotations.Table

    } else {

      this.beanStringPopulators = null;
    }

    Table table = beanClass.getAnnotation(Table.class);

    if (table == null) {

      throw new RuntimeException("No @Table annotation found in  " + beanClass);
    } else {
      tableName = table.name();
    }

    this.tableName = table.name();

    List<Field> fields = ReflectionUtils.getFields(beanClass);

    int generatedKeyColumnIndex = 1;
View Full Code Here

Examples of shillelagh.Table

      }
      oneToManyCache.put(typeMirror.toString(), tableObject);
      TypeElement childColumnElement = elementUtils.getTypeElement(typeMirror.toString());
      tableColumn.setType(getClassName(childColumnElement, getPackageName(childColumnElement)));
    } else if (tableColumn.getSqlType() == SqliteType.UNKNOWN) {
      @SuppressWarnings("ConstantConditions")
      Table annotation = typeElement.getAnnotation(Table.class);
      if (annotation == null) {
        logger.e(String.format("%s in %s needs to be marked as a blob or should be "
            + "annotated with @Table", columnElement.toString(), tableObject.getTableName()));
      }
View Full Code Here

Examples of sizzle.aggregators.Table

  /** {@inheritDoc} */
  @Override
  protected void reduce(final EmitKey key, final Iterable<EmitValue> values, final Context context) throws IOException, InterruptedException {
    // get the table named by the emit key
    final Table t = this.tables.get(key.getName());
    // tell it we are not combining
    t.setCombining(false);

    // Counter counter = context.getCounter("Values Emitted",
    // key.toString());
    // LOG.fatal("counter for "+ counter.getDisplayName() + " " +
    // key.toString() + " " + Long.toString(counter.getValue()));

    // initialize the table
    t.start(key);
    // set the reducer context
    t.setContext(context);

    // for each of the values
    for (final EmitValue value : values)
      try {
        // aggregate it
        t.aggregate(value.getData(), value.getMetadata());
      } catch (final FinishedException e) {
        // we are done
        return;
      } catch (final IOException e) {
        // won't be robust to IOException
        throw e;
      } catch (final InterruptedException e) {
        // won't be robust to InterruptedExceptions
        throw e;
      } catch (final RuntimeException e) {
        if (this.robust)
          SizzleReducer.LOG.error(e.getClass().getName() + " caught", e);
        else
          throw e;
      } catch (final Exception e) {
        if (this.robust)
          SizzleReducer.LOG.error(e.getClass().getName() + " caught", e);
        else
          throw new RuntimeException(e.getClass().getName() + " caught", e);
      }

    // finish it!
    t.finish();
  }
View Full Code Here

Examples of smack.down.Table

    base1.addMinion(m1);
    base1.addMinion(m2);
    base1.addMinion(m5);
    base2.addMinion(m3);
    base2.addMinion(m4);
    Table table = new Table(Arrays.asList(player1), new ArrayList<Base>(), Arrays.asList(base1, base2));
    player1.setTable(table);
    Action action = new Howl();
    action.setOwner(player1);
   
    assertEquals(2, m1.getStrength());
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.