Examples of FormatOptions


Examples of com.foundationdb.server.types.FormatOptions

        this.transactionService = transactionService;
        this.extDataService = extDataService;
        this.jdbcService = jdbcService;
        this.fullTextService = fullTextService;
        this.configurationService = configurationService;
        this.options = new FormatOptions();
        this.insertProcessor = new InsertProcessor (store, schemaManager, registryService, options);
        this.deleteProcessor = new DeleteProcessor (store, schemaManager, registryService);
        this.updateProcessor = new UpdateProcessor (store, schemaManager, registryService, deleteProcessor, insertProcessor);
        this.upsertProcessor = new UpsertProcessor (store, schemaManager, registryService, insertProcessor, extDataService, options);
    }
View Full Code Here

Examples of com.foundationdb.server.types.FormatOptions

                throw new ExternalRoutineInvocationException(((PostgresJavaRoutine)statement).getInvocation().getRoutineName(), ex);
            }
        }
        else {
            ValueSource source = encoder.valuefromObject(value, pgType);
            FormatOptions options = context.getServer().getFormatOptions();
            pgType.getType().formatAsJson(source, appender, options);
        }
    }
View Full Code Here

Examples of com.foundationdb.server.types.FormatOptions

            if (columnTInstance.typeClass() instanceof AkResultSet) {
                outputNestedResultSet((Cursor)value.getObject(),
                                      resultColumn.getNestedResultColumns());
            }
            else {
                FormatOptions options = context.getServer().getFormatOptions();
                columnTInstance.formatAsJson(value, appender, options);
            }
        }
        encoder.appendString("}");
    }
View Full Code Here

Examples of com.foundationdb.server.types.FormatOptions

        writeRow(c, 2, "Jones");
        writeRow(a, 201, 2, "NY");
        writeRow(c, 3, "Adams");
        writeRow(o, 301, 3, "2010-04-01");
       
        options = new FormatOptions();
        ConfigurationService configService = configService();
        options.set(FormatOptions.JsonBinaryFormatOption.fromProperty(configService.getProperty("fdbsql.postgres.jsonbinary_output")));

    }
View Full Code Here

Examples of edu.uams.dbmi.util.iso8601.Iso8601DateFormatter.FormatOptions

  }
 
  public void testYearMonthDaySet(Iso8601Date d, String yrTxt, String moTxt,
      String daTxt) {
    FormatOptions fo = new FormatOptions();
    testYearMonthDay(d, DateConfiguration.YEAR_MONTH_DAY, fo, yrTxt,
        moTxt, daTxt);
    testYearMonthDay(d, DateConfiguration.YEAR_MONTH, fo, yrTxt,
        moTxt, daTxt);
    testYearMonthDay(d, DateConfiguration.YEAR, fo, yrTxt,
View Full Code Here

Examples of edu.uams.dbmi.util.iso8601.Iso8601DateFormatter.FormatOptions

       
  }
 
  public void testYearWeekDaySet(Iso8601Date d, String wkCalYrTxt, String weTxt,
      String daTxt, String yrTxt) {
    FormatOptions fo = new FormatOptions();
    testYearWeekDay(d, DateConfiguration.YEAR_WEEK_DAY, fo, wkCalYrTxt,
        weTxt, daTxt, yrTxt);
    testYearWeekDay(d, DateConfiguration.YEAR_WEEK, fo, wkCalYrTxt,
        weTxt, daTxt, yrTxt);
    testYearWeekDay(d, DateConfiguration.YEAR, fo, wkCalYrTxt,
View Full Code Here

Examples of edu.uams.dbmi.util.iso8601.Iso8601DateFormatter.FormatOptions

   
  }
 
  public void testYearDayOfYearSet(Iso8601Date d, String yrTxt,
      String dyTxt) {
    FormatOptions fo = new FormatOptions();
    testYearDayOfYear(d, DateConfiguration.YEAR_DAY_OF_YEAR, fo, yrTxt,
        dyTxt);
    testYearDayOfYear(d, DateConfiguration.YEAR, fo, yrTxt,
        dyTxt);
    testYearDayOfYear(d, DateConfiguration.CENTURY, fo, yrTxt,
View Full Code Here

Examples of edu.uams.dbmi.util.iso8601.Iso8601TimeFormatter.FormatOptions

        extendedHrMinSecSs);
  }
 
  public void testConfigurations(Iso8601UnitTime t, String basicAns,
      String extendedAns) {
    FormatOptions fo = new FormatOptions();
    fo.setExtended(false);
    fo.setIncludeTzMinIfZero(true);
    fo.setPrecedeWithT(false);
   
    Iso8601TimeFormatter tf = new Iso8601TimeFormatter(fo);
    assertEquals(tf.format(t), basicAns);
   
    fo.setPrecedeWithT(true);
    tf = new Iso8601TimeFormatter(fo);
    assertEquals(tf.format(t), "T" + basicAns);
   
    fo.setPrecedeWithT(false);
    fo.setExtended(true);
    tf = new Iso8601TimeFormatter(fo);
    assertEquals(tf.format(t), extendedAns);
   
    fo.setPrecedeWithT(true);
    tf = new Iso8601TimeFormatter(fo);
    assertEquals(tf.format(t), "T" + extendedAns);
  }
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.