示例#1
0
 public boolean delete(Id.DatasetInstance datasetInstanceId) {
   if (get(datasetInstanceId) == null) {
     return false;
   }
   deleteAll(getInstanceKey(datasetInstanceId.getNamespace(), datasetInstanceId.getId()));
   return true;
 }
示例#2
0
 @Nullable
 public DatasetSpecification get(Id.DatasetInstance datasetInstanceId) {
   return get(
       getInstanceKey(datasetInstanceId.getNamespace(), datasetInstanceId.getId()),
       DatasetSpecification.class);
 }