diff options
author | Armen Kesablyan | 2012-06-20 15:04:25 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-20 15:04:25 -0700 |
commit | fc818d31de267d2b77fda3b3029ad38d48698be8 (patch) | |
tree | 122ebf54d3378578c1ded4d786ba3940d4a911d2 /node_modules/montage/data/sql-access/sql-store.js | |
parent | 120e31dcf1e11eed11ee430d77c438e7b073e9f8 (diff) | |
parent | c9852665eadc1acb9c1c881d207c4bd9ef88805f (diff) | |
download | ninja-fc818d31de267d2b77fda3b3029ad38d48698be8.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal
Diffstat (limited to 'node_modules/montage/data/sql-access/sql-store.js')
-rwxr-xr-x | node_modules/montage/data/sql-access/sql-store.js | 103 |
1 files changed, 103 insertions, 0 deletions
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 | }); | ||