aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/data/sql-access/sql-store.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/montage/data/sql-access/sql-store.js')
-rwxr-xr-xnode_modules/montage/data/sql-access/sql-store.js103
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 */
13var Montage = require("montage").Montage;
14var Store = require("data/store").Store;
15var SqlBinderMapping = require("data/sql-access/sql-mapping").SqlBinderMapping;
16var SqlBlueprintMapping = require("data/sql-access/sql-mapping").SqlBlueprintMapping;
17var SqlAttributeMapping = require("data/sql-access/sql-mapping").SqlAttributeMapping;
18var SqlAssociationMapping = require("data/sql-access/sql-mapping").SqlAssociationMapping;
19var 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 */
25var 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});