Examples of Column


Examples of org.kiji.schema.KijiDataRequest.Column

   */
  private static List<Column> getColumnRequests(
      final KijiColumnName column,
      final KijiDataRequest dataRequest
  ) {
    final Column exactRequest = dataRequest.getColumn(column);
    if (exactRequest != null) {
      return ImmutableList.of(exactRequest);
    }

    if (column.isFullyQualified()) {
      // The column is fully qualified, but a request doesn't exist for the qualified column.
      // Check if the family is requested, and if so create a new qualified-column request from it.
      final Column familyRequest =
          dataRequest.getRequestForColumn(KijiColumnName.create(column.getFamily(), null));
      if (familyRequest == null) {
        return ImmutableList.of();
      }
      ColumnsDef columnDef = ColumnsDef
          .create()
          .withFilter(familyRequest.getFilter())
          .withPageSize(familyRequest.getPageSize())
          .withMaxVersions(familyRequest.getMaxVersions())
          .add(column.getFamily(), column.getQualifier(), familyRequest.getReaderSpec());

      return ImmutableList.of(
          KijiDataRequest.builder().addColumns(columnDef).build().getColumn(column));
    } else {
      // The column is a family, but a request doesn't exist for the entire family add all requests
View Full Code Here

Examples of org.lealone.dbobject.table.Column

        } catch (SQLException e) {
            throw DbException.convert(e);
        }
        current = tableLink.getTemplateRow();
        for (int i = 0; i < current.getColumnCount(); i++) {
            Column col = tableLink.getColumn(i);
            Value v = DataType.readValue(session, rs, i + 1, col.getType());
            current.setValue(i, v);
        }
        return true;
    }
View Full Code Here

Examples of org.librebiz.pureport.definition.Column

    private void endRow() {
       
    }

    private void startColumn(Attributes attrs) {
        Column c = new Column();
        c.setWidth(toQuantity(attrs.getValue("width")));
        c.setLeftMargin(toQuantity(attrs.getValue("left-margin"), zero()));
        c.setRightMargin(toQuantity(attrs.getValue("right-margin"), zero()));
        band.addColumn(c);
    }
View Full Code Here

Examples of org.modeshape.jcr.query.model.Column

                columnName = parts[0];
            } else {
                throw new IllegalArgumentException(GraphI18n.columnMustBeScoped.text(parts[0]));
            }
        }
        return new Column(name, propertyName, columnName);
    }
View Full Code Here

Examples of org.modeshape.jcr.query.validate.Schemata.Column

        this.name = name;
        // Define the columns ...
        List<Column> columnList = new ArrayList<Column>();
        Map<String, Column> columnMap = new HashMap<String, Column>();
        for (Column column : columns) {
            Column old = columnMap.put(column.getName(), column);
            if (old != null) {
                columnList.set(columnList.indexOf(old), column);
            } else {
                columnList.add(column);
            }
View Full Code Here

Examples of org.mvel2.tests.core.res.Column

    String str = "length == $c.length -1";

    ParserConfiguration pconf = new ParserConfiguration();
    ParserContext pctx = new ParserContext(pconf);
    ExecutableStatement stmt = (ExecutableStatement) MVEL.compileExpression(str, pctx);
    Column col1 = new Column("x", 0);
    Column col2 = new Column("x", 0);
    Map<String, Object> vars = new HashMap<String, Object>();
    vars.put("$c", col2);
    Boolean result = (Boolean) MVEL.executeExpression(stmt, col1, vars);
    assertFalse(result);
  }
View Full Code Here

