diff options
Diffstat (limited to 'node_modules/montage-user/data/nosqlaccess/nosqlstore.js')
-rwxr-xr-x | node_modules/montage-user/data/nosqlaccess/nosqlstore.js | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/node_modules/montage-user/data/nosqlaccess/nosqlstore.js b/node_modules/montage-user/data/nosqlaccess/nosqlstore.js new file mode 100755 index 00000000..8fb11d7d --- /dev/null +++ b/node_modules/montage-user/data/nosqlaccess/nosqlstore.js | |||
@@ -0,0 +1,68 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | /** | ||
7 | @module montage/data/nosqlaccess/nosqlstore | ||
8 | @requires montage/core/core | ||
9 | @requires montage/data/store | ||
10 | @requires montage/core/logger | ||
11 | */ | ||
12 | var Montage = require("montage").Montage; | ||
13 | var Store = require("data/store").Store; | ||
14 | var logger = require("core/logger").logger("nosqlstore"); | ||
15 | /** | ||
16 | @class module:montage/data/nosqlaccess/nosqlstore.NoSqlStore | ||
17 | @extends module:montage/data/store.Store | ||
18 | */ | ||
19 | var NoSqlStore = exports.NoSqlStore = Montage.create(Store,/** @lends module:montage/data/nosqlaccess/nosqlstore.NoSqlStore# */ { | ||
20 | |||
21 | /** | ||
22 | Description TODO | ||
23 | @function | ||
24 | @param {Property} binder TODO | ||
25 | @returns {Boolean} true or false | ||
26 | */ | ||
27 | canServiceBlueprintBinder: { | ||
28 | value: function(binder) { | ||
29 | if ((binder !== null) && (binder.storePrototypeName === "NoSqlStore")) { | ||
30 | // TODO [PJYF Apr 19 2011] We need to check that the connection url points to the same DB | ||
31 | return true; | ||
32 | } | ||
33 | return false; | ||
34 | } | ||
35 | }, | ||
36 | |||
37 | /** | ||
38 | Description TODO | ||
39 | @function | ||
40 | @param {Object} objectId TODO | ||
41 | @param {Property} context TODO | ||
42 | @param {Property} transactionId TODO | ||
43 | @returns null | ||
44 | */ | ||
45 | pledgeForObjectId$Implementation: { | ||
46 | value: function(objectId, context, transactionId) { | ||
47 | // TODO [PJYF Apr 28 2011] We need to implement it. | ||
48 | return null; | ||
49 | } | ||
50 | }, | ||
51 | |||
52 | /** | ||
53 | Description TODO | ||
54 | @function | ||
55 | @param {Object} sourceObject TODO | ||
56 | @param {Property} relationship TODO | ||
57 | @param {Property} context TODO | ||
58 | @param {Property} transactionId TODO | ||
59 | @returns null | ||
60 | */ | ||
61 | pledgeForSourceObjectRelationship$Implementation: { | ||
62 | value: function(sourceObject, relationship, context, transactionId) { | ||
63 | // TODO [PJYF Apr 28 2011] We need to implement it. | ||
64 | return null; | ||
65 | } | ||
66 | } | ||
67 | |||
68 | }); | ||