Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(853)

Side by Side Diff: pkg/gcloud/lib/src/db/model_db.dart

Issue 804973002: Add appengine/gcloud/mustache dependencies. (Closed) Base URL: git@github.com:dart-lang/pub-dartlang-dart.git@master
Patch Set: Added AUTHORS/LICENSE/PATENTS files Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/gcloud/lib/src/db/db.dart ('k') | pkg/gcloud/lib/src/db/model_db_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 part of gcloud.db;
6
7 /**
8 * A database of all registered models.
9 *
10 * Responsible for converting between dart model objects and datastore entities.
11 */
12 abstract class ModelDB {
13 /**
14 * Converts a [datastore.Key] to a [Key].
15 */
16 Key fromDatastoreKey(datastore.Key datastoreKey);
17
18 /**
19 * Converts a [Key] to a [datastore.Key].
20 */
21 datastore.Key toDatastoreKey(Key dbKey);
22
23 /**
24 * Converts a [Model] instance to a [datastore.Entity].
25 */
26 datastore.Entity toDatastoreEntity(Model model) ;
27
28 /**
29 * Converts a [datastore.Entity] to a [Model] instance.
30 */
31 Model fromDatastoreEntity(datastore.Entity entity);
32
33 /**
34 * Returns the kind name for instances of [type].
35 */
36 String kindName(Type type);
37
38 /**
39 * Returns the property name used for [fieldName]
40 */
41 // TODO: Get rid of this eventually.
42 String fieldNameToPropertyName(String kind, String fieldName);
43 }
OLDNEW
« no previous file with comments | « pkg/gcloud/lib/src/db/db.dart ('k') | pkg/gcloud/lib/src/db/model_db_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698