Examples of org.nutz.dao.entity.annotation.Column

   
  }
 
  private void evalField(DatabaseMeta db, MyTable table, Entity<?> entity, Field field, EntityField ef) {
    field.setAccessible(true);
    Column column = field.getAnnotation(Column.class);
    String columnName=null;
   
    if (null == column || Strings.isBlank(column.value())){
      columnName=this.getOrmRule().javaField2DbField(field.getName());
    }else{
      columnName=column.value();
    }
    ef.setColumnName(columnName);
    ef.setReadonly((field.getAnnotation(Readonly.class) != null));
    MyField myField=table.getField(columnName);
    ef.setNotNull(!myField.isAllowNull());
View Full Code Here

Examples of org.odftoolkit.simple.table.Column

        if(tab.equals(spDocument.getSheetByIndex(i)))
          spDocument.removeSheet(i);
      }
    }
    Table tablea = spDocument.insertSheet(0);
    Column col = tablea.appendColumn();
    col.setWidth(12.99);
    Column col2 = tablea.appendColumn();
    col.setWidth(12.);
    tablea.setTableName("tabellDemo2");
    Assert.assertEquals("tabellDemo2", tablea.getTableName());
    spDocument.save(ResourceUtilities.getAbsolutePath(TEST_FILE));
   
View Full Code Here

Examples of org.openbravo.model.ad.datamodel.Column

  }

  private String generateEntityPage(Table table, Entity entity) {
    final StringBuilder sb = new StringBuilder();
    for (Property property : entity.getProperties()) {
      final Column column;
      if (property.getColumnName() != null) {
        column = getColumn(table, property.getColumnName());
      } else {
        column = null;
      }

      if (sb.length() > 0) {
        sb.append("\n\n");
      }
      sb.append("|-");
      sb.append("\n|");
      // property name
      sb.append(property.getName() + (property.isId() ? "<sup>*</sup>" : "")
          + (property.isIdentifier() ? "<sup>#</sup>" : ""));
      if (property.isInactive()) {
        sb.append(" '''(inactive)'''");
      }

      sb.append(" || ");

      // table name
      if (column != null) {
        sb.append(getLink("ERP/2.50/Developers_Guide/Database_Model/" + entity.getPackageName()
            + "/" + entity.getTableName() + "#" + column.getName(), column.getDBColumnName()));
      } else {
        sb.append("");
      }

      sb.append(" || ");

      // mandatory
      {
        final StringBuilder constraints = new StringBuilder();
        if (property.isMandatory()) {
          if (constraints.length() > 0) {
            constraints.append("<br/>");
          }
          constraints.append("Mandatory");
        }
        if (property.getMinValue() != null) {
          if (constraints.length() > 0) {
            constraints.append("<br/>");
          }
          constraints.append("Min: " + property.getMinValue());
        }
        if (property.getMaxValue() != null) {
          if (constraints.length() > 0) {
            constraints.append("<br/>");
          }
          System.err.println("Property " + property);
          constraints.append("Max: " + property.getMaxValue());
        }
        if (property.getFieldLength() > 0 && property.getPrimitiveType() == String.class) {
          if (constraints.length() > 0) {
            constraints.append("<br/>");
          }
          constraints.append("Max Length: " + property.getFieldLength());
        }
        sb.append(constraints.toString());
      }
      sb.append(" || ");

      // the type
      if (property.isPrimitive()) {
        sb.append(property.getTypeName());
      } else {
        if (property.isOneToMany()) {
          sb.append("List of ");
        }
        sb.append(getLink("ERP/2.50/Developers_Guide/Reference/Entity_Model/"
            + property.getTargetEntity().getName(), property.getTargetEntity().getName()));
      }

      sb.append(" || ");

      if (column != null && column.getHelpComment() != null) {
        sb.append(column.getHelpComment());
      }
    }
    return sb.toString();
  }
View Full Code Here

Examples of org.openengsb.core.edbi.jdbc.sql.Column

        @Override
        protected void onBeforeCreate(Table table, JdbcIndex<?> index) {
            super.onBeforeCreate(table, index);

            table.addElement(new Column("REV_CREATED", getTypeMap().getType(Date.class)));
            table.addElement(new Column("REV_MODIFIED", getTypeMap().getType(Date.class)));
        }
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.