OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of gcloud.db; | 5 part of gcloud.db; |
6 | 6 |
7 /** | 7 /** |
8 * A database of all registered models. | 8 * A database of all registered models. |
9 * | 9 * |
10 * Responsible for converting between dart model objects and datastore entities. | 10 * Responsible for converting between dart model objects and datastore entities. |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 /** | 38 /** |
39 * Returns the property name used for [fieldName] | 39 * Returns the property name used for [fieldName] |
40 */ | 40 */ |
41 // TODO: Get rid of this eventually. | 41 // TODO: Get rid of this eventually. |
42 String fieldNameToPropertyName(String kind, String fieldName); | 42 String fieldNameToPropertyName(String kind, String fieldName); |
43 | 43 |
44 /** | 44 /** |
45 * Converts [value] according to the [Property] named [fieldName] in [kind]. | 45 * Converts [value] according to the [Property] named [fieldName] in [kind]. |
46 */ | 46 */ |
47 Object toDatastoreValue(String kind, String fieldName, Object value); | 47 Object toDatastoreValue(String kind, String fieldName, Object value, |
| 48 {bool forComparison: false}); |
48 } | 49 } |
OLD | NEW |