Commit 8b959d75 authored by Riabokon Stanislav(EPAM)[GCP]'s avatar Riabokon Stanislav(EPAM)[GCP]
Browse files

Rollback datastoreFactory.getDatastoreDefaultNamespace();

parent 68c5d2a2
Pipeline #10950 passed with stages
in 30 minutes and 1 second
......@@ -45,7 +45,7 @@ public class DatastoreSchemaRepository implements ISchemaRepository {
@Override
public void add(Schema schema, String user) {
Datastore datastore = this.datastoreFactory.getDatastoreDefaultNamespace();
Datastore datastore = this.datastoreFactory.getDatastore();
Key schemaKey = datastore.newKeyFactory().setKind(SCHEMA_KIND).newKey(schema.getKind());
Transaction txn = datastore.newTransaction();
......@@ -89,7 +89,7 @@ public class DatastoreSchemaRepository implements ISchemaRepository {
@Override
public Schema get(String kind) {
Datastore datastore = this.datastoreFactory.getDatastoreDefaultNamespace();
Datastore datastore = this.datastoreFactory.getDatastore();
Key schemaKey = datastore.newKeyFactory().setKind(SCHEMA_KIND).newKey(kind);
Entity schemaEntity = datastore.get(schemaKey);
......@@ -122,7 +122,7 @@ public class DatastoreSchemaRepository implements ISchemaRepository {
@Override
public void delete(String kind) {
Datastore datastore = this.datastoreFactory.getDatastoreDefaultNamespace();
Datastore datastore = this.datastoreFactory.getDatastore();
Key key = datastore.newKeyFactory().setKind(SCHEMA_KIND).newKey(kind);
datastore.delete(key);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment