Tabnine Logo
Value.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
com.oberasoftware.jasdb.api.session.Value

Best Java code snippets using com.oberasoftware.jasdb.api.session.Value.toString (Showing top 7 results out of 315)

origin: oberasoftware/jasdb

  public String toString() {
    StringBuilder builder = new StringBuilder();
    builder.append(propertyName).append("{");
    for(Value value : values) {
      builder.append(value.toString()).append(";");
    }
    builder.append("}");
    return builder.toString();
  }
}
origin: oberasoftware/jasdb

List<String> getEntityValue(List<Entity> entities, final String property) {
  return Lists.transform(entities, entity -> {
    assert entity != null;
    return entity.getProperty(property).getFirstValue().toString();
  });
}
origin: oberasoftware/jasdb

  private static Key mapToKey(Value value) throws JasDBStorageException {
    if(value instanceof StringValue) {
      return new StringKey(value.toString());
    } else if(value instanceof LongValue) {
      return new LongKey(((LongValue)value).toLong());
    } else if(value instanceof IntegerValue) {
      throw new JasDBStorageException("Not yet implemented");
    } else {
      throw new JasDBStorageException("Unsupported key type: " + value.getClass().getName());
    }

  }
}
origin: oberasoftware/jasdb

  serializeEntity(((EntityValue) value).toEntity(), generator);
} else {
  generator.writeString(value.toString());
origin: oberasoftware/jasdb

@Test
public void testCreateAndInsertEntities() throws JasDBException, IOException {
  DBSession session = sessionFactory.createSession();
  session.addInstance(MY_INSTANCE);
  EntityBag bag = session.createOrGetBag(MY_INSTANCE, BAG_1);
  bag.addEntity(new SimpleEntity().addProperty("test", "value"));
  QueryResult result = bag.getEntities();
  assertThat(result.size(), is(1l));
  Entity entity = result.next();
  assertThat(entity, notNullValue());
  assertThat(entity.getProperty("test").getFirstValue().toString(), is("value"));
}
origin: oberasoftware/jasdb

  String embeddedProperty = embedEntity.getProperty("embeddedProperty").getFirstValue().toString();
  assertEquals("The id's should match", queryKey, embeddedProperty);
} finally {
origin: oberasoftware/jasdb

  String embeddedProperty = embedEntity.getProperty("embeddedProperty").getFirstValue().toString();
  assertEquals("The id's should match", queryKey, embeddedProperty);
} finally {
com.oberasoftware.jasdb.api.sessionValuetoString

Popular methods of Value

  • getValue

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now