Examples of Table


Examples of com.arconsis.android.datarobot.builder.schema.data.Table

  @Override
  public Table read() {
    int primaryKeyCount = 0;
    boolean noArgsConstructor = false;

    Table table = new Table(entity.getSimpleName().toString(), entity.toString());

    Map<String, AtomicInteger> countedToManyAssociations = new HashMap<String, AtomicInteger>();

    for (Element child : entity.getEnclosedElements()) {
      if (child.accept(new EmptyContructorVisitor(), null) != null) {
        noArgsConstructor = true;
      }

      VariableElement column = child.accept(new ColumnElementResolvingTypeVisitor(), null);
      if (column != null) {
        if (hasAmbiguosAssociationDeclaration(column)) {
          return null;
        }
        if (column.getAnnotation(PrimaryKey.class) != null && ++primaryKeyCount > 1) {
          messager.printMessage(Kind.ERROR, "Only one @PrimaryKey is allowed within an @Entity", entity);
          return null;
        }
        ColumnReader columnReader = new ColumnReader(column, messager);
        Column read = columnReader.read();
        if (read != null) {
          table.addColumn(read);
        }
      }

      VariableElement association = child.accept(new AssociationElementResolvingTypeVisitor(), null);
      if (association != null) {
        AssociationReader associationReader = new AssociationReader(association, entityNames, messager);
        Association read = associationReader.read();
        if (read != null) {
          table.addAssociation(read);

          if (AssociationType.TO_MANY == read.getCardinality()) {
            if (countedToManyAssociations.containsKey(read.getCanonicalTypeInEntity())) {
              countedToManyAssociations.get(read.getCanonicalTypeInEntity()).incrementAndGet();
            } else {
View Full Code Here

Examples of com.aspose.words.Table

    // Load the document.
    Document doc = new Document("data/tableDoc.doc");

    // Get the first and second table in the document.
    // The rows from the second table will be appended to the end of the first table.
    Table firstTable = (Table)doc.getChild(NodeType.TABLE, 0, true);
    Table secondTable = (Table)doc.getChild(NodeType.TABLE, 1, true);

    // Append all rows from the current table to the next.
    // Due to the design of tables even tables with different cell count and widths can be joined into one table.
    while (secondTable.hasChildNodes())
        firstTable.getRows().add(secondTable.getFirstRow());

    // Remove the empty table container.
    secondTable.remove();

    doc.save("data/AsposeJoinTables.doc");
  }
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.ui.Table

    NinePatch np = new NinePatch( ResourceFactory.newTexture( "brushed.png", false ), 0, 0, 0, 0 );
    np.setColor( new Color( 0.3f, 0.3f, 0.3f, 1f ) );
    NinePatchDrawable npBack = new NinePatchDrawable( np );

    // build the top panel and add all of its widgets
    Table topPanel = buildTopPanel( npBack, width, height );
    topPanel.add( buildGlobalSettingsWidgets() );
    topPanel.add( buildBloomWidgets() );
    topPanel.add( buildCurvatureWidgets() );
    topPanel.add( buildCrtEmulationWidgets() );
    topPanel.add( buildVignettingWidgets() );

    // the zoomer widgets group is somewhat "special": if we are going
    // to NOT use a panel animator then one more button will be added
    // to permit the user to show/hide the panel manually
    Table tZoomer = buildZoomerWidgets();

    // compute the panel's opened/closed position
    final float yWhenShown = height - topPanel.getHeight() + 13;
    final float yWhenHidden = height - 60 + 13;

    if( usePanelAnimator ) {
      panelShown = false;
      panelAnimator = new TopPanelAnimator( topPanel, new Rectangle( 10, 5, width - 20, 60 ), yWhenShown, yWhenHidden );
      topPanel.setY( yWhenHidden );
      topPanel.add( tZoomer ).expandX();
      topPanel.setColor( 1f, 1f, 1f, 0.5f );
    } else {
      panelShown = true;
      topPanel.setY( yWhenShown );
      topPanel.add( tZoomer ).expandX();
      tZoomer.row();
      tZoomer.add( buildPanelActionButtons( topPanel, yWhenShown, yWhenHidden ) ).align( Align.right );
    }

    // build the bottom panel
    Table bottomPanel = buildBottomPanel( npBack, width, height );
    bottomPanel.add( ResourceFactory.newLabel( "Press \"Q\" or \"Esc\" to quit" ) );

    // fps label
    fps = ResourceFactory.newLabel( "fps: " );
    bottomPanel.add( fps ).width( 200 ).padLeft( 50 );

    // general-purpose single message
    singleMessage = ResourceFactory.newLabel( "" );
    bottomPanel.add( singleMessage ).expandX().right();

    // UI is quite ready at this point, just add the containers to the stage
    stage.addActor( topPanel );
    stage.addActor( bottomPanel );
View Full Code Here

Examples of com.caucho.db.table.Table

    if (column == null)
      return Integer.MAX_VALUE;
   
    FromItem fromItem = fromList.get(fromList.size() - 1);

    Table table = fromItem.getTable();

    column = table.getColumn(_column);

    if (column == null)
      return 100 * 100 * 100;
    else if (column.isPrimaryKey())
      return 100;
View Full Code Here

Examples of com.citytechinc.cq.component.annotations.widgets.rte.Table

  }

  private RtePlugin buildTablePlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.table().length > 0) {
      Table tableAnnotation = rteAnnotation.table()[0];
      List<String> features = new ArrayList<String>();

      if (tableAnnotation.table()) {
        features.add("table");
      }
      if (tableAnnotation.removetable()) {
        features.add("removetable");
      }
      if (tableAnnotation.insertrow()) {
        features.add("insertrow");
      }
      if (tableAnnotation.removerow()) {
        features.add("removerow");
      }
      if (tableAnnotation.insertcolumn()) {
        features.add("insertcolumn");
      }
      if (tableAnnotation.removecolumn()) {
        features.add("removecolumn");
      }
      if (tableAnnotation.cellprops()) {
        features.add("cellprops");
      }
      if (tableAnnotation.mergecells()) {
        features.add("mergecells");
      }
      if (tableAnnotation.splitcell()) {
        features.add("splitcell");
      }
      if (tableAnnotation.selectrow()) {
        features.add("selectrow");
      }
      if (tableAnnotation.selectcolumns()) {
        features.add("selectcolumns");
      }

      List<DialogElement> containedStyles = new ArrayList<DialogElement>();

      List<DialogElement> tableStyles = null;
      List<DialogElement> cellStyles = null;

      if (tableAnnotation.tableStyles().length > 0) {
        tableStyles = new ArrayList<DialogElement>();

        for (int i = 0; i < tableAnnotation.tableStyles().length; i++) {
          Style curTableStyle = tableAnnotation.tableStyles()[i];
          String curFieldName = "tablestyle" + i;

          RteStyleParameters styleParameters = new RteStyleParameters();
          styleParameters.setFieldName(curFieldName);
          styleParameters.setCssName(curTableStyle.cssName());
          styleParameters.setText(curTableStyle.text());

          tableStyles.add(new RteStyle(styleParameters));
        }
        WidgetCollectionParameters wcp = new WidgetCollectionParameters();
        wcp.setContainedElements(tableStyles);
        wcp.setFieldName("tableStyles");
        containedStyles.add(new WidgetCollection(wcp));
      }

      if (tableAnnotation.cellStyles().length > 0) {
        cellStyles = new ArrayList<DialogElement>();

        for (int i = 0; i < tableAnnotation.cellStyles().length; i++) {
          Style curCellStyle = tableAnnotation.cellStyles()[i];
          String curFieldName = "cellstyle" + i;

          RteStyleParameters styleParameters = new RteStyleParameters();
          styleParameters.setFieldName(curFieldName);
          styleParameters.setCssName(curCellStyle.cssName());
View Full Code Here

Examples of com.digitolio.jdbi.table.Table

    }

    public RewrittenStatement rewrite(String sql, Binding params, StatementContext ctx) {
        if (!initialized) {
            TranslatingStrategyAware attribute = (TranslatingStrategyAware) ctx.getAttribute(StrategyAwareDBI.TRANSLATING_STRATEGY);
            Table table = TableRegistry.getInstance().getTable(ctx.getConnection(), new TranslateTablePair(type, attribute));
            sqlGenerator = new AutoDeleteByPKGenerator(table);
            initialized = true;
        }
        final ParsedStatement stmt = new ParsedStatement();
        try {
View Full Code Here

Examples of com.dotcms.repackage.net.sf.hibernate.mapping.Table

      cfg.setProperties(SystemProperties.getProperties());
      //http://jira.dotmarketing.net/browse/DOTCMS-4937
      if (DbConnectionFactory.isMySql()) {
        cfg.setNamingStrategy(new LowercaseNamingStrategy());
        Table liferayTable  = cfg.getClassMapping(com.liferay.portal.ejb.CompanyHBM.class).getTable();
        liferayTable.setName("company");
        liferayTable  = cfg.getClassMapping(com.liferay.portal.ejb.AddressHBM.class).getTable();
        liferayTable.setName("address");
        liferayTable  = cfg.getClassMapping(com.liferay.portal.ejb.ImageHBM.class).getTable();
        liferayTable.setName("image");
        liferayTable  = cfg.getClassMapping(com.liferay.portal.ejb.PasswordTrackerHBM.class).getTable();
        liferayTable.setName("passwordtracker");
        liferayTable  = cfg.getClassMapping(com.liferay.portal.ejb.PortletHBM.class).getTable();
        liferayTable.setName("portlet");
        liferayTable  = cfg.getClassMapping(com.liferay.portal.ejb.PortletPreferencesHBM.class).getTable();
        liferayTable.setName("portletpreferences");
        liferayTable  = cfg.getClassMapping(com.liferay.portal.ejb.ReleaseHBM.class).getTable();
        liferayTable.setName("release_");
        liferayTable  = cfg.getClassMapping(com.liferay.portal.ejb.UserHBM.class).getTable();
        liferayTable.setName("user_");
        liferayTable  = cfg.getClassMapping(com.liferay.portal.ejb.UserTrackerHBM.class).getTable();
        liferayTable.setName("usertracker");
        liferayTable  = cfg.getClassMapping(com.liferay.portal.ejb.UserTrackerPathHBM.class).getTable();
        liferayTable.setName("usertrackerpath");
        liferayTable  = cfg.getClassMapping(com.liferay.portlet.admin.ejb.AdminConfigHBM.class).getTable();
        liferayTable.setName("adminconfig");
        liferayTable  = cfg.getClassMapping(com.liferay.portlet.polls.ejb.PollsChoiceHBM.class).getTable();
        liferayTable.setName("pollschoice");
        liferayTable  = cfg.getClassMapping(com.liferay.portlet.polls.ejb.PollsDisplayHBM.class).getTable();
        liferayTable.setName("pollsdisplay");
        liferayTable  = cfg.getClassMapping(com.liferay.portlet.polls.ejb.PollsQuestionHBM.class).getTable();
        liferayTable.setName("pollsquestion");
        liferayTable  = cfg.getClassMapping(com.liferay.portlet.polls.ejb.PollsVoteHBM.class).getTable();
        liferayTable.setName("pollsvote");
        liferayTable  = cfg.getClassMapping(com.dotcms.repackage.com.liferay.counter.ejb.CounterHBM.class).getTable();
        liferayTable.setName("counter");
      }

      setSessionFactory(cfg.buildSessionFactory());
    }
    catch (Exception e) {
View Full Code Here

Examples of com.et.ar.annotations.Table

    }
   
    public static OrmInfo getOrmInfo(Class<?> clasz){
        OrmInfo orm = new OrmInfo();
       
        Table t = clasz.getAnnotation(Table.class);
        if (t != null) {
          orm.table = t.name();
        }
       
        List<ColumnField> columnFields = new ArrayList<ColumnField>();
        List<HasManyField> hasManyFields = new ArrayList<HasManyField>();
        List<HasOneField> hasOneFields = new ArrayList<HasOneField>();
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.table.Table

    col.setMaxWidth(400);
    columns.add(col);

    TableColumnModel cm = new TableColumnModel(columns);

    membersTable = new Table(cm);
    membersTable.setSelectionMode(SelectionMode.SINGLE);
    membersTable.setHorizontalScroll(true);
    // disable to allow CheckBox widget!
    membersTable.setBulkRender(false);
    membersTable.setAutoHeight(true);
View Full Code Here

Examples of com.facebook.presto.raptor.metadata.Table

    }

    private ConnectorTableHandle getTableHandle(SchemaTableName tableName)
    {
        checkNotNull(tableName, "tableName is null");
        Table table = dao.getTableInformation(connectorId, tableName.getSchemaName(), tableName.getTableName());
        if (table == null) {
            return null;
        }
        List<TableColumn> tableColumns = dao.getTableColumns(table.getTableId());
        checkArgument(!tableColumns.isEmpty(), "Table %s does not have any columns", tableName);

        RaptorColumnHandle countColumnHandle = null;
        RaptorColumnHandle sampleWeightColumnHandle = null;
        for (TableColumn tableColumn : tableColumns) {
            if (SAMPLE_WEIGHT_COLUMN_NAME.equals(tableColumn.getColumnName())) {
                sampleWeightColumnHandle = getRaptorColumnHandle(tableColumn);
            }
            if (countColumnHandle == null && tableColumn.getDataType().getJavaType().isPrimitive()) {
                countColumnHandle = getRaptorColumnHandle(tableColumn);
            }
        }
        if (countColumnHandle == null) {
            countColumnHandle = getRaptorColumnHandle(tableColumns.get(0));
        }

        if (sampleWeightColumnHandle != null) {
            sampleWeightColumnHandle = new RaptorColumnHandle(connectorId, SAMPLE_WEIGHT_COLUMN_NAME, sampleWeightColumnHandle.getColumnId(), BIGINT);
        }
        return new RaptorTableHandle(
                connectorId,
                tableName.getSchemaName(),
                tableName.getTableName(),
                table.getTableId(),
                countColumnHandle,
                sampleWeightColumnHandle);
    }
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.