diff options
author | Eric Guzman | 2012-06-20 19:42:03 -0700 |
---|---|---|
committer | Eric Guzman | 2012-06-20 19:42:03 -0700 |
commit | 3270aac4980c908f305fb53abadda5121ff6b9cb (patch) | |
tree | 6255aaab239fde71b1f4862dd70de7be62f48b85 /node_modules/montage/data/sql-access/sql-store.js | |
parent | a5d93daf6fdccbfee160d6a8ba08f6b6d4b9d7cc (diff) | |
parent | 87377c81da06abf6d656017859830a3ab2902f0e (diff) | |
download | ninja-3270aac4980c908f305fb53abadda5121ff6b9cb.tar.gz |
Merge branch 'binding' of github.com:dhg637/ninja-internal into binding
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 | }); | ||