diff options
Diffstat (limited to 'node_modules/montage/data/nosql-access')
4 files changed, 190 insertions, 0 deletions
diff --git a/node_modules/montage/data/nosql-access/nosql-mapping.js b/node_modules/montage/data/nosql-access/nosql-mapping.js new file mode 100644 index 00000000..2590c686 --- /dev/null +++ b/node_modules/montage/data/nosql-access/nosql-mapping.js | |||
@@ -0,0 +1,61 @@ | |||
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/nosql-mapping | ||
8 | @requires montage/core/core | ||
9 | @requires montage/core/logger | ||
10 | @requires montage/data/mapping | ||
11 | */ | ||
12 | var Montage = require("montage").Montage; | ||
13 | var BinderMapping = require("data/mapping").BinderMapping; | ||
14 | var BlueprintMapping = require("data/mapping").BlueprintMapping; | ||
15 | var AttributeMapping = require("data/mapping").AttributeMapping; | ||
16 | var AssociationMapping = require("data/mapping").AssociationMapping; | ||
17 | var logger = require("core/logger").logger("nosql-mapping"); | ||
18 | |||
19 | /** | ||
20 | * TODO | ||
21 | @class module:montage/data/nosql-access/nosql-mapping.NoSqlBinderMapping | ||
22 | @extends module:montage/data/mapping.BinderMapping | ||
23 | */ | ||
24 | var NoSqlBinderMapping = exports.NoSqlBinderMapping = Montage.create(BinderMapping, /** @lends module:montage/data/nosql-access/nosql-mapping.NoSqlBinderMapping# */ { | ||
25 | |||
26 | |||
27 | }); | ||
28 | |||
29 | |||
30 | /** | ||
31 | * TODO | ||
32 | @class module:montage/data/nosql-access/nosql-mapping.NoSqlBlueprintMapping | ||
33 | @extends module:montage/data/mapping.BlueprintMapping | ||
34 | */ | ||
35 | var NoSqlBlueprintMapping = exports.NoSqlBlueprintMapping = Montage.create(BlueprintMapping, /** @lends module:montage/data/nosql-access/nosql-mapping.NoSqlBlueprintMapping# */ { | ||
36 | |||
37 | |||
38 | }); | ||
39 | |||
40 | |||
41 | /** | ||
42 | * TODO | ||
43 | @class module:montage/data/nosql-access/nosql-mapping.NoSqlAttributeMapping | ||
44 | @extends module:montage/data/mapping.AttributeMapping | ||
45 | */ | ||
46 | var NoSqlAttributeMapping = exports.NoSqlAttributeMapping = Montage.create(AttributeMapping, /** @lends module:montage/data/nosql-access/nosql-mapping.NoSqlAttributeMapping# */ { | ||
47 | |||
48 | |||
49 | }); | ||
50 | |||
51 | |||
52 | /** | ||
53 | * TODO | ||
54 | @class module:montage/data/nosql-access/nosql-mapping.NoSqlAssociationMapping | ||
55 | @extends module:montage/data/mapping.AssociationMapping | ||
56 | */ | ||
57 | var NoSqlAssociationMapping = exports.NoSqlAssociationMapping = Montage.create(AssociationMapping, /** @lends module:montage/data/nosql-access/nosql-mapping.NoSqlAssociationMapping# */ { | ||
58 | |||
59 | |||
60 | }); | ||
61 | |||
diff --git a/node_modules/montage/data/nosql-access/nosql-object-id.js b/node_modules/montage/data/nosql-access/nosql-object-id.js new file mode 100755 index 00000000..69c4cd89 --- /dev/null +++ b/node_modules/montage/data/nosql-access/nosql-object-id.js | |||
@@ -0,0 +1,22 @@ | |||
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/nosql-access/nosql-object-id | ||
8 | @requires montage/core/core | ||
9 | @requires montage/data/-object-id | ||
10 | @requires montage/core/logger | ||
11 | */ | ||
12 | var Montage = require("montage").Montage; | ||
13 | var ObjectId = require("data/object-id").ObjectId; | ||
14 | var logger = require("core/logger").logger("nosql-object-id"); | ||
15 | /** | ||
16 | @class module:montage/data/nosql-access/nosql-object-id.NoSqlObjectId | ||
17 | @extends module:montage/data/-object-id.ObjectId | ||
18 | */ | ||
19 | var NoSqlObjectId = exports.NoSqlObjectId = Montage.create(ObjectId,/** @lends module:montage/data/nosql-access/nosql-object-id.NoSqlObjectId# */ { | ||
20 | |||
21 | |||
22 | }); | ||
diff --git a/node_modules/montage/data/nosql-access/nosql-selector-semantics.js b/node_modules/montage/data/nosql-access/nosql-selector-semantics.js new file mode 100644 index 00000000..018448f1 --- /dev/null +++ b/node_modules/montage/data/nosql-access/nosql-selector-semantics.js | |||
@@ -0,0 +1,5 @@ | |||
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> */ | ||
diff --git a/node_modules/montage/data/nosql-access/nosql-store.js b/node_modules/montage/data/nosql-access/nosql-store.js new file mode 100755 index 00000000..ae6827c8 --- /dev/null +++ b/node_modules/montage/data/nosql-access/nosql-store.js | |||
@@ -0,0 +1,102 @@ | |||
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/nosql-access/nosql-store | ||
8 | @requires montage/core/core | ||
9 | @requires montage/data/store | ||
10 | @requires montage/core/logger | ||
11 | @requires data/nosql-access/nosql-mapping | ||
12 | */ | ||
13 | var Montage = require("montage").Montage; | ||
14 | var Store = require("data/store").Store; | ||
15 | var NoSqlBinderMapping = require("data/nosql-access/nosql-mapping").NoSqlBinderMapping; | ||
16 | var NoSqlBlueprintMapping = require("data/nosql-access/nosql-mapping").NoSqlBlueprintMapping; | ||
17 | var NoSqlAttributeMapping = require("data/nosql-access/nosql-mapping").NoSqlAttributeMapping; | ||
18 | var NoSqlAssociationMapping = require("data/nosql-access/nosql-mapping").NoSqlAssociationMapping; | ||
19 | var logger = require("core/logger").logger("nosql-store"); | ||
20 | /** | ||
21 | @class module:montage/data/nosql-access/nosql-store.NoSqlStore | ||
22 | @extends module:montage/data/store.Store | ||
23 | */ | ||
24 | var NoSqlStore = exports.NoSqlStore = Montage.create(Store, /** @lends module:montage/data/nosql-access/nosql-store.NoSqlStore# */ { | ||
25 | |||
26 | /** | ||
27 | Create a new binder mapping. | ||
28 | @function | ||
29 | @returns binder mapping | ||
30 | */ | ||
31 | createBinderMapping:{ | ||
32 | get:function () { | ||
33 | return NoSqlBinderMapping.create(); | ||
34 | } | ||
35 | }, | ||
36 | |||
37 | /** | ||
38 | Create a new blueprint mapping. | ||
39 | @function | ||
40 | @returns blueprint mapping | ||
41 | */ | ||
42 | createBlueprintMapping:{ | ||
43 | get:function () { | ||
44 | return NoSqlBlueprintMapping.create(); | ||
45 | } | ||
46 | }, | ||
47 | |||
48 | /** | ||
49 | Create a new attribute mapping. | ||
50 | @function | ||
51 | @returns attribute mapping | ||
52 | */ | ||
53 | createAttributeMapping:{ | ||
54 | get:function () { | ||
55 | return NoSqlAttributeMapping.create(); | ||
56 | } | ||
57 | }, | ||
58 | |||
59 | /** | ||
60 | Create a new association mapping. | ||
61 | @function | ||
62 | @returns association mapping | ||
63 | */ | ||
64 | createAssociationMapping:{ | ||
65 | get:function () { | ||
66 | return NoSqlAssociationMapping.create(); | ||
67 | } | ||
68 | }, | ||
69 | |||
70 | |||
71 | /** | ||
72 | Description TODO | ||
73 | @function | ||
74 | @param {Object} objectId TODO | ||
75 | @param {Property} context TODO | ||
76 | @param {Property} transactionId TODO | ||
77 | @returns null | ||
78 | */ | ||
79 | pledgeForObjectId$Implementation:{ | ||
80 | value:function (objectId, context, transactionId) { | ||
81 | // TODO [PJYF Apr 28 2011] We need to implement it. | ||
82 | return null; | ||
83 | } | ||
84 | }, | ||
85 | |||
86 | /** | ||
87 | Description TODO | ||
88 | @function | ||
89 | @param {Object} sourceObject TODO | ||
90 | @param {Property} relationship TODO | ||
91 | @param {Property} context TODO | ||
92 | @param {Property} transactionId TODO | ||
93 | @returns null | ||
94 | */ | ||
95 | pledgeForSourceObjectAssociation$Implementation:{ | ||
96 | value:function (sourceObject, relationship, context, transactionId) { | ||
97 | // TODO [PJYF Apr 28 2011] We need to implement it. | ||
98 | return null; | ||
99 | } | ||
100 | } | ||
101 | |||
102 | }); | ||