diff options
author | Kruti Shah | 2012-06-20 15:12:48 -0700 |
---|---|---|
committer | Kruti Shah | 2012-06-20 15:12:48 -0700 |
commit | 1fe1202ba87d6de9b0f0d8efee78f955c5350210 (patch) | |
tree | 26ff4c6c5a94accfd5801f124244d3eef152a5c7 /node_modules/montage/data/sql-access | |
parent | 1ce4bd7033a413c7697888e5712f278219d6d095 (diff) | |
parent | 782b66c783df4a9c36fa240cc77900e69b9130cf (diff) | |
download | ninja-1fe1202ba87d6de9b0f0d8efee78f955c5350210.tar.gz |
Merge branch 'refs/heads/TimelineUberJD' into Timeline-local-kruti
Diffstat (limited to 'node_modules/montage/data/sql-access')
4 files changed, 191 insertions, 0 deletions
diff --git a/node_modules/montage/data/sql-access/sql-mapping.js b/node_modules/montage/data/sql-access/sql-mapping.js new file mode 100644 index 00000000..c4e31253 --- /dev/null +++ b/node_modules/montage/data/sql-access/sql-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/sql-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("sql-mapping"); | ||
18 | |||
19 | /** | ||
20 | * TODO | ||
21 | @class module:montage/data/sql-access/sql-mapping.SqlBinderMapping | ||
22 | @extends module:montage/data/mapping.BinderMapping | ||
23 | */ | ||
24 | var SqlBinderMapping = exports.SqlBinderMapping = Montage.create(BinderMapping, /** @lends module:montage/data/sql-access/sql-mapping.SqlBinderMapping# */ { | ||
25 | |||
26 | |||
27 | }); | ||
28 | |||
29 | |||
30 | /** | ||
31 | * TODO | ||
32 | @class module:montage/data/sql-access/sql-mapping.SqlBlueprintMapping | ||
33 | @extends module:montage/data/mapping.BlueprintMapping | ||
34 | */ | ||
35 | var SqlBlueprintMapping = exports.SqlBlueprintMapping = Montage.create(BlueprintMapping, /** @lends module:montage/data/sql-access/sql-mapping.SqlBlueprintMapping# */ { | ||
36 | |||
37 | |||
38 | }); | ||
39 | |||
40 | |||
41 | /** | ||
42 | * TODO | ||
43 | @class module:montage/data/sql-access/sql-mapping.SqlAttributeMapping | ||
44 | @extends module:montage/data/mapping.AttributeMapping | ||
45 | */ | ||
46 | var SqlAttributeMapping = exports.SqlAttributeMapping = Montage.create(AttributeMapping, /** @lends module:montage/data/sql-access/sql-mapping.SqlAttributeMapping# */ { | ||
47 | |||
48 | |||
49 | }); | ||
50 | |||
51 | |||
52 | /** | ||
53 | * TODO | ||
54 | @class module:montage/data/sql-access/sql-mapping.SqlAssociationMapping | ||
55 | @extends module:montage/data/mapping.AssociationMapping | ||
56 | */ | ||
57 | var SqlAssociationMapping = exports.SqlAssociationMapping = Montage.create(AssociationMapping, /** @lends module:montage/data/sql-access/sql-mapping.SqlAssociationMapping# */ { | ||
58 | |||
59 | |||
60 | }); | ||
61 | |||
diff --git a/node_modules/montage/data/sql-access/sql-object-id.js b/node_modules/montage/data/sql-access/sql-object-id.js new file mode 100755 index 00000000..6e191627 --- /dev/null +++ b/node_modules/montage/data/sql-access/sql-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/sql-access/sql-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("sql-object-id"); | ||
15 | /** | ||
16 | @class module:montage/data/sql-access/sql-object-id.SqlObjectId | ||
17 | @extends module:montage/data/object-id.ObjectId | ||
18 | */ | ||
19 | var SqlObjectId = exports.SqlObjectId = Montage.create(ObjectId, /** @lends module:montage/data/sql-access/sql-object-id.SqlObjectId# */{ | ||
20 | |||
21 | |||
22 | }); | ||
diff --git a/node_modules/montage/data/sql-access/sql-selector-semantics.js b/node_modules/montage/data/sql-access/sql-selector-semantics.js new file mode 100644 index 00000000..018448f1 --- /dev/null +++ b/node_modules/montage/data/sql-access/sql-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/sql-access/sql-store.js b/node_modules/montage/data/sql-access/sql-store.js new file mode 100755 index 00000000..473e0861 --- /dev/null +++ b/node_modules/montage/data/sql-access/sql-store.js | |||
@@ -0,0 +1,103 @@ | |||
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/sql-access/sql-store | ||
8 | @requires montage/core/core | ||
9 | @requires montage/data/store | ||
10 | @requires montage/core/logger | ||
11 | @requires data/sql-access/sql-mapping | ||
12 | */ | ||
13 | var Montage = require("montage").Montage; | ||
14 | var Store = require("data/store").Store; | ||
15 | var SqlBinderMapping = require("data/sql-access/sql-mapping").SqlBinderMapping; | ||
16 | var SqlBlueprintMapping = require("data/sql-access/sql-mapping").SqlBlueprintMapping; | ||
17 | var SqlAttributeMapping = require("data/sql-access/sql-mapping").SqlAttributeMapping; | ||
18 | var SqlAssociationMapping = require("data/sql-access/sql-mapping").SqlAssociationMapping; | ||
19 | var logger = require("core/logger").logger("sql-store"); | ||
20 | |||
21 | /** | ||
22 | @class module:montage/data/sql-access/sql-store.SqlStore | ||
23 | @extends module:montage/data/store.Store | ||
24 | */ | ||
25 | var SqlStore = exports.SqlStore = Montage.create(Store, /** @lends module:montage/data/sql-access/sql-store.SqlStore# */ { | ||
26 | |||
27 | /** | ||
28 | Description TODO | ||
29 | @function | ||
30 | @param {Object} objectId TODO | ||
31 | @param {Property} context TODO | ||
32 | @param {Property} transactionId TODO | ||
33 | @returns null | ||
34 | */ | ||
35 | pledgeForObjectId$Implementation:{ | ||
36 | value:function (objectId, context, transactionId) { | ||
37 | // TODO [PJYF Apr 28 2011] We need to implement it. | ||
38 | return null; | ||
39 | } | ||
40 | }, | ||
41 | |||
42 | /** | ||
43 | Description TODO | ||
44 | @function | ||
45 | @param {Object} sourceObject TODO | ||
46 | @param {Property} relationship TODO | ||
47 | @param {Property} context TODO | ||
48 | @param {Property} transactionId TODO | ||
49 | @returns null | ||
50 | */ | ||
51 | pledgeForSourceObjectAssociation$Implementation:{ | ||
52 | value:function (sourceObject, relationship, context, transactionId) { | ||
53 | // TODO [PJYF Apr 28 2011] We need to implement it. | ||
54 | return null; | ||
55 | } | ||
56 | }, | ||
57 | |||
58 | /** | ||
59 | Create a new binder mapping. | ||
60 | @function | ||
61 | @returns binder mapping | ||
62 | */ | ||
63 | createBinderMapping:{ | ||
64 | get:function () { | ||
65 | return SqlBinderMapping.create(); | ||
66 | } | ||
67 | }, | ||
68 | |||
69 | /** | ||
70 | Create a new blueprint mapping. | ||
71 | @function | ||
72 | @returns blueprint mapping | ||
73 | */ | ||
74 | createBlueprintMapping:{ | ||
75 | get:function () { | ||
76 | return SqlBlueprintMapping.create(); | ||
77 | } | ||
78 | }, | ||
79 | |||
80 | /** | ||
81 | Create a new attribute mapping. | ||
82 | @function | ||
83 | @returns attribute mapping | ||
84 | */ | ||
85 | createAttributeMapping:{ | ||
86 | get:function () { | ||
87 | return SqlAttributeMapping.create(); | ||
88 | } | ||
89 | }, | ||
90 | |||
91 | /** | ||
92 | Create a new association mapping. | ||
93 | @function | ||
94 | @returns association mapping | ||
95 | */ | ||
96 | createAssociationMapping:{ | ||
97 | get:function () { | ||
98 | return SqlAssociationMapping.create(); | ||
99 | } | ||
100 | } | ||
101 | |||
102 | |||
103 | }); | ||