Search in sources :

Example 1 with DatastoreText

use of xuml.tools.datastore.DatastoreText in project xuml-tools by davidmoten.

the class PresentationPersistence method get.

public String get(String id) {
    String entity = id + "-presentation";
    String property = "presentation";
    DatastoreText ds = Context.instance().getDatastore();
    String result = ds.get(KEY_KIND, entity, property);
    return result;
}
Also used : DatastoreText(xuml.tools.datastore.DatastoreText)

Example 2 with DatastoreText

use of xuml.tools.datastore.DatastoreText in project xuml-tools by davidmoten.

the class ModelPersistence method getXml.

public String getXml(String id) {
    String entity = id + "-model";
    String property = "model";
    // TODO change to DatastoreText.instance()
    DatastoreText ds = Context.instance().getDatastore();
    String result = ds.get(KEY_KIND, entity, property);
    return result;
}
Also used : DatastoreText(xuml.tools.datastore.DatastoreText)

Example 3 with DatastoreText

use of xuml.tools.datastore.DatastoreText in project xuml-tools by davidmoten.

the class ModelPersistence method save.

public void save(String id, String xml) {
    String entity = id + "-model";
    String property = "model";
    // TODO change to DatastoreText.instance()
    DatastoreText ds = Context.instance().getDatastore();
    ds.put(KEY_KIND, entity, property, xml);
}
Also used : DatastoreText(xuml.tools.datastore.DatastoreText)

Example 4 with DatastoreText

use of xuml.tools.datastore.DatastoreText in project xuml-tools by davidmoten.

the class PresentationPersistence method save.

public void save(String id, String xml) {
    String entity = id + "-presentation";
    String property = "presentation";
    DatastoreText ds = Context.instance().getDatastore();
    ds.put(KEY_KIND, entity, property, xml);
}
Also used : DatastoreText(xuml.tools.datastore.DatastoreText)

Aggregations

DatastoreText (xuml.tools.datastore.DatastoreText)4