Examples of column()


Examples of br.com.objectos.comuns.io.FixedLine.column()

    Iterator<FixedLine> iterator = lines.iterator();
    PeekingIterator<FixedLine> peeking = Iterators.peekingIterator(iterator);

    FixedLine line = peeking.peek();

    Integer tipo = line.column(0, 1).get(Integer.class);
    if (tipo.intValue() != 0 || line.getText().length() != 400) {
      throw new ExcecaoCnab(
          line, "Primeira linha não corresponde a um header CNAB400. " +
              "Talvez você tenha enviado o arquivo incorreto?");
    }
View Full Code Here

Examples of br.com.objectos.comuns.io.Line.column()

    Iterator<Line> iterator = arquivo.iterator();

    assertTrue(iterator.hasNext());

    Line linha = iterator.next();
    assertEquals(linha.column(1).get(String.class), "BR MALLS PARTICIPAÇOES S.A.");
  }

  public void verifiqueCp850() {
    InputStream inputStream = obterStream("CP_850.TXT");
View Full Code Here

Examples of com.datastax.driver.core.querybuilder.Select.Selection.column()

    public static Selection select(List<CassandraColumnHandle> columns)
    {
        Selection selection = QueryBuilder.select();
        for (CassandraColumnHandle column : columns) {
            selection.column(validColumnName(column.getName()));
        }
        return selection;
    }

    public static Select selectFrom(CassandraTableHandle tableHandle, List<CassandraColumnHandle> columns)
View Full Code Here

Examples of com.foundationdb.ais.model.AISBuilder.column()

    }

    private AISBuilder createSimpleValidGroup() {
        AISBuilder builder = new AISBuilder();
        builder.table("test", "t1");
        builder.column("test", "t1", "c1", 0, intType, false, null, null);
        builder.column("test", "t1", "x", 1, intType, false, null, null);
        builder.column("test", "t1", "y", 2, intType, false, null, null);
        builder.pk("test", "t1");
        builder.indexColumn("test", "t1", Index.PRIMARY, "c1", 0, true, null);
        builder.table("test", "t2");
View Full Code Here

Examples of com.foundationdb.ais.model.TestAISBuilder.column()

        builder.column("schema", "order", "order_date", 2, "MCOMPAT", "int", false);
        builder.pk("schema", "order");
        builder.indexColumn("schema", "order", Index.PRIMARY, "order_id", 0, true, null);
        builder.table("schema", "item");
        builder.column("schema", "item", "item_id", 0, "MCOMPAT", "int", false);
        builder.column("schema", "item", "order_id", 1, "MCOMPAT", "int", false);
        builder.column("schema", "item", "quantity", 2, "MCOMPAT", "int", false);
        builder.pk("schema", "item");
        builder.indexColumn("schema", "item", Index.PRIMARY, "item_id", 0, true, null);
        builder.joinTables("co", "schema", "customer", "schema", "order");
        builder.joinColumns("co", "schema", "customer", "customer_id", "schema", "order", "customer_id");
View Full Code Here

Examples of com.foundationdb.server.rowdata.FieldDef.column()

                    pKeyAppends++;
                }
            } else {
                if (indexRowComp.isInRowData(indexField)) {
                    FieldDef fieldDef = fieldDefs[indexRowComp.getFieldPosition(indexField)];
                    Column column = fieldDef.column();
                    rowDataValueSource.bind(fieldDef, rowData);
                    pKeyTarget().append(rowDataValueSource,
                                        column.getType());
                } else if (indexRowComp.isInHKey(indexField)) {
                    PersistitKey.appendFieldFromKey(pKey(), hKey, indexRowComp.getHKeyPosition(indexField), index
View Full Code Here

Examples of com.googlecode.jcsv.annotations.MapToColumn.column()

    for (Field field : entry.getClass().getDeclaredFields()) {
      // check if there is a MapToColumn Annotation
      MapToColumn mapAnnotation = field.getAnnotation(MapToColumn.class);
      if (mapAnnotation != null) {
        // read the annotation column
        int column = mapAnnotation.column();

        // read the annotation type. If type is Default.class, then
        // the type of the field will be used.
        Class<?> type;
        if (mapAnnotation.type().equals(MapToColumn.Default.class)) {
View Full Code Here

Examples of com.mycila.testing.plugin.db.api.SqlResults.column()

        System.out.println(db.prepare("SELECT ID, NAME, SEX as S FROM PERSON").query());

        db2.runScript("/types.sql").runScript("/types-insert.sql");
        SqlResults results2 = db2.prepare("SELECT * FROM TESTTYPES").query();
        System.out.println(results2);
        System.out.println(results2.column("column21"));

        db3.runScript("/types.sql");
        System.out.println(db3.prepare("SELECT * FROM TESTTYPES").query());
    }

View Full Code Here

Examples of com.strobel.decompiler.languages.TextLocation.column()

    }

    @Override
    public TextLocation getEndLocation() {
        final TextLocation location = getLocation();
        return new TextLocation(location.line(), location.column() + 1);
    }

    @Override
    public <T, R> R acceptVisitor(final IAstVisitor<? super T, ? extends R> visitor, final T data) {
        return visitor.visitEmptyStatement(this, data);
View Full Code Here

Examples of com.sun.javadoc.SourcePosition.column()

    //add source position info, if available
    SourcePosition pos = tag.position();
    if (pos != null) {
      MSourcePosition mpos = target.createSourcePosition();
      mpos.setLine(pos.line());
      mpos.setColumn(pos.column());
      if (pos.file() != null) mpos.setSourceURI(pos.file().toURI());
    }
  }

}
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.