Examples of RowMapper


Examples of javax.swing.tree.RowMapper

        assertNull(tree.getModel());
    }

    public void testSetSelectionModel() {
        assertTrue(tree.getSelectionModel() instanceof DefaultTreeSelectionModel);
        RowMapper rowMapper1 = new RowMapper() {
            public int[] getRowsForPaths(TreePath[] path) {
                return null;
            }
        };
        RowMapper rowMapper2 = new RowMapper() {
            public int[] getRowsForPaths(TreePath[] path) {
                return null;
            }
        };
        TreeSelectionModel model1 = new DefaultTreeSelectionModel();
        TreeSelectionModel model2 = new DefaultTreeSelectionModel();
        RowMapper mapper = tree.getSelectionModel().getRowMapper();
        tree.setSelectionModel(model1);
        assertTrue(propertyChangeController.isChanged("selectionModel"));
        assertEquals(model1, tree.getSelectionModel());
        assertSame(mapper, tree.getSelectionModel().getRowMapper());
        tree.setSelectionModel(model2);
View Full Code Here

Examples of org.drools.guvnor.client.widgets.drools.decoratedgrid.data.RowMapper

                             this );
    }

    public void onSetInternalModel(SetInternalModelEvent<GuidedDecisionTable52, BaseColumn> event) {
        this.data = event.getData();
        this.rowMapper = new RowMapper( this.data );
        this.redraw();
    }
View Full Code Here

Examples of org.drools.guvnor.client.widgets.drools.decoratedgrid.data.RowMapper

        rangeExtentCell = null;
    }

    public void setData(DynamicData data) {
        this.data = data;
        this.rowMapper = new RowMapper( data );
    }
View Full Code Here

Examples of org.drools.guvnor.client.widgets.drools.decoratedgrid.data.RowMapper

                             this );
    }

    public void onSetInternalModel(SetInternalModelEvent<TemplateModel, TemplateDataColumn> event) {
        this.data = event.getData();
        this.rowMapper = new RowMapper( this.data );
        this.redraw();
    }
View Full Code Here

Examples of org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.RowMapper

                             this );
    }

    public void onSetInternalModel( SetInternalModelEvent<GuidedDecisionTable52, BaseColumn> event ) {
        this.data = event.getData();
        this.rowMapper = new RowMapper( this.data );
        this.redraw();
    }
View Full Code Here

Examples of org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.RowMapper

                             this );
    }

    public void onSetInternalModel( SetInternalModelEvent<TemplateModel, TemplateDataColumn> event ) {
        this.data = event.getData();
        this.rowMapper = new RowMapper( this.data );
        this.redraw();
    }
View Full Code Here

Examples of org.springframework.jdbc.core.RowMapper

    @SuppressWarnings("unchecked")
    protected Object queryForObject(ResultSet rs) throws SQLException {
        Object result = null;
        if (outputClass == null) {
            RowMapper rowMapper = new ColumnMapRowMapper();
            RowMapperResultSetExtractor<Map<String, Object>> mapper = new RowMapperResultSetExtractor<Map<String, Object>>(rowMapper);
            List<Map<String, Object>> data = mapper.extractData(rs);
            if (data.size() > 1) {
                throw new SQLDataException("Query result not unique for outputType=SelectOne. Got " + data.size() " count instead.");
            } else if (data.size() == 1) {
                // Set content depend on number of column from query result
                Map<String, Object> row = data.get(0);
                if (row.size() == 1) {
                    result = row.values().iterator().next();
                } else {
                    result = row;
                }
            }
        } else {
            Class<?> outputClzz = getCamelContext().getClassResolver().resolveClass(outputClass);
            RowMapper rowMapper = new BeanPropertyRowMapper(outputClzz);
            RowMapperResultSetExtractor<?> mapper = new RowMapperResultSetExtractor(rowMapper);
            List<?> data = mapper.extractData(rs);
            if (data.size() > 1) {
                throw new SQLDataException("Query result not unique for outputType=SelectOne. Got " + data.size() " count instead.");
            } else if (data.size() == 1) {
View Full Code Here

Examples of org.springframework.jdbc.core.RowMapper

   */
  public WorkflowDefinition findWorkflowDefinitionById(String id)
  {
    String sql = " select * from t_ff_df_workflowdef where id=? ";

    return (WorkflowDefinition) super.getJdbcTemplate().queryForObject(sql, new Object[] { id }, new RowMapper()
    {
      public Object mapRow(ResultSet rs, int rowNum) throws SQLException
      {

        WorkflowDefinition workFlowDefinition = new WorkflowDefinition();
View Full Code Here

Examples of org.springframework.jdbc.core.RowMapper

    {
      System.out.println("FIREWORKFLOW_JDCB:" + sql.toString());
    }

    return (WorkflowDefinition) super.getJdbcTemplate().queryForObject(sql, new Object[] { processId, version },
        new RowMapper()
        {
          public Object mapRow(ResultSet rs, int rowNum) throws SQLException
          {

            WorkflowDefinition workFlowDefinition = new WorkflowDefinition();
View Full Code Here

Examples of org.springframework.jdbc.core.RowMapper

    if (show_sql)
    {
      System.out.println("FIREWORKFLOW_JDCB:" + sql.toString());
    }

    return super.getJdbcTemplate().query(sql, new Object[] { processId }, new RowMapper()
    {
      public Object mapRow(ResultSet rs, int rowNum) throws SQLException
      {

        WorkflowDefinition workFlowDefinition = new WorkflowDefinition();
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.