Examples of toDbValue()


Examples of de.fuberlin.wiwiss.d2rq.values.Translator.toDBValue()

    table.addTranslation("key2", "value2");
    table.addTranslation("key3", "value3");
    Translator translator = table.translator();
    assertEquals("value1", translator.toRDFValue("key1"));
    assertEquals("value2", translator.toRDFValue("key2"));
    assertEquals("key1", translator.toDBValue("value1"));
    assertEquals("key2", translator.toDBValue("value2"));
  }

  public void testUndefinedTranslation() {
    TranslationTable table = new TranslationTable(table1);
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.values.Translator.toDBValue()

    table.addTranslation("key3", "value3");
    Translator translator = table.translator();
    assertEquals("value1", translator.toRDFValue("key1"));
    assertEquals("value2", translator.toRDFValue("key2"));
    assertEquals("key1", translator.toDBValue("value1"));
    assertEquals("key2", translator.toDBValue("value2"));
  }

  public void testUndefinedTranslation() {
    TranslationTable table = new TranslationTable(table1);
    table.addTranslation("key1", "value1");
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.values.Translator.toDBValue()

  public void testUndefinedTranslation() {
    TranslationTable table = new TranslationTable(table1);
    table.addTranslation("key1", "value1");
    Translator translator = table.translator();
    assertNull(translator.toRDFValue("unknownKey"));
    assertNull(translator.toDBValue("http://example.org/"));
  }
 
  public void testNullTranslation() {
    TranslationTable table = new TranslationTable(table1);
    table.addTranslation("key1", "value1");
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.values.Translator.toDBValue()

  public void testNullTranslation() {
    TranslationTable table = new TranslationTable(table1);
    table.addTranslation("key1", "value1");
    Translator translator = table.translator();
    assertNull(translator.toRDFValue(null));
    assertNull(translator.toDBValue(null));
  }
 
  public void testTranslationsWithSameValuesAreEqual() {
    Translation t1 = new Translation("foo", "bar");
    Translation t2 = new Translation("foo", "bar");
View Full Code Here

Examples of org.mongolink.domain.converter.Converter.toDbValue()

        return field;
    }

    protected Object getDBValue(Object value) {
        final Converter converter = Converter.forType(value.getClass());
        return converter.toDbValue(value);
    }

    private final String field;
}
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.